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/image-url.jpg%20%22Image%20title%22?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 8150 results for "fetch"(2381ms)

NowPlayingGrabbermain.tsx2 matches

@thunder75•Updated 2 hours ago
12 const basic = Buffer.from(`${client_id}:${client_secret}`).toString("base64");
13
14 const response = await fetch(TOKEN_ENDPOINT, {
15 method: "POST",
16 headers: {
31 const { access_token } = await getAccessToken(client_id, client_secret, refresh_token);
32
33 const response = await fetch(NOW_PLAYING_ENDPOINT, {
34 headers: {
35 Authorization: `Bearer ${access_token}`,

instagram-toolsfollows-check.jsx4 matches

@julianpera•Updated 3 hours ago
1import makeFetchCookie from "npm:fetch-cookie";
2const fetchCookie = makeFetchCookie(fetch);
3
4export default async function handleCron(interval) {
5 const following = await fetchCookie(
6 "https://www.instagram.com/api/v1/friendships/375942300/following/?query=miguelse10",
7 {
16 const isFollowing = following.users.some((user) => user.username === "miguelse10");
17
18 const pushNotification = await fetchCookie(
19 "https://ntfy.sh/alEMfLpdpoXMe6jB",
20 {

NowPlayingGrabbermain.tsx2 matches

@anthropium•Updated 4 hours ago
12 const basic = Buffer.from(`${client_id}:${client_secret}`).toString("base64");
13
14 const response = await fetch(TOKEN_ENDPOINT, {
15 method: "POST",
16 headers: {
31 const { access_token } = await getAccessToken(client_id, client_secret, refresh_token);
32
33 const response = await fetch(NOW_PLAYING_ENDPOINT, {
34 headers: {
35 Authorization: `Bearer ${access_token}`,

telegramBotStartersetupHook.tsx2 matches

@asdfg•Updated 5 hours ago
11 try {
12 const botToken = process.env.TELEGRAM_BOT_TOKEN;
13 const response = await fetch(`https://api.telegram.org/bot${botToken}/setWebhook`, {
14 method: "POST",
15 headers: { "Content-Type": "application/json" },
37 const botToken = process.env.TELEGRAM_BOT_TOKEN;
38
39 const response = await fetch(`https://api.telegram.org/bot${botToken}/getWebhookInfo`);
40 const result = await response.json();
41 return result;

turbo-testmain.tsx1 match

@msmh•Updated 5 hours ago
422for (const url of urls) {
423 try {
424 const response = await fetch(url);
425 const json = await response.json();
426 if (json) {

cerebras_coderindex.ts1 match

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

steamforumscannermain.tsx4 matches

@luoyuchu•Updated 8 hours ago
60 try {
61 await cleanupDebugHtmlBlobs(gameName);
62 const html = await fetchSteamDiscussionsPage(steamUrl);
63 await saveDebugHtml(gameName, html);
64
115}
116
117async function fetchSteamDiscussionsPage(url: string): Promise<string> {
118 const response = await fetch(url, {
119 headers: {
120 "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36",
333 console.log("Discord Webhook Payload:", JSON.stringify(payload, null, 2));
334
335 const response = await fetch(webhookUrl, {
336 method: "POST",
337 headers: { "Content-Type": "application/json" },

NowPlayingGrabbermain.tsx2 matches

@micleal•Updated 9 hours ago
12 const basic = Buffer.from(`${client_id}:${client_secret}`).toString("base64");
13
14 const response = await fetch(TOKEN_ENDPOINT, {
15 method: "POST",
16 headers: {
31 const { access_token } = await getAccessToken(client_id, client_secret, refresh_token);
32
33 const response = await fetch(NOW_PLAYING_ENDPOINT, {
34 headers: {
35 Authorization: `Bearer ${access_token}`,

templateTwitterAlertmain.tsx1 match

@divya88•Updated 9 hours ago
19 : Math.floor((Date.now() - 2 * 24 * 60 * 60 * 1000) / 1000);
20
21 // Fetch and log tweets
22 const response = await socialDataSearch(`${query} since_time:${timeFrame}`);
23 console.log("Response from socialDataSearch:", response);

growingEmeraldGrasshoppermain.tsx2 matches

@speedadd•Updated 11 hours ago
60 try {
61 for (const chunk of chunks) {
62 const response = await fetch(`https://api.elevenlabs.io/v1/text-to-speech/${ELON_VOICE_ID}`, {
63 method: "POST",
64 headers: {
124
125 try {
126 const response = await fetch("/chat", {
127 method: "POST",
128 body: JSON.stringify({

fetchPaginatedData2 file matches

@nbbaier•Updated 1 week ago

FetchBasic1 file match

@fredmoon•Updated 1 week ago