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/$2?q=fetch&page=4&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 10800 results for "fetch"(517ms)

Smart_Expense_Trackeranalytics.ts1 match

@gunjana_04•Updated 6 hours ago
36 return c.json({
37 success: false,
38 error: "Failed to fetch spending trends"
39 }, 500);
40 }

Smart_Expense_Trackergoals.ts2 matches

@gunjana_04•Updated 6 hours ago
15 return c.json({
16 success: false,
17 error: "Failed to fetch goals"
18 }, 500);
19 }
136 return c.json({
137 success: false,
138 error: "Failed to fetch travel destinations"
139 }, 500);
140 }

Smart_Expense_Trackerexpenses.ts1 match

@gunjana_04•Updated 6 hours ago
23 return c.json({
24 success: false,
25 error: "Failed to fetch expenses"
26 }, 500);
27 }

untitled-9454App.tsx3 matches

@Varun07•Updated 6 hours ago
23 setLoading(true);
24 try {
25 const response = await fetch("/api/login", {
26 method: "POST",
27 headers: {
50 setLoading(true);
51 try {
52 const response = await fetch("/api/register", {
53 method: "POST",
54 headers: {
75 setLoading(true);
76 try {
77 await fetch("/api/logout", {
78 method: "POST",
79 });

untitled-9454index.ts1 match

@Varun07•Updated 6 hours ago
155});
156
157export default app.fetch;

cerebras_coderindex.ts1 match

@Catspindev•Updated 7 hours ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

Websitemain.tsx1 match

@w_ache•Updated 7 hours ago
3
4// This is the entry point for HTTP vals
5export default app.fetch;

Websiteapi.ts2 matches

@w_ache•Updated 7 hours ago
11 return c.json(products);
12 } catch (error) {
13 console.error('Error fetching products:', error);
14 return c.json({ error: 'Failed to fetch products' }, 500);
15 }
16});

Websitescript.js2 matches

@w_ache•Updated 7 hours ago
18
19 try {
20 const response = await fetch('/api/products');
21 if (!response.ok) {
22 throw new Error(`HTTP error! status: ${response.status}`);
73
74 try {
75 const response = await fetch('/api/purchase', {
76 method: 'POST',
77 headers: {

untitled-3477dailyFactTweet.ts1 match

@w_ache•Updated 7 hours ago
120 ].join(', ');
121
122 const response = await fetch(url, {
123 method: 'POST',
124 headers: {

HN-fetch-call2 file matches

@ImGqb•Updated 7 hours ago
fetch HackerNews by API

FRAMERFetchBasic1 file match

@bresnik•Updated 1 day ago