You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=api&page=56&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 18892 results for "api"(1945ms)
5export function App() {
6const [clicked, setClicked] = useState(0);
7useFetch("api/styles");
8return <StylesViewer />;
9}
89useEffect(() => {
10fetch("/api/styles")
11.then(res => res.json())
12.then(data => {