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=10&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 8146 results for "fetch"(1035ms)

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

fetchHtmlDom2 file matches

@aeaton•Updated 1 year ago

fetchReadwiseList1 file match

@ofalvai•Updated 1 year ago

fetchTable2 file matches

@stevekrouse•Updated 1 year ago

steamforumscannermain.tsx4 matches

@luoyuchu•Updated 2 hours ago
60 try {
61 await cleanupDebugHtmlBlobs(gameName);
62 const html = await fetchSteamDiscussionsPage(steamUrl);
63 await saveDebugHtml(gameName, html);
64
115}
116
117async function fetchSteamDiscussionsPage(url: string): Promise<string> {
118 const response = await fetch(url, {
119 headers: {
120 "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
333 console.log("Discord Webhook Payload:", JSON.stringify(payload, null, 2));
334
335 const response = await fetch(webhookUrl, {
336 method: "POST",
337 headers: { "Content-Type": "application/json" },

NowPlayingGrabbermain.tsx2 matches

@micleal•Updated 2 hours ago
12 const basic = Buffer.from(`${client_id}:${client_secret}`).toString("base64");
13
14 const response = await fetch(TOKEN_ENDPOINT, {
15 method: "POST",
16 headers: {
31 const { access_token } = await getAccessToken(client_id, client_secret, refresh_token);
32
33 const response = await fetch(NOW_PLAYING_ENDPOINT, {
34 headers: {
35 Authorization: `Bearer ${access_token}`,