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=8&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"(4119ms)

fetchNewPublicGitHubRepos2 file matches

@stevekrouse•Updated 1 year ago

fetch_docs2 file matches

@andreterron•Updated 1 year ago

fetch2 file matches

@vladimyr•Updated 1 year ago

fetch_example22 file matches

@vladimyr•Updated 1 year ago

fetch_example2 file matches

@vladimyr•Updated 1 year ago

fetch2 file matches

@std•Updated 1 year ago

fetchNewestVals1 file match

@vladimyr•Updated 1 year ago

fetchVal1 file match

@vladimyr•Updated 1 year ago

fetchText2 file matches

@vladimyr•Updated 1 year ago

fetchJSON2 file matches

@vladimyr•Updated 1 year ago

cardamomindex.ts1 match

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

cipherApp.tsx6 matches

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