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=330&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 8446 results for "fetch"(734ms)

substantialOliveBasiliskmain.tsx1 match

@charmaine•Updated 1 month ago
1export default async function(req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 return fetch(new URL(url.pathname + url.search, "https://charmaine--5ad9e364-05c3-11f0-a042-569c3dd06744.web.val.run/"), {
4 method: req.method,
5 headers: req.headers,

socialllyyydiscordWebhook2 matches

@charmaine•Updated 1 month ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const discordWebhook = async ({
8 content: string;
9}) => {
10 const res = await fetch(url, {
11 method: "POST",
12 redirect: "follow",

socialllyyysubstantialOliveBasilisk1 match

@charmaine•Updated 1 month 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);

socialllyyysocialDataSearch2 matches

@charmaine•Updated 1 month ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function socialDataSearch(query: string): Promise<SocialDataResponse> {
4 const url = new URL("https://stevekrouse-socialdataproxy.web.val.run/twitter/search");
5 url.searchParams.set("query", query);
6 return await fetchJSON(url.toString(), {
7 bearer: Deno.env.get("valtown"),
8 });

socialllydiscordWebhook2 matches

@charmaine•Updated 1 month ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export const discordWebhook = async ({
8 content: string;
9}) => {
10 const res = await fetch(url, {
11 method: "POST",
12 redirect: "follow",

socialllysubstantialOliveBasilisk1 match

@charmaine•Updated 1 month 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);

socialllysocialDataSearch2 matches

@charmaine•Updated 1 month ago
1import { fetchJSON } from "https://esm.town/v/stevekrouse/fetchJSON";
2
3export async function socialDataSearch(query: string): Promise<SocialDataResponse> {
4 const url = new URL("https://stevekrouse-socialdataproxy.web.val.run/twitter/search");
5 url.searchParams.set("query", query);
6 return await fetchJSON(url.toString(), {
7 bearer: Deno.env.get("valtown"),
8 });

sdfsdfhidateme_home1 match

@charmaine•Updated 1 month ago
1export default async function(req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 return fetch(new URL(url.pathname + url.search, "https://vtwn_36ywGmYjcDL4HJKfTSmGbJKVWNny--charmaine.web.val.run/"), {
4 method: req.method,
5 headers: req.headers,

sdfsdfhidateMeRSS1 match

@charmaine•Updated 1 month ago
1export default async function(req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 return fetch(new URL(url.pathname + url.search, "https://vtwn_36ywGmYjcDL4HJKfTSmGbJKVWNny--charmaine.web.val.run/"), {
4 method: req.method,
5 headers: req.headers,

sdfsdfhidateme1 match

@charmaine•Updated 1 month ago
1export default async function(req: Request): Promise<Response> {
2 const url = new URL(req.url);
3 return fetch(new URL(url.pathname + url.search, "https://vtwn_36ywGmYjcDL4HJKfTSmGbJKVWNny--charmaine.web.val.run/"), {
4 method: req.method,
5 headers: req.headers,

fetchPaginatedData2 file matches

@nbbaier•Updated 2 weeks ago

FetchBasic1 file match

@fredmoon•Updated 2 weeks ago