You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?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 19337 results for "api"(992ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { createRoot } from "https://esm.sh/react-dom@18.2.0/client";
3import { appSiteAssociation, getQuote } from "./api.ts";
4import { App } from "./App.tsx";
5import { quoteCount } from "./constants.ts";
633<meta name="viewport" content="width=device-width, initial-scale=1.0">
634<meta charset="UTF-8">
635<link rel="preconnect" href="https://fonts.googleapis.com">
636<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
637<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Press+Start+2P&display=swap" rel="stylesheet">
638<style>
639:root {