1import { fetchJSON } from "https://esm.town/v/ian/fetchJSON";
23export let ip = await fetchJSON("https://api.ipify.org?format=json ");
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=1021&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 11482 results for "api"(2241ms)
1import { fetchJSON } from "https://esm.town/v/ian/fetchJSON";
23export let ip = await fetchJSON("https://api.ipify.org?format=json ");