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=9&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"(4463ms)

fetchJSON1 file match

@pomdtrUpdated 1 year ago

resilientFetch2 file matches

@easrngUpdated 1 year ago

fetchJSON_example2 file matches

@stevekrouseUpdated 1 year ago

fetchJSON_example2 file matches

@vladimyrUpdated 1 year ago

fetchBlueskyPost2 file matches

@vladimyrUpdated 1 year ago

fetchTweet2 file matches

@vladimyrUpdated 1 year ago

fetchComments1 file match

@willthereaderUpdated 1 year ago

moduleFetch1 file match

@easrngUpdated 1 year ago

fetchReadable1 file match

@hvlckUpdated 1 year ago

testFetchCommentsVal2 file matches

@willthereaderUpdated 1 year ago

personal_trmnlmalifold_cron.tsx4 matches

@ramtinalamiUpdated 38 mins 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]));

wixmain.tsx3 matches

@helgeUpdated 2 hours ago
110 };
111
112 const hubspotResponse = await fetch("https://api.hubapi.com/crm/v3/objects/contacts", {
113 method: "POST",
114 headers: {
129 if (errorData.category === "CONFLICT") {
130 // Contact already exists, update it
131 const updateResponse = await fetch(`https://api.hubapi.com/crm/v3/objects/contacts/${email}?idProperty=email`, {
132 method: "PATCH",
133 headers: {
207 }
208
209 const slackResponse = await fetch(slackWebhookUrl, {
210 method: "POST",
211 headers: {