You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/$%7Burl%7D?q=api&page=47&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 11656 results for "api"(1210ms)
18finish_reason?: string;
19num_images?: number;
20our_api_token: boolean;
21}
2243finish_reason TEXT,
44num_images INTEGER,
45our_api_token INTEGER NOT NULL,
46finish_timestamp INTEGER
47)
2import { useAuth } from "./useAuth.tsx";
34const PROJECT_ENDPOINT = "/api/project";
5const FILES_ENDPOINT = "/api/project-files";
67export function useProject (projectId: string, branchId?: string) {