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=31&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 19334 results for "api"(1293ms)

myApi1 file match

@olibooty•Updated 1 year ago

myApi1 file match

@colebemis•Updated 1 year ago

myApi1 file match

@db0•Updated 1 year ago

myApi1 file match

@droonkid•Updated 1 year ago

myApi1 file match

@hibodog667•Updated 1 year ago

valTownApiExampleVal2 file matches

@tmcw•Updated 1 year ago

myApi1 file match

@qingmang•Updated 1 year ago

myApi1 file match

@davidar•Updated 1 year ago

myApi1 file match

@jnthn•Updated 1 year ago

myApi1 file match

@zeitport•Updated 1 year ago

untitled-6415main.ts1 match

@joshbeckman•Updated 53 mins ago
3
4const anthropic = new Anthropic({
5 apiKey: Deno.env.get("ANTHROPIC_API_KEY"),
6});
7

rss-subhttp_rss_sub.tsx4 matches

@thomasvn•Updated 1 hour ago
1import { sqlite } from "https://esm.town/v/std/sqlite";
2
3const API_KEY = Deno.env.get("API_KEY");
4
5export default async function httpHandler(req: Request): Promise<Response> {
6 if (!validateApiKey(req)) {
7 return new Response("Unauthorized", { status: 401 });
8 }
72}
73
74function validateApiKey(req: Request): boolean {
75 const authHeader = req.headers.get("Authorization");
76 return authHeader === `Bearer ${API_KEY}`;
77}
78
apiry
snartapi