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=674&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 8757 results for "fetch"(1680ms)

honoAlpineHtmxDemomain.tsx1 match

@yawnxyz•Updated 11 months ago
66});
67
68export default app.fetch;

honoAlpineExamplemain.tsx1 match

@yawnxyz•Updated 11 months ago
64});
65
66export default app.fetch;

convertToResumeJSONmain.tsx1 match

@iamseeley•Updated 11 months ago
135 ];
136
137 const response = await fetch(endpoint, {
138 method: 'POST',
139 headers: {

valTownChatGPTmain.tsx2 matches

@xuybin•Updated 11 months ago
33
34 // Post the message so we can deal with large text data.
35 await fetch(`/post-message?threadId=${input.getAttribute("data-thread-id")}`, {
36 method: "post",
37 body: msgDiv.textContent,
147 return new Response(body, { headers: { "Content-Type": "text/event-stream" } });
148});
149export default app.fetch;

openAIStreamingREADME.md2 matches

@xuybin•Updated 11 months ago
10assistant > Here are a few fun Val ideas you could build on Val Town:
11
121. **Random Joke Generator:** Fetch a random joke from an API and display it.
132. **Daily Weather Update:** Pull weather data for your location using an API and create a daily summary.
143. **Mini Todo List:** Create a simple to-do list app with add, edit, and delete functionalities.
154. **Chuck Norris Facts:** Display a random Chuck Norris fact sourced from an API.
165. **Motivational Quote of the Day:** Fetch and display a random motivational quote each day.
17
18Which one sounds interesting to you?

vscodemain.tsx1 match

@xuybin•Updated 11 months ago
82 ));
83
84export default app.fetch;

feedsmain.tsx1 match

@nws•Updated 11 months ago
49
50 // gets all posts under #StateWX and returns them
51 const res = await fetch(
52 `https://public.api.bsky.app/xrpc/app.bsky.feed.searchPosts?q=%23${state}&limit=50&sort=latest`,
53 ).then((res) => res.json());

upload_jsonmain.tsx1 match

@stevedylandev•Updated 11 months ago
13 },
14 });
15 const res = await fetch("https://api.pinata.cloud/pinning/pinJSONToIPFS", {
16 method: "POST",
17 headers: {

getTeamsmain.tsx1 match

@brianleroux•Updated 11 months ago
3export default async function getTeams() {
4 let url = "https://www.capfriendly.com";
5 let res = await fetch(url);
6 let html = await res.text();
7 let doc = new DOMParser().parseFromString(html, "text/html");

scrapecapfriendlymain.tsx1 match

@brianleroux•Updated 11 months ago
3export async function handler(request: Request) {
4 let url = "https://www.capfriendly.com/";
5 let res = await fetch(url);
6 let html = await res.text();
7 let doc = new DOMParser().parseFromString(html, "text/html");

fetchPaginatedData2 file matches

@nbbaier•Updated 3 weeks ago

FetchBasic1 file match

@fredmoon•Updated 3 weeks ago