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=1100&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 16326 results for "fetch"(4126ms)

signupWithGoogleOrEmailmain.tsx1 match

@Elohor•Updated 4 months ago
12 e.preventDefault();
13 try {
14 const response = await fetch('/signup', {
15 method: 'POST',
16 headers: { 'Content-Type': 'application/json' },

daringPlumOctopusmain.tsx1 match

@amrhucien•Updated 4 months ago
13 setIsLoading(true);
14 try {
15 const response = await fetch("/generate-ideas", {
16 method: "POST",
17 headers: {

content_idea_hashtag_generatormain.tsx1 match

@amrhucien•Updated 4 months ago
13 setIsLoading(true);
14 try {
15 const response = await fetch("/generate-ideas", {
16 method: "POST",
17 headers: {

MiniAppStarterindex.ts2 matches

@xppaicyber•Updated 4 months ago
47});
48
49// HTTP vals expect an exported "fetch handler"
50// This is how you "run the server" in Val Town with Hono
51export default app.fetch;

MiniAppStarterfarcaster.ts1 match

@xppaicyber•Updated 4 months ago
84
85async function sendFarcasterNotification(payload: any) {
86 return await fetch("https://api.warpcast.com/v1/frame-notifications", {
87 method: "POST",
88 headers: { "Content-Type": "application/json" },

JokeEmailmain.tsx1 match

@steliosmchs•Updated 4 months ago
1export async function jokeEmail() {
2 const response = await fetch("https://official-joke-api.appspot.com/random_joke");
3 const joke = await response.json();
4

daypoemmain.tsx1 match

@sco•Updated 4 months ago
8 day: "numeric",
9 });
10 const weather = fetch(
11 `https://api.open-meteo.com/v1/forecast?latitude=37.77&longitude=-122.42&current=temperature_2m,weather_code`,
12 ).then(res => res.json()).then(data => console.log(data.current));

cerebras_coderindex1 match

@jackyoustra•Updated 4 months ago
5async function servePublicFile(path: string): Promise<Response> {
6 const url = new URL("./public/" + path, import.meta.url);
7 const text = await (await fetch(url, {
8 headers: {
9 "User-Agent": "", // to transpile TS to JS

cerebras_coderindex1 match

@jackyoustra•Updated 4 months ago
181
182 try {
183 const response = await fetch("/", {
184 method: "POST",
185 body: JSON.stringify({

stevekrouse_dot_comindex.tsx1 match

@shouser•Updated 4 months ago
24 if (url.pathname !== "/") {
25 const githubPagesUrl = `https://stevekrouse.github.io${url.pathname}${url.search}`;
26 const response = await fetch(
27 new Request(githubPagesUrl, {
28 method: request.method,

readwise-instapaper1 file match

@welson•Updated 3 days ago
Fetches my articles from Readwise. Syncs with/ Neon + Instapaper

manual-fetcher

@miz•Updated 2 weeks ago