You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run//%22Wolf?q=image&page=12&format=json
For typeahead suggestions, use the /typeahead
endpoint:
https://codesearch.val.run/typeahead?q=image
Returns an array of strings in format "username" or "username/projectName"
Found 12752 results for "image"(976ms)
60profissao: "Auxiliar Educativa",
61localidade: "Ribeira-Alcofra",
62foto: "https://i.postimg.cc/NMVjHVxr/cropped-circle-image.png",
63},
64{
66profissao: "Programador Informático",
67localidade: "Agros-Alcofra",
68foto: "https://i.postimg.cc/vTVHLzP2/cropped-circle-image-1.png",
69},
70];
459<meta name="viewport" content="width=device-width, initial-scale=1.0">
460<script src="https://cdn.tailwindcss.com"></script>
461<link rel="icon" href="https://upload.wikimedia.org/wikipedia/commons/thumb/8/82/Flag_of_the_Social_Democratic_Party_%28Portugal%29.svg/1200px-Flag_of_the_Social_Democratic_Party_%28Portugal%29.svg.png" type="image/png" />
462<style>
463</style>
16SUM(cache_write_tokens) as total_cache_write_tokens,
17SUM(price) as total_price,
18SUM(num_images) as total_images
19FROM ${USAGE_TABLE}
20WHERE val_id = ? AND our_api_token = 1
54total_cache_write_tokens: 0,
55total_price: 0,
56total_images: 0
57};
58
85// Always include inference price for comparison
86inference_price: inferenceSummary.inference_price || 0,
87total_images: usageSummary.total_images,
88// Add flag to indicate inference data usage
89used_inference_data: !!inferenceSummary.inference_price,