# Government contracts API There is no single official government contracts API. US federal contract data is split across free GSA and Treasury APIs: SAM.gov Get Opportunities for notices, SAM.gov Entity Management for contractors, SAM.gov Exclusions for debarments, and SAM.gov Contract Awards and USAspending for awards. The SAM.gov APIs allow 10 requests a day without a SAM.gov role. Joining a notice to the incumbent's awards and registration takes three calls against three daily budgets.Checked on 2026-11-12.Official source: [open.gsa.gov API catalog](https://open.gsa.gov/api/) | Notices | SAM.gov Get Opportunities v2 | | --- | --- | | Contractors | SAM.gov Entity Management | | Debarments | SAM.gov Exclusions v4 | | Awards | SAM.gov Contract Awards, USAspending | | Cost | Free (official); keys expire every 90 days | | Joined | SAM Gov API, 100 free credits a month | ## Which API answers which question? | Question | Official API | Limit without a SAM.gov role | SAM Gov API endpoint | | --- | --- | --- | --- | | What is open to bid in my NAICS? | [Get Opportunities v2](https://open.gsa.gov/api/get-opportunities-public-api/) | 10 a day, 1-year posting window | /opportunities?q=cybersecurity&active=true | | Who is this contractor, and is its registration active? | [Entity Management](https://open.gsa.gov/api/entity-api/) | 10 a day, 10 records a page | /entities/{uei} | | Is this firm debarred? | [Exclusions v4](https://open.gsa.gov/api/exclusions-api/) | 10 a day | /exclusions/check?q=%7Buei_cage_or_name%7D | | What has this firm won, and from whom? | [USAspending](https://api.usaspending.gov/docs/endpoints) | No key; no published limit | /awards?recipient_uei=%7Buei%7D | | Which contracts end soon (recompetes)? | No direct endpoint; derived from award end dates | n/a | /recompetes?naics=541512&months_ahead=12 | ## Why teams put one API in front of them - Four official APIs mean four auth schemes and paging rules: SAM.gov keys rotate every 90 days, USAspending needs none. - Joining a notice to the incumbent's awards and registration takes three calls against three daily budgets. - AI agents need one tool surface; an MCP server over the joined data gives them search, lookups and awards in one place. - Bulk work (every entity, every open notice) needs files, not 10 records a page. ## Getting started SAM Gov API gives every account a free key at sign-up. Free plan: 100 credits a month and 20 requests a minute, no card. Paid: Developer $49/mo (10,000 credits), Pro $149/mo (50,000 credits), Scale $499/mo (250,000 credits). ``` curl "https://samgovapi.io/api/v1/opportunities?q=cybersecurity&active=true" \ -H "Authorization: Bearer sg_YOUR_KEY" ``` ## Teams that need everything at once The Data license is $2,500 one time: Every dataset the API serves (entities, opportunities, awards, exclusions) as CSV files, with a license for internal use. ## Get this as JSON ``` curl "https://samgovapi.io/api/v1/opportunities?q=cybersecurity&active=true" \ -H "Authorization: Bearer sg_YOUR_KEY" ``` MCP tool: `search_opportunities`Keys start free, with no card. [Get a free API key](https://samgovapi.io/sign-up) or read the [docs](https://samgovapi.io/docs). ## Questions Is there a free government contracts API?Yes. The official SAM.gov APIs and USAspending are free. SAM.gov needs an API key and allows 10 requests a day without a SAM.gov role, 1,000 with one.Does this cover state and local contracts?No. SAM.gov and USAspending are federal. State and local purchasing has no single public API.Is there an MCP server for government contracts data?Yes: https://samgovapi.io/api/mcp exposes search, entity lookups, opportunities, exclusions and awards as MCP tools, on the same credits as REST. ## Related - [SAM.gov API](https://samgovapi.io/sam-gov-api) - [Opportunities API](https://samgovapi.io/sam-gov-opportunities-api) - [Entity API](https://samgovapi.io/sam-gov-entity-api) - [USAspending API](https://samgovapi.io/usaspending-api) - [MCP server](https://samgovapi.io/mcp)Updated 2026-11-12. Sources checked 2026-11-12.Independent. Not affiliated with, endorsed by or sponsored by GSA, SAM.gov or any U.S. government agency. Registering in SAM.gov is free at sam.gov.

---

HTML version: https://samgovapi.io/government-contracts-api . Markdown: https://samgovapi.io/government-contracts-api.md

Independent. Not affiliated with, endorsed by or sponsored by GSA, SAM.gov or any U.S. government agency. Registering in SAM.gov is free at sam.gov.

Get a free API key: https://samgovapi.io/sign-up?ref=ai-claudebot
