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/$%7Bart_info.art.src%7D?q=fetch&page=1079&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 11503 results for "fetch"(1128ms)

mathFactmain.tsx2 matches

@madmodUpdated 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_majUpdated 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

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

californiaBusinessNotificationsmain.tsx2 matches

@tmcwUpdated 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

@stevekrouseUpdated 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);
1import { discordSendDM } from "https://esm.town/v/vtdocs/discordSendDM?v=6";
2import process from "node:process";
3import { discordFetch } from "https://esm.town/v/vtdocs/discordFetch?v=10";
4import { randomize } from "https://esm.town/v/stevekrouse/randomize";
5import { discordDMs } from "https://esm.town/v/stevekrouse/discordDMs";
15 )
16 ) {
17 const messages = await discordFetch(
18 process.env.discordBot,
19 // Note: not using pagination here

untitled_ivoryFleamain.tsx2 matches

@stevekrouseUpdated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let untitled_ivoryFlea = () => fetch("https://emojicdn.elk.sh/❤️");

limitmain.tsx2 matches

@stevekrouseUpdated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2import process from "node:process";
3import { parentReference } from "https://esm.town/v/stevekrouse/parentReference";
45 : process.env.rlimitNamespacePassword;
46 //
47 const limit = await fetchJSON(
48 `https://api.rlimit.com/limit/${namespaceId}/${type}/${max}/${interval}/${key}?cost=${cost}&subNamespace=${subNamespace}&password=${pass}`,
49 );

getPublicValsmain.tsx3 matches

@stevekrouseUpdated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export const getPublicVals = async (username) => {
4 let { id } = await fetchJSON(
5 `https://api.val.town/v1/alias/${username}`,
6 );
7 return fetchJSON(
8 `https://api.val.town/v1/users/${id}/vals`,
9 );

fetch-socials4 file matches

@welsonUpdated 1 day ago
fetch and archive my social posts

fetchRssForSubcurrent2 file matches

@ashryanioUpdated 1 day ago