You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$2?q=react&page=15&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=react
Returns an array of strings in format "username" or "username/projectName"
Found 13157 results for "react"(1857ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3import * as React from "https://esm.sh/react@18.2.0";
4import { z } from "https://esm.sh/zod@3.22.4";
5import { etag } from "npm:hono/etag";
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2import { renderToString } from "https://esm.sh/react-dom@18.2.0/server";
3import * as React from "https://esm.sh/react@18.2.0";
4import { z } from "https://esm.sh/zod@3.22.4";
5import { etag } from "npm:hono/etag";