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/image-url.jpg%20%22Optional%20title%22?q=fetch&page=13&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 15083 results for "fetch"(4883ms)

fetchAndStore2 file matches

@tal•Updated 1 year ago

fetchCongressTradeReports1 file match

@claytn•Updated 1 year ago

fetchCat1 file match

@cole•Updated 1 year ago

fetchRSS2 file matches

@stevekrouse•Updated 1 year ago

fetchXML2 file matches

@stevekrouse•Updated 1 year ago

proxyFetch92 file matches

@alp•Updated 1 year ago

testFetch1 file match

@ImGqb•Updated 1 year ago

fetchProxy1 file match

@ridge•Updated 1 year ago

fetchBlob1 file match

@crsven•Updated 1 year ago

fetchJavascriptWeeklyIssues2 file matches

@Timmy•Updated 1 year ago

blorpmain.tsx1 match

@join•Updated 1 hour ago
470 resetIdleTimer(); setTypingIndicator(true);
471 try {
472 const response = await fetch(API_URL, {
473 method: 'POST',
474 headers: { 'Content-Type': 'application/json' },

MiniAppStarterneynar.ts16 matches

@arseniy•Updated 1 hour ago
2// const baseUrl = "https://api.neynar.com/v2/farcaster/";
3
4export async function fetchNeynarGet(path: string) {
5 const res = await fetch(baseUrl + encodeURIComponent(path), {
6 method: "GET",
7 headers: {
15}
16
17export async function fetchNeynarGetPages(path: string, pages: number, dataKey: string) {
18 let data: any = [];
19 let cursor = "";
20 let pagesLeft = pages;
21 while (true) {
22 const res = await fetchNeynarGet(`${path}&cursor=${cursor}`);
23 data = [...data, ...res[dataKey]];
24 cursor = res?.next?.cursor;
35//////////
36
37export function fetchUser(username: string) {
38 return fetchNeynarGet(`user/by_username?username=${username}`).then(r => r.user);
39}
40export function fetchUsersById(fids: string) {
41 return fetchNeynarGet(`user/bulk?fids=${fids}`).then(r => r.users);
42}
43
44export function fetchUserFeed(fid: number) {
45 return fetchNeynarGet(
46 `feed?feed_type=filter&filter_type=fids&fids=${fid}&with_recasts=false&with_replies=false&limit=100&cursor=`,
47 ).then(r => r.casts);
48}
49
50export function fetchChannel(channelId: string) {
51 return fetchNeynarGet(`channel?id=${channelId}`).then(r => r.channel);
52}
53
54export function fetchChannelFeed(channelId: string) {
55 return fetchNeynarGet(
56 `feed/channels?channel_ids=${channelId}&with_recasts=false&limit=100`,
57 ).then(r => r.casts);
58}
59
60export function fetchChannelsFeed(channelIds: string[]) {
61 return fetchNeynarGet(
62 `feed/channels?channel_ids=${channelIds.join(",")}&with_recasts=false&limit=100`,
63 ).then(r => r.casts);