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=fetch&page=1&format=json

For typeahead suggestions, use the /typeahead endpoint:

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

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

Found 13860 results for "fetch"(1686ms)

No matches found in users.

Try switching to another result type using the tabs above.

invest-trackerprices_cron.tsx2 matches

@samxii777•Updated 27 mins ago
10 ?ids=${ids}&vs_currencies=aud&include_24hr_change=true
11 &x_cg_demo_api_key=${key}`.replace(/\s+/g, "");
12 const json = await fetch(url).then(r => r.json());
13
14 await set("prices_cache", JSON.stringify({ ts: Date.now(), data: json }));
15 console.log("Fetched & cached prices at", new Date());
16}
17

invest-trackerticker_http.tsx1 match

@samxii777•Updated 45 mins ago
9 const ids = list.join("%2C");
10 const api = `https://api.coingecko.com/api/v3/simple/price?ids=${ids}&vs_currencies=aud&include_24hr_change=true`;
11 const data = await fetch(api).then(r => r.json());
12
13 // Tiny HTML snippet – links our CSS & JS vals

FetchBasic2 file matches

@ther•Updated 3 days ago

GithubPRFetcher

@andybak•Updated 6 days ago