You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=fetch&page=17&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=fetch
Returns an array of strings in format "username" or "username/projectName"
Found 14007 results for "fetch"(2802ms)
1try {
2const res = await fetch(`https://api.twilio.com/2010-04-01/Accounts/${sid}/Messages.json`, {
3method: "POST",
4headers: {
15}
16} catch (err) {
17console.error("Fetch error:", err);
18return new Response("Internal error", { status: 500 });
19}
23});
2425export default app.fetch;