You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/...?q=api&page=16&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 21185 results for "api"(3497ms)
89onChange={(e) => setUrl(e.target.value)}
90placeholder="Starter Pack URL"
91autoCapitalize="on"
92autoCorrect="on"
93type="text"
126127function fetchStarterPackMemberIds(id: string) {
128return fetch(`https://api.warpcast.com/fc/starter-pack-members?id=${id}`)
129.then((res) => res.json())
130.then((data) => data?.result?.members)