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=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 14043 results for "fetch"(2474ms)

fetchDateMeProfiles2 file matches

@stevekrouse•Updated 1 year ago

fetchJSON2 file matches

@joey•Updated 1 year ago

fetchWikipediaContent2 file matches

@fab1an•Updated 1 year ago

fetchText2 file matches

@mgruel•Updated 1 year ago

fetchPelotonData1 file match

@andreterron•Updated 1 year ago

fetchWithJSON1 file match

@yuler•Updated 1 year ago

fetchDOEMenu2 file matches

@tal•Updated 1 year ago

discordFetch2 file matches

@stevekrouse•Updated 1 year ago

fetchHeaders22 file matches

@stevekrouse•Updated 1 year ago

fetchHeaders21 file match

@mrahnis•Updated 1 year ago

invest-trackercrypto_news_cron.tsx2 matches

@samxii777•Updated 26 mins ago
7
8export default async function run() {
9 /* 1 â–¸ fetch 10 freshest business headlines that mention our coins */
10 const q = encodeURIComponent(COINS.slice(0, 3).join(" OR "));
11 const url = `https://newsdata.io/api/1/latest?apikey=${KEY}`
12 + `&q=${q}&language=en&size=10&category=business`;
13
14 const res = await fetch(url).then(r => r.json());
15 const hits = Array.isArray(res.results) ? res.results : [];
16

invest-trackermacro_news_daily.tsx1 match

@samxii777•Updated 1 hour ago
11 })&language=en&sortBy=publishedAt&pageSize=10&apiKey=${KEY}`;
12
13 const arts = (await fetch(query).then(r => r.json())).articles ?? [];
14 const top2 = arts.slice(0, 2).map(a => ({
15 title: a.title,