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/$%7Burl%7D?q=fetch&page=1&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 8136 results for "fetch"(1276ms)

No matches found in users.

Try switching to another result type using the tabs above.

telegramBotStarterindex.ts1 match

@asdfg•Updated 1 hour ago
354 const botToken = process.env.TELEGRAM_BOT_TOKEN;
355
356 const response = await fetch(`https://api.telegram.org/bot${botToken}/setWebhook`, {
357 method: "POST",
358 headers: { "Content-Type": "application/json" },

telegramBotStartersendTelegramMessage.tsx1 match

@asdfg•Updated 1 hour ago
12 const telegramApiUrl = `https://api.telegram.org/bot${botToken}/sendMessage`;
13
14 const response = await fetch(telegramApiUrl, {
15 method: 'POST',
16 headers: {

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago