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=10&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 14044 results for "fetch"(4129ms)

fetchVerificationEmailHtml2 file matches

@petermillspaughUpdated 1 year ago

fetchText2 file matches

@stevekrouseUpdated 1 year ago

fetchTextWithCaching2 file matches

@iakovosUpdated 1 year ago

fetchAndParseFeeds2 file matches

@iakovosUpdated 1 year ago

fetchWeatherPrediction1 file match

@jamiedubsUpdated 1 year ago

fetchCongressTradeReports1 file match

@rodrigotelloUpdated 1 year ago

fetchHeaders2 file matches

@stevekrouseUpdated 1 year ago

proxyFetch22 file matches

@alpUpdated 1 year ago

fetchFile2 file matches

@LladUpdated 1 year ago

fetchJSON1 file match

@_Updated 1 year ago

Loudaily_lineup_scheduler.tsx10 matches

@jeffvincentUpdated 1 hour ago
188 // Call MLB Stats API for probable pitchers
189 const dateStr = date.toISOString().split("T")[0];
190 const response = await fetch(
191 `https://statsapi.mlb.com/api/v1/schedule?sportId=1&date=${dateStr}&hydrate=probablePitcher`,
192 );
221 return pitchers;
222 } catch (error) {
223 console.error(`❌ Error fetching probable pitchers:`, error);
224 return [];
225 }
465 private async refreshAccessToken(): Promise<void> {
466 try {
467 const response = await fetch("https://api.login.yahoo.com/oauth2/get_token", {
468 method: "POST",
469 headers: {
530 console.log(`🔍 Making request to: ${url.toString()}`);
531
532 const response = await fetch(url.toString(), {
533 headers: {
534 "Authorization": `Bearer ${this.config.access_token}`,
543
544 // Retry the request with new token
545 const retryResponse = await fetch(url.toString(), {
546 headers: {
547 "Authorization": `Bearer ${this.config.access_token}`,
593 // Get user's leagues using the specific game key
594 const leaguesEndpoint = `/users;use_login=1/games;game_keys=${gameKey}/leagues`;
595 console.log(`🔍 Fetching leagues with endpoint: ${leaguesEndpoint}`);
596 const leaguesResponse = await this.makeRequest(leaguesEndpoint);
597
625 return leagues;
626 } catch (error) {
627 console.error("❌ Error fetching user leagues:", error);
628 return [];
629 }
735 return players;
736 } catch (error) {
737 console.error(`Error fetching roster for team ${teamKey}:`, error);
738 return [];
739 }
764 console.log(`📝 XML body: ${xmlBody}`);
765
766 const response = await fetch(`${this.baseUrl}/team/${teamKey}/roster`, {
767 method: "PUT",
768 headers: {
796
797 // Store results in Val.town's blob storage for history
798 await fetch("https://api.val.town/v1/blob/scheduler_results", {
799 method: "POST",
800 headers: {

NewPerspctovologyAppmain.tsx1 match

@hxseidmanUpdated 1 hour ago
15 // 🧠 Optional: Call your GPT API here (if you want real answers)
16 // Example:
17 // const response = await fetch("https://YOUR-GPT-ENDPOINT", ...)
18
19 // For now: respond with a success confirmation