You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Bart_info.art.src%7D?q=api&page=42&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 15408 results for "api"(1822ms)
297}
298299// API Functions
300async function handleLogin(): Promise<void> {
301window.location.href = "/auth/login";
318319try {
320const response = await fetch("/api/user/location", {
321method: "PUT",
322headers: { "Content-Type": "application/json" },
350try {
351const response = await fetch(
352`/api/locations/search?zipCode=${
353encodeURIComponent(
354zipCode,
428): Promise<void> {
429try {
430const response = await fetch("/api/user/location", {
431method: "PUT",
432headers: { "Content-Type": "application/json" },
483try {
484const response = await fetch(
485`/api/locations/${userData.preferredLocationId}`,
486);
487if (response.ok) {
502async function loadGuidanceCount(): Promise<void> {
503try {
504const response = await fetch("/api/guidance");
505const guidance = await response.json();
506document.getElementById("guidance-count")!.textContent = guidance.length.toString();
512async function loadSelectionsCount(): Promise<void> {
513try {
514const response = await fetch("/api/selections");
515const selections = await response.json();
516document.getElementById("selections-count")!.textContent = selections.length.toString();
6} from "../../shared/types.ts";
78const KROGER_BASE_URL = "https://api.kroger.com";
910export class KrogerAuthService {