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?q=fetch&page=715&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 8894 results for "fetch"(1710ms)

dream_interpretermain.tsx4 matches

@nwcphd•Updated 1 year ago
73
74 // Send the POST request
75 const response = await fetch("https://dreaminterpreteraibackend.com/dream", {
76 method: "POST",
77 headers: {
87 "Sec-Ch-Ua-Mobile": "?0",
88 "Sec-Ch-Ua-Platform": "\"macOS\"",
89 "Sec-Fetch-Dest": "empty",
90 "Sec-Fetch-Mode": "cors",
91 "Sec-Fetch-Site": "cross-site",
92 "Uid": randomUuid(),
93 "User-Agent":

pushNotemain.tsx2 matches

@dandivelbiss•Updated 1 year ago
7 body.append("client_secret", Deno.env.get("NOTEHUB_CLIENT_SECRET"));
8
9 const res = await fetch("https://notehub.io/oauth2/token", {
10 method: "POST",
11 headers: {
22 try {
23 const token = await authenticate();
24 const res = await fetch(
25 `https://api.notefile.net/v1/projects/${projectUID}/devices/${deviceUID}/notes/${fileName}`,
26 {

bookmarkmain.tsx1 match

@stevekrouse•Updated 1 year ago
78});
79
80export default app.fetch;

bookmarkmain.tsx1 match

@tefla•Updated 1 year ago
78});
79
80export default app.fetch;

checkin_aliyunpanmain.tsx3 matches

@yieldray•Updated 1 year ago
6 expire_time: string;
7 user_data: object;
8 } = await fetch("https://auth.aliyundrive.com/v2/account/token", {
9 method: "POST",
10 headers: {
26
27export function signInList(access_token: string) {
28 return fetch("https://member.aliyundrive.com/v1/activity/sign_in_list?_rx-s=mobile", {
29 method: "POST",
30 headers: {
53
54export async function signInReward(access_token: string, signInDay: number /* 本月第几次签到 */) {
55 const res = await fetch("https://member.aliyundrive.com/v1/activity/sign_in_reward?_rx-s=mobile", {
56 method: "POST",
57 headers: {

isMyWebsiteDownmain.tsx2 matches

@michaellatman•Updated 1 year ago
16
17 try {
18 const res = await fetch(URL, { redirect: "follow" });
19 if (res.status !== 200) {
20 reason = `(status code: ${res.status})`;
22 }
23 } catch (e) {
24 reason = `couldn't fetch: ${e}`;
25 ok = false;
26 }

watchAnthropicCircuitsBlogmain.tsx2 matches

@jsomers•Updated 1 year ago
2import { blob } from "https://esm.town/v/std/blob?v=11";
3import { email } from "https://esm.town/v/std/email?v=11";
4import { fetch } from "https://esm.town/v/std/fetch";
5
6export const watchWebsite = async () => {
7 const url = "https://transformer-circuits.pub";
8 const newHtml = await fetch(url).then(r => r.text());
9
10 const key = "watch:" + url;

MusicAPI2main.tsx3 matches

@nishui•Updated 1 year ago
1import { fetch } from "https://esm.town/v/std/fetch";
2
3export default async function(req: Request): Promise<Response> {
20 try {
21 [data1, data2] = await Promise.all([
22 fetch(encodedUri),
23 fetch(`https://music.163.com/api/song/media?id=${id}`),
24 ]);
25

uploadTo0x0main.tsx1 match

@easrng•Updated 1 year ago
4 formData.append("file", blob, name);
5 formData.append("expires", "1");
6 const response = await fetch("https://0x0.st", {
7 method: "POST",
8 body: formData,

upload_urlmain.tsx1 match

@stevekrouse•Updated 1 year ago
4 formData.append("file", file);
5
6 const response = await fetch("https://file.io", {
7 method: "POST",
8 body: formData,

fetchPaginatedData2 file matches

@nbbaier•Updated 3 weeks ago

FetchBasic1 file match

@fredmoon•Updated 3 weeks ago