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/?q=fetch&page=357&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 8065 results for "fetch"(728ms)

wannaaskveroshisomethingmain.tsx2 matches

@Dilrukkk•Updated 2 months ago
29 const handleNo = async () => {
30 setNoClicks(prev => prev + 1);
31 await fetch("/api/response", {
32 method: "POST",
33 headers: { "Content-Type": "application/json" },
38 const handleYes = async () => {
39 setIsValentine(true);
40 await fetch("/api/response", {
41 method: "POST",
42 headers: { "Content-Type": "application/json" },

distinguishedCopperGorillamain.tsx1 match

@Dilrukkk•Updated 2 months ago
33
34 console.log("User selected:", answer);
35 // fetch("/response", {
36 // method: "POST",
37 // headers: { "Content-Type": "application/json" },

valentinemain.tsx1 match

@Dilrukkk•Updated 2 months ago
10
11 // Send response to the server (optional)
12 fetch("/response", {
13 method: "POST",
14 headers: { "Content-Type": "application/json" },

fluentRedLobstermain.tsx1 match

@hasnain_786•Updated 2 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

cerebras_codermain.tsx1 match

@hasnain_786•Updated 2 months ago
182
183 try {
184 const response = await fetch("/", {
185 method: "POST",
186 body: JSON.stringify({

VOTelCollectormain.tsx3 matches

@boots•Updated 2 months ago
185);
186
187export default app.fetch;
188
189/***************************************************************
363 },
364 {
365 "key": "http.request.header.sec-fetch-mode",
366 "value": {
367 "stringValue": "cors",
813 },
814 {
815 "key": "http.request.header.sec-fetch-mode",
816 "value": {
817 "stringValue": "cors"

emailToDiscorddiscordClient1 match

@wilt•Updated 2 months ago
6
7export async function sendWithRateLimit(url: string, init: RequestInit): Promise<Response> {
8 const resp = await fetch(url, init);
9 if (resp.status === 429) {
10 const retryAfter = resp.headers.get("Retry-After");

systematicFuchsiaTahrmain.tsx1 match

@Tanveer•Updated 2 months ago
38
39 try {
40 const response = await fetch("/chat", {
41 method: "POST",
42 headers: { "Content-Type": "application/json" },

luxuriousTanAnacondamain.tsx1 match

@Tanveer•Updated 2 months ago
38
39 try {
40 const response = await fetch("/chat", {
41 method: "POST",
42 headers: { "Content-Type": "application/json" },

terrificRoseDolphinmain.tsx1 match

@Tanveer•Updated 2 months ago
38
39 try {
40 const response = await fetch("/chat", {
41 method: "POST",
42 headers: { "Content-Type": "application/json" },

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago