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/$%7Bsuccess?q=fetch&page=8&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 14500 results for "fetch"(4538ms)

fetchNewPublicGitHubRepos2 file matches

@stevekrouseUpdated 1 year ago

fetch_docs2 file matches

@andreterronUpdated 1 year ago

fetch2 file matches

@vladimyrUpdated 1 year ago

fetch_example22 file matches

@vladimyrUpdated 1 year ago

fetch_example2 file matches

@vladimyrUpdated 1 year ago

fetch2 file matches

@stdUpdated 1 year ago

fetchNewestVals1 file match

@vladimyrUpdated 1 year ago

fetchVal1 file match

@vladimyrUpdated 1 year ago

fetchText2 file matches

@vladimyrUpdated 1 year ago

fetchJSON2 file matches

@vladimyrUpdated 1 year ago

personal_trmnlpolymarket_cron.tsx2 matches

@ramtinalamiUpdated 1 hour 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]));