11export async function fetchCongressTradeReports(callback) {
12const res = await fetchJSON(
13"https://bff.capitoltrades.com/trades?sortBy=-pubDate"
14);
15const trades = res.data;
You can access search results via JSON API by adding format=json
to your query:
https://codesearch.val.run/?q=api&page=894&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 10997 results for "api"(1330ms)
11export async function fetchCongressTradeReports(callback) {
12const res = await fetchJSON(
13"https://bff.capitoltrades.com/trades?sortBy=-pubDate"
14);
15const trades = res.data;