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=1275&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 13469 results for "fetch"(1248ms)

getChineseDictionaryAsCSVmain.tsx2 matches

@byjonathanleung•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let getChineseDictionaryAsCSV = (await fetch("https://docs.google.com/spreadsheets/d/e/2PACX-1vSaIstzxO8d2J37TZjcFQfk4cN3unhuq_e-SD5L6pLvwSxrg-h836e8uIyWmuxjsG3LIbcxKLxO_8aZ/pub?output=csv")).text()

denoImportExmain.tsx2 matches

@libo•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let denoImportEx = (async () => {
6 );
7 const url = "https://blog.samaltman.com/how-to-be-successful";
8 const res = await fetch(
9 "https://extractus.deno.dev/extract?apikey=rn0wbHos2e73W6ghQf705bdF&type=article&url=" +
10 url

blogRSSTrackermain.tsx2 matches

@ianvph•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { set } from "https://esm.town/v/std/set?v=11";
3import { postHogAPICapture } from "https://esm.town/v/ianvph/postHogAPICapture";
10 // gets newest blog from rss feed
11 const blogRSSLink = "https://posthog.com/rss.xml";
12 const response = await fetch(blogRSSLink);
13 const newestEntry =
14 (await parseXML(await response.text())).rss.channel

weathermain.tsx2 matches

@suhas•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let weather = async (place: string) => {
4 const req = await fetch(`https://wttr.in/${place}?format=j1`);
5 const res = await req.json();
6 return res;

mathFactmain.tsx2 matches

@madmod•Updated 1 year ago
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText?v=5";
2
3// Random math fact
4export let mathFact = fetchText(
5 "http://numbersapi.com/random/math"
6);

nameTopHNThreadmain.tsx2 matches

@elsif_maj•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let nameTopHNThread = (async () => {
4 // Cheerio parses markup and provides an API to interact with the resulting data structure
5 const cheerio = await import("npm:cheerio"); // You can import NPM packages
6 const reply = await fetch("https://news.ycombinator.com/");
7 const replyText = await reply.text();
8 const $ = await cheerio.load(replyText);

fetchXMLmain.tsx2 matches

@_•Updated 1 year ago
1import { fetchXML as fetchXML2 } from "https://esm.town/v/stevekrouse/fetchXML?v=3";
2
3export let fetchXML = fetchXML2;

pdfExamplemain.tsx1 match

@tmcw•Updated 1 year ago
41 });
42 });
43 return app.fetch(req);
44});

californiaBusinessNotificationsmain.tsx2 matches

@tmcw•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3let { californiaBusinessNotificationsLast } = await import("https://esm.town/v/tmcw/californiaBusinessNotificationsLast");
5export const californiaBusinessNotifications = (async () => {
6 const { parse } = await import("https://deno.land/x/xml/mod.ts");
7 const res: any = await fetch(
8 "https://bizfileonline.sos.ca.gov/api/FilingDetail/business/4603/false",
9 {

untitled_blackCrayfishmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { fetchXML } from "https://esm.town/v/stevekrouse/fetchXML";
2
3export let untitled_blackCrayfish = fetchXML(
4 "https://www.readtangle.com/archive/rss/",
5);

GithubPRFetcher

@andybak•Updated 2 days ago

proxiedfetch1 file match

@jayden•Updated 3 days ago