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=378&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 7867 results for "fetch"(2423ms)

avidAmaranthHaremain.tsx1 match

@stevekrouse•Updated 3 months ago
35 headers: new Headers({ ...Object.fromEntries(request.headers), "User-Agent": "Val Town" }),
36 });
37 const response = await fetch(newRequest);
38 if (response.status === 404)
39 return new Response(

cerebras_codermain.tsx1 match

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

cerebras_codermain.tsx1 match

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

phenomenalScarletClammain.tsx1 match

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

cerebras_codermain.tsx1 match

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

makeCallOnEmailmain.tsx2 matches

@tr3ntg•Updated 3 months ago
8
9 // Instantiation of the Twilio client itself fails, so we make use of the models only, and
10 // call the endpoint manually with `fetch`.
11 const VoiceResponse = Twilio.twiml.VoiceResponse;
12 const response = new VoiceResponse();
19 const auth = btoa(`${twilioAccountSID}:${twilioAuthToken}`);
20
21 const result = await fetch(url, {
22 method: "POST",
23 headers: {

eagerTomatoMoosemain.tsx3 matches

@Eddy•Updated 3 months ago
17
18 try {
19 const response = await fetch('/download', {
20 method: 'POST',
21 headers: {
119 }
120
121 // Fetch video details and download link via yt-dlp proxy
122 const ytResponse = await fetch('https://yt-dlp-proxy.deno.dev/extract', {
123 method: 'POST',
124 headers: {

understandingLavenderTigermain.tsx3 matches

@Eddy•Updated 3 months ago
17
18 try {
19 const response = await fetch('/download', {
20 method: 'POST',
21 headers: {
119 }
120
121 // Fetch video details and download link via yt-dlp proxy
122 const ytResponse = await fetch('https://yt-dlp-proxy.deno.dev/extract', {
123 method: 'POST',
124 headers: {

cerebras_codermain.tsx1 match

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

weathermain.tsx4 matches

@gao•Updated 3 months ago
52
53 useEffect(() => {
54 async function fetchWeather() {
55 try {
56 const response = await fetch(
57 "https://api.open-meteo.com/v1/forecast?latitude=1.3521&longitude=103.8198&hourly=temperature_2m,weathercode&current_weather=true&temperature_unit=celsius&windspeed_unit=kmh&precipitation_unit=mm&timezone=Asia%2FSingapore&forecast_days=1"
58 );
61 setLoading(false);
62 } catch (error) {
63 console.error("Weather fetch failed", error);
64 setLoading(false);
65 }
66 }
67 fetchWeather();
68 }, []);
69

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago