You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bart_info.art.src%7D?q=api&page=43&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 15743 results for "api"(665ms)
38// This is a no-op if nothing's changed
39if (!isEndpointSet) {
40await bot.api.setWebhook(req.url, {
41secret_token: SECRET_TOKEN,
42});
15await createTables();
1617// API routes
18app.route("/api/items", itemsRouter);
1920// Serve static files