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/$1?q=api&page=12&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 18711 results for "api"(2390ms)

quotableApiProxy2 file matches

@johndturn•Updated 9 months ago

scrapeCraigslistAPI1 file match

@rochambeau314•Updated 9 months ago

spacexapi1 file match

@moe•Updated 9 months ago

calculateTransitAPI2 file matches

@rochambeau314•Updated 9 months ago

httpApiScreenshotPageExample

@browserbase•Updated 9 months ago

denoBlogAPI

@roramigator•Updated 9 months ago

lootGenAPI1 file match

@roramigator•Updated 9 months ago

api1 file match

@iamseeley•Updated 9 months ago

fuchsiaTapir

@tempguy•Updated 10 months ago

smallboatsapi1 file match

@joseph_c100•Updated 10 months ago

invest-trackerprices_cron.tsx4 matches

@samxii777•Updated 2 mins ago
10 /* 1 â–¸ Crypto batch ---------------------------------------------- */
11 const ids = crypto.join(",");
12 const cgURL = `https://api.coingecko.com/api/v3/simple/price`
13 + `?ids=${ids}&vs_currencies=aud&include_24hr_change=true`;
14 const cgRes = await fetch(cgURL, { headers: { "x-cg-demo-api-key": CG_KEY } });
15 Object.assign(out, await cgRes.json());
16
17 /* 2 â–¸ Equity / ETF quotes --------------------------------------- */
18 for (const sym of stocks) {
19 const avURL = `https://www.alphavantage.co/query?function=GLOBAL_QUOTE&symbol=${sym}&apikey=${AV_KEY}`;
20 const data = await fetch(avURL).then(r => r.json());
21 const q = data["Global Quote"];
45async function getRate(from: string, to: string) {
46 const url = `https://www.alphavantage.co/query?function=CURRENCY_EXCHANGE_RATE`
47 + `&from_currency=${from}&to_currency=${to}&apikey=${AV_KEY}`;
48 const d = await fetch(url).then(r => r.json());
49

invest-trackerticker_http.tsx1 match

@samxii777•Updated 11 mins ago
3import { assets, ttlMs } from "./ticker_config.tsx";
4
5/* map api keys → pretty labels */
6const label = (id: string) => ({
7 "usd-coin": "USDC",
snartapi
apiry