The US government data API you can build on
Built for AI agents
SAM.gov contracts, USAspending awards, Grants.gov and Congress trades, plus SEC EDGAR, as one JSON schema on one key. REST and a hosted MCP server. Free tier, no card.
GET /v1/opportunities?naics=541511&set_aside=SBA Authorization: Bearer edgr_...
{
"total": 82,
"opportunities": [{
"title": "Custom Software Development",
"set_aside": "Total Small Business",
"response_deadline": "2026-10-20"
}]
}
Live demo · see real request shapes →
Same record, two views
The JSON an endpoint returns, and the card your app draws from it. Highlighted fields are the ones the card uses.
GET /v1/congress live{
"member": "Hon. Jennifer McClellan",
"state_district": "VA04",
"ticker": "VZ",
"action": "sell",
"amount_low": 50001,
"amount_high": 100000,
"transaction_date": "2026-11-19",
"disclosed_date": "2026-11-20"
}
GET /v1/insider/latest live{
"ticker": "DXYZ",
"owner": "Saba Capital Management, L.P.",
"relationship": "10% owner",
"buy_value": 5062769.5,
"company": "Destiny Tech100 Inc."
}
What is Edgrapi?
Edgrapi is a JSON API for US government data. One key returns SEC EDGAR filings, financial statements, insider trades and 13F holdings, plus SAM.gov contract opportunities, USAspending awards, Grants.gov grants, House stock trades and federal lobbying disclosures. It works over REST or a hosted MCP server for AI agents. The free tier has 50 credits, and paid plans start at $3 a month.
Use Edgrapi if you
- build on SEC filings, insider trades or fund holdings and don't want to parse EDGAR yourself
- need federal contracts, awards or grants in the same JSON format as SEC data
- want to give an AI agent government data through MCP
- want per-call pricing from $3 a month, or one-time credit packs that never expire
What Edgrapi doesn't cover
- Live stock prices, intraday charts, forex or crypto. That's exchange data, so use a market-data API for it.
- Startup funding rounds beyond what companies disclose on SEC Form D. Those live in private databases.
You will hear about the solicitation before it closes
Save a search — NAICS, set-aside, state — and we poll SAM.gov every day and email you the new notices with the response deadline at the top. You are not paying for an endpoint. You are paying to not find out on day 29 of a 30-day window.
Works with Claude, Cursor, n8n, LangChain, Zapier and anything else that speaks HTTP — plain REST, OpenAPI 3.1, and a hosted MCP server.
Your agent already knows how to use this
Point any MCP-capable agent (Claude, ChatGPT, Cursor, or your own) at one hosted server and it
gets all 23 tools on one key — every US-government source as a callable tool:
get_opportunities (SAM.gov), get_awards (USAspending),
get_grants, get_congress, plus the full SEC set:
get_insider, get_holdings (13F), get_fundamentals,
get_sections and more. Authenticate with OAuth 2.1 (PKCE) or a bearer edgr_ key.
Simulated agent session using real MCP tool names.
Use Edgrapi wherever you build
A hosted MCP server for AI clients and agent frameworks, and a plain REST API for everything else. Each card opens a setup guide.
AI clients
Agent frameworks (MCP)
What you can pull
Every source, one key, one schema
SEC filings plus the core federal datasets — official, public-domain US data, normalized to the same clean JSON. One API key, one consistent shape, no scrapers to maintain.
SEC EDGAR
Insider trades, 8-K events, 13F fund holdings, activist stakes, financial statements, ratios and 10-K/10-Q sections.
SAM.gov
Federal contract opportunities — solicitations, sources-sought and award notices, filtered by NAICS, set-aside and state.
USAspending
Federal spending awards: contracts, grants, loans and direct payments, each with the award link back to the source.
Grants.gov
Federal grant funding opportunities with open and close dates and Assistance Listing (CFDA) numbers.
Congress
Congressional stock trades from US House STOCK Act filings — member, ticker, buy or sell, and the disclosed amount range.
One X-API-Key, one JSON shape across all of it, on a hosted MCP server too. See the endpoints →
Every endpoint, one key
One credit-metered key and one JSON schema across every source — the same auth on plain REST and the hosted MCP server.
| Source | Endpoints | MCP tools | Cost |
|---|---|---|---|
| SEC EDGAR | /v1/insider, /fundamentals, /ratios, /filings, /holdings, /activist, /events, /sections & more | get_insider, get_fundamentals, get_holdings & 12 more | 1–5 |
| SAM.gov | /v1/opportunities — federal contract opportunities | get_opportunities | 2 |
| USAspending | /v1/awards — contracts, grants, loans & direct payments | get_awards | 2 |
| Grants.gov | /v1/grants — grant funding opportunities | get_grants | 2 |
| Congress | /v1/congress — House STOCK Act stock trades | get_congress | 2 |
| LDA.gov | /v1/lobbying — federal lobbying disclosures | get_lobbying | 2 |
What comes back
The same metric gets tagged a few different ways depending on the company and the filing year, statements arrive as raw HTML, and matching a ticker to its CIK is a chore by itself. Edgrapi handles all of that before the data reaches you.
Statements
Income statement, balance sheet and cash flow, annual or quarterly. Every company uses the same field names, so you stop writing per-ticker special cases.
Ratios
Margins, ROE, ROA, current ratio, debt-to-equity and revenue growth, worked out from the statements so you do not have to.
Filings
Every 10-K, 10-Q and 8-K, each one linked straight to the document on SEC.gov.
Endpoints and what each call costs
Pick an endpoint to see its response shape. Costs are per call; an empty result costs 1 credit and a failed call costs nothing.
{
"ticker": "AAPL",
"cik": "0000320193",
"company": "Apple Inc.",
"sic": "3571",
"sic_description": "Electronic Computers",
"fiscal_year_end": "0927",
"exchanges": [
"Nasdaq"
],
"website": "https://www.apple.com",
"source": "SEC EDGAR submissions"
}
Use it from any language
It's a plain REST API that returns JSON. If your language can make an HTTP request, it can call Edgrapi.
curl "https://api.edgrapi.com/v1/fundamentals/AAPL?period=annual&limit=4" \ -H "X-API-Key: $EDGRAPI_KEY"
import requests
r = requests.get("https://api.edgrapi.com/v1/fundamentals/AAPL",
params={"period": "annual", "limit": 4},
headers={"X-API-Key": "edgr_..."})
print(r.json()["income_statement"][0]["revenue"])
const r = await fetch(
"https://api.edgrapi.com/v1/fundamentals/AAPL?period=annual&limit=4",
{ headers: { "X-API-Key": "edgr_..." } });
const data = await r.json();
Who it's for
GovCon & grant research
Track federal contract opportunities, awards and grant funding across SAM.gov, USAspending and Grants.gov — without wrestling each agency's own API.
Quant & investing tools
Insider buys, 13F holdings, Congress trades and fundamentals for screens, factor models and backtests, without watching the bill climb.
AI / LLM builders
Feed clean government and financial data into a research copilot, an agent, or a RAG pipeline — every endpoint is an MCP tool.
Simple, metered pricing
Start free, then pay for what you actually call — credits, not seats. Every source is on every plan, and credits never expire.
Your first call in about a minute
One key for SEC filings, federal contracts, spending, grants and Congress trades. Free tier, no card.
Start free — no card →Questions
Where does the data come from?
Official US government sources: SEC EDGAR (filings, insider trades, fund holdings), SAM.gov (contract opportunities), USAspending (federal awards), Grants.gov (grants), and US House STOCK Act disclosures (Congress trades). It's all public-domain; we normalize it into one JSON schema.
Do you cover government contract and grant data?
Yes. /v1/opportunities returns SAM.gov contract opportunities, /v1/awards returns USAspending awards (contracts, grants, loans, direct payments), and /v1/grants returns Grants.gov funding — flat JSON on the same key.
How fresh is the data?
As fresh as each source publishes it — Edgrapi normalizes the official feeds, it doesn't hold or restate anything. Congressional trades run up to 45 days behind by law and report dollar ranges, House-only for now.
Is there a free tier?
Yes. 50 free credits to start, no card. After those, you pick a plan; credits never expire.
Can I use it from Claude or Cursor?
Yes. Connect the hosted MCP server or install the agent skill; the AI-agent guide covers both. Every endpoint is an MCP tool.