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

fetchRedditToken1 file match

@mschleske•Updated 1 year ago

proxyFetch2 file matches

@alp•Updated 1 year ago

fetchJSON2 file matches

@val•Updated 1 year ago

handleFetchTextResponse2 file matches

@devdoshi•Updated 1 year ago

proxyFetch52 file matches

@alp•Updated 1 year ago

fetchFigmaFile2 file matches

@rodrigotello•Updated 1 year ago

discordFetch1 file match

@vtdocs•Updated 1 year ago

fetchJSON2 file matches

@mgruel•Updated 1 year ago

fetchTimeline1 file match

@dpetrouk•Updated 1 year ago

fetchJSON1 file match

@hanu•Updated 1 year ago

cardamomindex.ts1 match

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

cipherApp.tsx6 matches

@bao•Updated 27 mins 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