You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=api&page=59&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 19724 results for "api"(3400ms)
6566/* ------------------------------------------------------------------ */
67/* Utility: minimal XML escaping (only for text nodes) */
68function escapeXml(str: string = ""): string {
69return str
387<div class="card">
388<h3>Error Loading Suggestions</h3>
389<p>We couldn't get AI-powered task suggestions. This can happen due to network issues or API errors.</p>
390<div class="status-entry error">\${esc(suggestionsError)}</div>
391<button id="retry-suggestions-btn" class="button button-primary" style="margin-top:10px;">Retry Suggestions</button>
938}
939} catch (error) {
940const errMsg = `AI API Error: ${error.message}`;
941log.push({ agent: agentName, type: "error", message: errMsg });
942console.error(`${agentName} Error:`, error);
943return { error: "AI_API_ERROR", message: errMsg, details: error.toString() };
944}
945}