You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=api&page=23&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 19507 results for "api"(2742ms)
13<<<<<<< main
14// check the boolean to see if a Glancer has enabled the link to start a cobrowsing session
15const resp = await fetch("/api/cobrowse/" + window.__DEMO_ID__, {
16method: "GET",
17headers: {
78// Import route modules
9import api from "./routes/api/api.routes.ts";
10import auth from "./routes/auth.ts";
11import root from "./routes/root.routes.ts";
3435// Mount route modules
36app.route("/api", api);
37app.route("/tasks", tasks);
38app.route("/demo", demo);