You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/image-url.jpg%20%22Optional%20title%22?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 9124 results for "fetch"(730ms)
31e.preventDefault()
32const form = e.currentTarget as HTMLFormElement
33const res = await fetch(form.action || window.location.href, {
34method: unwrap(props.method) || "POST",
35body: new FormData(form),
119}
120121console.log("Lessons fetched:", lessonsResult.rows); // Debug log to check the fetched lessons
122123const lessonMap = lessonsResult.rows.reduce((map, lesson) => {