Use Edgrapi in Google Sheets
A short Apps Script adds an =EDGRAPI() function to your sheet, so a cell can show a
company's revenue, latest insider buy or newest congressional trade.
You need a free Edgrapi key for the REST examples: sign up at edgrapi.com/app (50 credits, no card). Keys start with edgr_ and are shown once.
Add the script
In your sheet, open Extensions > Apps Script, paste this, and save:
// Store your key once: Project Settings > Script properties > EDGRAPI_KEY = edgr_your_key
function EDGRAPI(path, field) {
var key = PropertiesService.getScriptProperties().getProperty("EDGRAPI_KEY");
var res = UrlFetchApp.fetch("https://api.edgrapi.com/v1/" + path, {
headers: { "X-API-Key": key }, muteHttpExceptions: true
});
var data = JSON.parse(res.getContentText());
if (!field) return JSON.stringify(data);
return field.split(".").reduce(function (o, k) { return o == null ? null : o[k]; }, data);
}
Use it
=EDGRAPI("company/AAPL", "company")
=EDGRAPI("congress?limit=1", "trades.0.ticker")
Each recalculation is a metered call, so avoid volatile formulas that refresh constantly. For larger pulls, write a function that fetches once and fills a range.