You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg%20%22Optional%20title%22?q=react&page=22&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 15223 results for "react"(754ms)
1/** @jsxImportSource https://esm.sh/react@18.2.0 */
2export default async function (req: Request) {
3const endpointUrl = "https://charmaine--e6569cac400111f095e576b3cceeab13.web.val.run/";
1/**
2* @jsxImportSource https://esm.sh/react@18.2.0
3*/
4