Val Town Code SearchReturn to Val Town

API Access

You can access search results via JSON API by adding format=json to your query:

https://codesearch.val.run/...?q=api&page=42&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 19273 results for "api"(2182ms)

myApi1 file match

@yonatanm•Updated 1 year ago

myApi1 file match

@cmd•Updated 1 year ago

myApi1 file match

@third774•Updated 1 year ago

myApi1 file match

@kfastov•Updated 1 year ago

myApi1 file match

@yax•Updated 1 year ago

myApi1 file match

@robo•Updated 1 year ago

myApi1 file match

@sadfasdfasf•Updated 1 year ago

myApi1 file match

@triptych•Updated 1 year ago

myApi1 file match

@investor•Updated 1 year ago

valTownApiExampleUser2 file matches

@tmcw•Updated 1 year ago

invest-trackerticker_http.tsx1 match

@samxii777•Updated 9 mins ago
33/* 2. HTTP handler */
34export default async function(req: Request) {
35 /* 2-a â–¸ fetch latest news (your micro-API) ----------------------- */
36 const allNews: any[] = await fetch("https://samxii777--38a891a64b5911f094ef76b3cceeab13.web.val.run/latest?limit=20")
37 .then(r => r.json())

untitled-2380main.js2 matches

@mdrabiul•Updated 10 mins ago
3import { createClient } from "npm:@supabase/supabase-js";
4import RSSParser from "npm:rss-parser";
5import { TwitterApi } from "npm:twitter-api-v2";
6
7// Feeds content (can stay outside as it doesn't depend on val.secrets)
68
69 // Twitter Client - MUST be inside this function or a function called by it
70 const client = new TwitterApi({
71 appKey: val.secrets.TWITTER_APP_KEY,
72 appSecret: val.secrets.TWITTER_APP_SECRET,
vapicxy
apiry