You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg%20%22Image%20title%22?q=api&page=30&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 11828 results for "api"(925ms)
1// Dictionary API with direct Gist access and in-memory caching
23// Cache variables
19}
2021// Main API endpoint
22export async function GET(request) {
23try {
158159// Example usage:
160// https://api.val.town/v1/run/username.dictionaryApi?page=1&limit=10&startsWith=a
12app.get("/frontend/**/*", c => serveFile(c.req.path, import.meta.url));
1314// Add your API routes here
15// app.get("/api/data", c => c.json({ hello: "world" }));
1617// Unwrap and rethrow Hono errors as the original error