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/$%7Burl%7D?q=fetch&page=11&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 14499 results for "fetch"(1018ms)

fetchFile2 file matches

@LladUpdated 1 year ago

fetchJSON1 file match

@_Updated 1 year ago

fetchDateMeProfiles2 file matches

@stevekrouseUpdated 1 year ago

fetchJSON2 file matches

@joeyUpdated 1 year ago

fetchWikipediaContent2 file matches

@fab1anUpdated 1 year ago

fetchText2 file matches

@mgruelUpdated 1 year ago

fetchPelotonData1 file match

@andreterronUpdated 1 year ago

fetchWithJSON1 file match

@yulerUpdated 1 year ago

fetchDOEMenu2 file matches

@talUpdated 1 year ago

discordFetch2 file matches

@stevekrouseUpdated 1 year ago

personal_trmnlpolymarket_cron.tsx2 matches

@ramtinalamiUpdated 55 mins ago
16 console.log("⏰ Polymarket cron at", new Date(interval.lastRunAt).toISOString());
17
18 // 1) Fetch markets from Polymarket API
19 const params = new URLSearchParams({
20 closed: "false",
26
27 const url = `https://gamma-api.polymarket.com/markets?${params}`;
28 const raw = await fetch(url).then(r => r.json());
29 const rawJson = JSON.stringify(raw);
30

personal_trmnlmalifold_cron.tsx4 matches

@ramtinalamiUpdated 1 hour ago
11 console.log("⏰ Cron at", new Date(interval.lastRunAt).toISOString());
12
13 // 1) Fetch & cache raw dump
14 const raw = await fetch(RAW_URL).then(r => r.json());
15 const rawJson = JSON.stringify(raw);
16 const prev = await sqlite.execute({
29 .slice(0, 50);
30
31 // 3) Fetch full details for those 50
32 const details = await Promise.all(
33 candidates.map(m => fetch(DETAIL_URL(m.id)).then(r => r.json())),
34 );
35 const detailsMap = new Map(details.map(m => [m.id, m]));