You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$1?q=api&page=63&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 18726 results for "api"(2042ms)
23this.clientSecret = Deno.env.get("YAHOO_CLIENT_SECRET") || "";
24this.redirectUri = Deno.env.get("YAHOO_REDIRECT_URI") || "";
25this.baseUrl = "https://api.login.yahoo.com/oauth2";
2627if (!this.clientId || !this.clientSecret) {
369<div class="card">
370<h3>Error Loading Suggestions</h3>
371<p>We couldn't get AI-powered task suggestions. This can happen due to network issues or API errors.</p>
372<div class="status-entry error">\${esc(suggestionsError)}</div>
373<button id="retry-suggestions-btn" class="button button-primary" style="margin-top:10px;">Retry Suggestions</button>
912}
913} catch (error) {
914const errMsg = `AI API Error: ${error.message}`;
915log.push({ agent: agentName, type: "error", message: errMsg });
916console.error(`${agentName} Error:`, error);
917return { error: "AI_API_ERROR", message: errMsg, details: error.toString() };
918}
919}