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/$%7Bsuccess?q=api&page=21&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 11524 results for "api"(1497ms)

myApi1 file match

@garcila•Updated 1 year ago

api1 file match

@uuz•Updated 1 year ago

myApi1 file match

@codingjlu•Updated 1 year ago

myApi1 file match

@stordahl•Updated 1 year ago

myApi2 file matches

@cihad•Updated 1 year ago

myApi1 file match

@carsonwack•Updated 1 year ago

paginateAPI2 file matches

@mgruel•Updated 1 year ago

myApi1 file match

@airon21•Updated 1 year ago

myApi1 file match

@smfoote•Updated 1 year ago

myApi1 file match

@bmschmidt•Updated 1 year ago

bloglive-reload.ts1 match

@fil•Updated 19 mins ago
82 // if we wanted to create a /lastUpdatedAt route,
83 // which would let us pass a val town bearer token, we could do that here
84 // gives us 10k API requests per minute instead of 1k
85 // and would work with private projects
86

blob_adminmain.tsx6 matches

@devto•Updated 1 hour ago
14
15// Public route without authentication
16app.get("/api/public/:id", async (c) => {
17 const key = `__public/${c.req.param("id")}`;
18 const { blob } = await import("https://esm.town/v/std/blob");
132};
133
134app.get("/api/blobs", checkAuth, async (c) => {
135 const prefix = c.req.query("prefix") || "";
136 const limit = parseInt(c.req.query("limit") || "20", 10);
141});
142
143app.get("/api/blob", checkAuth, async (c) => {
144 const key = c.req.query("key");
145 if (!key) return c.text("Missing key parameter", 400);
149});
150
151app.put("/api/blob", checkAuth, async (c) => {
152 const key = c.req.query("key");
153 if (!key) return c.text("Missing key parameter", 400);
158});
159
160app.delete("/api/blob", checkAuth, async (c) => {
161 const key = c.req.query("key");
162 if (!key) return c.text("Missing key parameter", 400);
166});
167
168app.post("/api/blob", checkAuth, async (c) => {
169 const { file, key } = await c.req.parseBody();
170 if (!file || !key) return c.text("Missing file or key", 400);
apiv1
papimark21