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=352&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 7615 results for "fetch"(814ms)

fashionableJadeCatfishmain.tsx2 matches

@trihatmaja•Updated 3 months ago
11 const start = performance.now();
12 try {
13 const res = await fetch(url);
14 end = performance.now();
15 status = res.status;
22 } catch (e) {
23 end = performance.now();
24 reason = `couldn't fetch: ${e}`;
25 ok = false;
26 console.log(`Website down (${url}): ${reason} (${end - start}ms)`);

alluringCoralParrotmain.tsx1 match

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

cerebras_codermain.tsx1 match

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

uptimemain.tsx2 matches

@trihatmaja•Updated 3 months ago
11 const start = performance.now();
12 try {
13 const res = await fetch(url);
14 end = performance.now();
15 status = res.status;
22 } catch (e) {
23 end = performance.now();
24 reason = `couldn't fetch: ${e}`;
25 ok = false;
26 console.log(`Website down (${url}): ${reason} (${end - start}ms)`);

mariaSilviaTrigomain.tsx3 matches

@joseforonda•Updated 3 months ago
1import { dataToRSS } from "https://esm.town/v/stevekrouse/dataToRSS";
2import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
3
4function parseElement(el: any) {
18 feedSlugAuthor: "maria-silvia-trigo",
19 };
20 const url = `https://www.infobae.com/pf/api/v3/content/fetch/content-feed?query=${
21 encodeURIComponent(JSON.stringify(params))
22 }`;
23 const res = await fetchJSON(url);
24 const data = res.content_elements.map(parseElement);
25 return new Response(

patientCyanBearmain.tsx1 match

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

usableCoralMarmosetmain.tsx1 match

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

cordialGoldGerbilmain.tsx1 match

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

cerebrasTemplatemain.tsx1 match

@h123•Updated 3 months ago
20
21 try {
22 const response = await fetch("/chat", {
23 method: "POST",
24 headers: { "Content-Type": "application/json" },

cerebras_codermain.tsx1 match

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

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago