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=13&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 11458 results for "api"(695ms)
59});
6061// API endpoint to get all blog posts
62app.get("/api/posts", async c => {
63try {
64const posts = await getBlogPosts();
70});
7172// API endpoint to get a specific blog post
73app.get("/api/posts/:slug", async c => {
74try {
75const slug = c.req.param("slug");
2import { useAuth } from "./useAuth.tsx";
34const PROJECT_ENDPOINT = "/api/project";
5const FILES_ENDPOINT = "/api/project-files";
67export function useProject (projectId: string, branchId?: string) {