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=374&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 7883 results for "fetch"(874ms)

cerebrasTemplatemain.tsx1 match

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

victoriousGreenLynxmain.tsx1 match

@stevekrouse•Updated 3 months ago
27
28 try {
29 const response = await fetch("/chat", {
30 method: "POST",
31 headers: { "Content-Type": "application/json" },

masterfulPeachHookwormmain.tsx1 match

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

knowledgeableTomatoCrawdadmain.tsx1 match

@stevekrouse•Updated 3 months ago
27
28 try {
29 const response = await fetch("/chat", {
30 method: "POST",
31 headers: { "Content-Type": "application/json" },

considerateTealRoundwormmain.tsx1 match

@stevekrouse•Updated 3 months ago
187
188 try {
189 const response = await fetch("/", {
190 method: "POST",
191 body: JSON.stringify({

blissfulBrownSmeltmain.tsx2 matches

@charmaine•Updated 3 months ago
42
43 try {
44 const response = await fetch(`https://www.shovel.report/api/domains/${domain}`);
45 if (!response.ok) {
46 throw new Error(`HTTP error! status: ${response.status}`);
52 };
53 } catch (error) {
54 console.error("Error fetching technologies:", error);
55 return { services: [], social_media: {} };
56 }

adventurousTealSalmonmain.tsx1 match

@stevekrouse•Updated 3 months ago
187
188 try {
189 const response = await fetch("/", {
190 method: "POST",
191 body: JSON.stringify({

cerebras_searchermain.tsx3 matches

@stevekrouse•Updated 3 months ago
27 try {
28 // First API call - Get search results
29 const searchResult = await fetch("/api/search", {
30 method: "POST",
31 headers: { "Content-Type": "application/json" },
38 // Second API call - Get summary
39 setSummaryLoading(true);
40 const summaryResult = await fetch("/api/summarize", {
41 method: "POST",
42 headers: { "Content-Type": "application/json" },
149 // Search using SerpApi
150 try {
151 const searchResponse = await fetch(
152 `https://serpapi.com/search.json?q=${encodeURIComponent(query)}&api_key=${Deno.env.get("SERP_API_KEY")}`,
153 );

emailValHandlermain.tsx1 match

@charmaine•Updated 3 months ago
143
144 // send the request to openai
145 const response = await fetch(openaiUrl, {
146 method: "POST",
147 body: JSON.stringify(body),

isAgWebsiteDownmain.tsx2 matches

@ag_grid•Updated 3 months ago
21 start = performance.now();
22 try {
23 const res = await fetch(url);
24 end = performance.now();
25 status = res.status;
32 } catch (e) {
33 end = performance.now();
34 reason = `couldn't fetch: ${e}`;
35 ok = false;
36 console.log(`Website down (${url}): ${reason} (${end - start}ms)`);

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago