You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=api&page=12&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 18915 results for "api"(3403ms)
9/* 1 â–¸ fetch 10 freshest business headlines that mention our coins */
10const q = encodeURIComponent(COINS.slice(0, 3).join(" OR "));
11const url = `https://newsdata.io/api/1/latest?apikey=${KEY}`
12+ `&q=${q}&language=en&size=10&category=business`;
13
10/>
11<link
12href="https://fonts.googleapis.com/css2?family=Inter:wght@400;600&display=swap"
13rel="stylesheet"
14/>
64class="rounded-md w-[120px] h-[180px] object-cover flex-shrink-0"
65height="180"
66src="https://storage.googleapis.com/a1aa/image/da09cbc2-570f-460a-05bb-9836a9055c79.jpg"
67width="120"
68/>