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

fetchJSON1 file match

@pomdtr•Updated 1 year ago

resilientFetch2 file matches

@easrng•Updated 1 year ago

fetchJSON_example2 file matches

@stevekrouse•Updated 1 year ago

fetchJSON_example2 file matches

@vladimyr•Updated 1 year ago

fetchBlueskyPost2 file matches

@vladimyr•Updated 1 year ago

fetchTweet2 file matches

@vladimyr•Updated 1 year ago

fetchComments1 file match

@willthereader•Updated 1 year ago

moduleFetch1 file match

@easrng•Updated 1 year ago

fetchReadable1 file match

@hvlck•Updated 1 year ago

testFetchCommentsVal2 file matches

@willthereader•Updated 1 year ago

cardamomindex.ts1 match

@connnolly•Updated 56 mins ago
83});
84
85export default app.fetch;

cipherApp.tsx6 matches

@bao•Updated 1 hour ago
44
45 useEffect(() => {
46 async function fetchQuote() {
47 try {
48 const known = await getKnownTexts();
54 let waited = 0;
55 while (value === undefined && waited <= 10) {
56 const response = await fetch(`https://simplevalueapi.val.run/getValue?id=${uuid}`);
57 const responseData = await response.json();
58 if (responseData?.value?.cipher === undefined) {
95 });
96 }
97 console.log("new uuid, fetching new quote");
98 let keyword = "";
99 let quote = "";
100 let author = "";
101 while (quote === "") {
102 const response = await fetch(`/quote`);
103 const responseData = await response.json();
104 if ((responseData?.quote?.length ?? 0) >= 5) {
134 }
135 } catch (error) {
136 console.error("Failed to fetch quote:", error);
137 setLoadingError(`${error}`);
138 setIsLoading(false);
140 }
141
142 fetchQuote();
143 }, []);
144