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=11&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"(2697ms)

getAirtableDataAPI1 file match

@stnkvcs•Updated 8 months ago

stockAPI2 file matches

@pete•Updated 8 months ago

arenaApiExample2 file matches

@deblina•Updated 8 months ago

smallweb_openapi_guide2 file matches

@all•Updated 8 months ago

smallweb_openapi1 file match

@pomdtr•Updated 8 months ago

addNumbersAPI

@rororowyourboat•Updated 8 months ago

openapi_playground2 file matches

@stainless_em•Updated 8 months ago

createAPI2 file matches

@websandbox•Updated 8 months ago

memoryApiExample2 file matches

@xkonti•Updated 9 months ago

restfulJsonBlobApi1 file match

@anotherjesse•Updated 9 months ago

invest-trackerprices_cron.tsx4 matches

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