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=991&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 10191 results for "fetch"(2222ms)

lookupTwitterIdFreemain.tsx5 matches

@stevekrouse•Updated 1 year ago
1import { fetchText } from "https://esm.town/v/stevekrouse/fetchText";
2
3export let lookupTwitterIdFree = async (id) =>
4 fetchText("https://tweeterid.com/ajax.php", {
5 "headers": {
6 "accept": "*/*",
11 "sec-ch-ua-mobile": "?0",
12 "sec-ch-ua-platform": '"macOS"',
13 "sec-fetch-dest": "empty",
14 "sec-fetch-mode": "cors",
15 "sec-fetch-site": "same-origin",
16 },
17 "referrer": "https://tweeterid.com/",

openaiFineTunemain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export function openaiFineTune({ key, model, trainingFile }: {
6 trainingFile: string;
7}) {
8 return fetchJSON(
9 "https://api.openai.com/v1/fine_tuning/jobs",
10 {

resendmain.tsx2 matches

@stevekrouse•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export function resend({ from, to, subject, html, text, apiKey }: {
9 apiKey: string;
10}) {
11 return fetchJSON("https://api.resend.com/emails", {
12 method: "POST",
13 headers: {

testAndroidBingAppsmain.tsx2 matches

@xuangong•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { ruleAndroidAppsCheck } from "https://esm.town/v/xuangong/ruleAndroidAppsCheck";
3
7 "https://sapphire.api.microsoftapp.net/config/api/v1/get?setmkt=en-us&setplatform=android&setchannel=production&settenant=sapphire-bing";
8 try {
9 const response = await fetch(url, {
10 method: "GET",
11 });

pushovermain.tsx2 matches

@meatcar•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3// Send a pushover message.
4// token, user, and other opts are as specified at https://pushover.net/api
5export async function pushover({ token, user, message, title, url, ...opts }) {
6 return await fetch("https://api.pushover.net/1/messages.json", {
7 method: "POST",
8 body: JSON.stringify({

githubReposmain.tsx2 matches

@eburrito•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3// GitHub repos
4export let githubRepos = fetchJSON(
5 "https://api.github.com/users/stevekrouse/repos"
6);

getSeattleSubwayTweetsmain.tsx2 matches

@steven•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export let getSeattleSubwayTweets = async (request: Request): Promise<Response> => {
4 let data = await fetch(
5 `https://api.apify.com/v2/acts/quacker~twitter-url-scraper/runs/last/dataset/items?token=apify_api_wi6mnWH8aJ5yiwv3ePmYV7BI31yTE13ameye`,
6 );

qq_svgmain.tsx3 matches

@envl•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2import { calc_qq_string } from "https://esm.town/v/envl/calc_qq_string";
3
17 // stars for user
18 if (!repo) {
19 stars = await fetch(`https://api.github.com/users/${user}/repos`)
20 .then((r) => r.json())
21 .then((d) =>
25 // stars for repo
26 else {
27 const res = await fetch(
28 `https://api.github.com/search/repositories?q=${user}/${repo}`,
29 );

getTopicsmain.tsx2 matches

@nic•Updated 1 year ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON?v=41";
2
3export const getTopics = async () => {
4 const topics = fetchJSON(
5 "https://bldgforum.com/?index=&_data=routes%2F__home%2Findex"
6 );

fetchRssmain.tsx4 matches

@pdebie•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3// This supports more RSS types than @stevekrouse.fetchRSS
4export async function fetchRss(url: string, lastRunDate?: string | number) {
5 let Parser = await import("npm:rss-parser");
6 let parser = new Parser.default();
7 let response = await fetch(url);
8 let data = await response.text();
9 let { items } = await parser.parseString(data);

agentplex-deal-flow-email-fetch1 file match

@anandvc•Updated 4 days ago

proxyFetch2 file matches

@vidar•Updated 6 days ago