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=16&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 8124 results for "fetch"(317ms)

fetchPelotonWorkouts1 file match

@andreterron•Updated 1 year ago

fetchABird1 file match

@crsven•Updated 1 year ago

fetchCongressTradeReports2 file matches

@stevekrouse•Updated 1 year ago

proxyFetch62 file matches

@alp•Updated 1 year ago

fetchJSON1 file match

@pixelian•Updated 1 year ago

fetchRss2 file matches

@pdebie•Updated 1 year ago

proxyFetch42 file matches

@alp•Updated 1 year ago

fetchJSON1 file match

@dvergin•Updated 1 year ago

fetchBcycleCounts1 file match

@jonbo•Updated 1 year ago

Towniesend-message.ts3 matches

@valdottown•Updated 1 hour ago
79 }
80
81 // If there are selected files, fetch their content and add them to the messages
82 if (selectedFiles && selectedFiles.length > 0) {
83 const vt = new ValTown({ bearerToken });
99 fileContents += `## File: ${filePath}\n\`\`\`\n${fileWithLinesNumbers(content)}\n\`\`\`\n\n`;
100 } catch (error) {
101 console.error(`Error fetching file ${filePath}:`, error);
102 fileContents += `## File: ${filePath}\nError: Could not fetch file content\n\n`;
103 }
104 }

TownieuseAuth.tsx1 match

@valdottown•Updated 1 hour ago
15 // replace all this with oauth when it's ready
16 try {
17 const res = await fetch("/api/user", {
18 headers: {
19 "Authorization": "Bearer " + valTownAPIKey,