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=api&page=6&format=json

For typeahead suggestions, use the /typeahead endpoint:

https://codesearch.val.run/typeahead?q=api

Returns an array of strings in format "username" or "username/projectName"

Found 18780 results for "api"(2242ms)

c2cApiEmailAlerts1 file match

@brunobesson•Updated 2 months ago

scrapeZillowAPI2 file matches

@rochambeau314•Updated 2 months ago

postHogAPICapture1 file match

@goodie•Updated 2 months ago

sensibleMagentaPinniped

@Ayomiplenty•Updated 2 months ago

instagramScraping1 file match

@wolf•Updated 2 months ago

harmoniousPlumTapir1 file match

@davincidreams•Updated 2 months ago

apiProxy2 file matches

@maxm•Updated 2 months ago

capitalMultipliers2 file matches

@vinaybjp12•Updated 3 months ago

fiberplaneHonoZodStarter10 file matches

@fiberplane•Updated 3 months ago
Hono-Zod-OpenAPI with Fiberplane API Playground integration

MusicPracticeTodoApp.tsx3 matches

@buzdygan•Updated 18 mins ago
16
17 const load = async () => {
18 const res = await fetch("/api/todos");
19 const data: Todo[] = await res.json();
20 setTodos(data);
27 const add = async (e: React.FormEvent) => {
28 e.preventDefault();
29 await fetch("/api/todos", {
30 method: "POST",
31 headers: { "Content-Type": "application/json" },
37
38 const complete = async (id: number) => {
39 await fetch("/api/complete", {
40 method: "POST",
41 headers: { "Content-Type": "application/json" },

MusicPracticetodos.ts2 matches

@buzdygan•Updated 22 mins ago
44 const url = new URL(req.url);
45 const data = await req.json();
46 if (url.pathname.endsWith("/api/todos")) {
47 db.prepare("INSERT INTO todos (text) VALUES (?)").run(data.text);
48 return new Response("ok");
49 }
50 if (url.pathname.endsWith("/api/complete")) {
51 const id = data.id;
52 const today = getToday();
apiry
snartapi