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/$%7Bsuccess?q=fetch&page=5&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 14499 results for "fetch"(2595ms)

tgbotbmain.tsx1 match

@wahobd•Updated 20 hours ago
36 }
37
38 await fetch(`https://api.telegram.org/bot${BOT_TOKEN}/sendMessage`, {
39 method: "POST",
40 headers: { "Content-Type": "application/json" },

email-attachment-handlerhandler.ts2 matches

@sorcoro•Updated 20 hours ago
154 formData.append('client_secret', clientSecret);
155
156 const response = await fetch(url, {
157 method: 'POST',
158 headers: {
195 };
196
197 const response = await fetch(url, {
198 method: 'POST',
199 headers,

basic_siteserver.tsx2 matches

@Koolala•Updated 1 day ago
21});
22
23// HTTP vals expect an exported "fetch handler"
24// This is how you "run the server" in Val Town with Hono
25export default app.fetch;

amaheart.js2 matches

@Smithographic•Updated 1 day ago
63 }
64 async getCount() {
65 const t = await fetch(this.href, {
66 headers: { Accept: "application/json" },
67 });
80 if (this.hasReacted()) return this.setReacted();
81 this.setAttribute("aria-busy", "true"),
82 await fetch(this.href, {
83 method: "post",
84 body: this.emoji,

amaama.tsx1 match

@Smithographic•Updated 1 day ago
210});
211
212export default app.fetch;

untitled-2497main.tsx1 match

@fabricio•Updated 1 day ago
52 setResults([]);
53 try {
54 const response = await fetch("http://localhost:3000/search", {
55 method: "POST",
56 headers: { "Content-Type": "application/json" },
13const app = new Hono();
14app.get("/", ObservationsEnjoyExisting);
15export default app.fetch;

stardewCloneindex.ts1 match

@dcm31•Updated 1 day ago
314
315 try {
316 const response = await fetch(window.location.origin, {
317 method: 'POST',
318 headers: { 'Content-Type': 'application/json' },

WillpersonalWebsitehomepage1 match

@willthereader•Updated 1 day ago
137app.get("/ImOKTheBullIsDead", ImOKTheBullIsDead);
138
139export default app.fetch;
46app.get("/ImOKTheBullIsDead", ImOKTheBullIsDead);
47
48export default app.fetch;

testWeatherFetcher1 file match

@sjaskeprut•Updated 2 days ago

weatherFetcher1 file match

@sjaskeprut•Updated 2 days ago