SAM.gov API
Federal contractor registry, active contract opportunities, and the government debarment list — all via one JSON API. Verify vendors, monitor bids, and screen counterparties in minutes.
What SAM.gov Exposes
SAM.gov (System for Award Management) is the U.S. government's primary registry for federal contracts and vendor management. Operated by the GSA, it holds three authoritative data sets: the registered entity database (every business cleared to receive federal contracts, each with a Unique Entity ID and CAGE code), the federal contract opportunity board (solicitations, awards, and set-aside notices from every federal agency), and the exclusion list (firms and individuals barred from federal business, including debarments, suspensions, and voluntary exclusions). Until now, accessing this data reliably meant navigating rate-limited government APIs, handling XML formats, and managing authentication flows. The Anysite SAM.gov endpoints return clean JSON with no setup beyond an API key.
All SAM.gov Endpoints
| Endpoint | What It Returns |
|---|---|
/api/samgov/entities |
Full contractor profile by UEI — CAGE code, registration status, business types, NAICS codes, addresses, and points of contact |
/api/samgov/entities/search |
Search registered entities by legal business name, primary NAICS code, or state — returns the same full profile for each match |
/api/samgov/opportunities |
Full contract opportunity by notice ID — title, type, NAICS, set-aside designation, solicitation number, response deadline, place of performance, and award details |
/api/samgov/opportunities/search |
Search active federal contract opportunities by keyword — returns opportunity summaries with organization hierarchy and award data |
/api/samgov/exclusions |
Full exclusion record by UUID — debarment type, excluding agency, active/terminated status, cross-references, and the party's identity details |
/api/samgov/exclusions/search |
Search the federal exclusion list by name, UEI, or CAGE code — with optional classification filter (Firm, Individual, etc.) |
What You Can Build
Vendor Due Diligence Tools
Look up any company's SAM.gov registration status, UEI, CAGE code, and active NAICS codes in one call. Surface debarment flags automatically before onboarding a new vendor or signing a contract.
Federal Contract Intelligence
Monitor active solicitations in your target NAICS codes or agencies. Search for bid opportunities by keyword and pull full opportunity details — solicitation number, response deadline, set-aside type, and award history.
Compliance Screening Workflows
Automatically cross-check counterparties against the federal exclusion list before transactions, grants, or partnerships. Screen by company name, UEI, or CAGE code and get active/terminated status in real time.
GovTech Automation Pipelines
Connect federal procurement data to internal systems via n8n, Make, or a custom REST pipeline. Sync contractor records, opportunity alerts, and exclusion flags without manual SAM.gov portal queries.
Quick Start
curl https://api.anysite.io/api/samgov/entities -H "access-token: YOUR_TOKEN" -H "Content-Type: application/json" -d '{"entity": "KM99JJBNQ9M5"}'
"legal_business_name": "Acme Federal Solutions LLC",
"uei_sam": "KM99JJBNQ9M5",
"cage_code": "8A3B7",
"registration_status": "Active",
"is_excluded": false,
"primary_naics": "541511",
"registration_expires_at": "2027-03-15T00:00:00Z"
curl https://api.anysite.io/api/samgov/opportunities/search -H "access-token: YOUR_TOKEN" -H "Content-Type: application/json" -d '{"query": "cloud computing", "count": 10}'
"notice_id": "273550718e47440ea62240809c2d081a",
"title": "Cloud Infrastructure Modernization — USDA",
"type": { "code": "o", "value": "Solicitation" },
"response_at": "2026-07-30T17:00:00Z",
"published_at": "2026-06-15T12:00:00Z"
curl https://api.anysite.io/api/samgov/exclusions/search -H "access-token: YOUR_TOKEN" -H "Content-Type: application/json" -d '{"query": "Acme Federal Solutions", "count": 5}'
// Empty array = no debarment or exclusion on record
[]
Plans
Every SAM.gov endpoint is included in all Anysite plans — there's no per-endpoint pricing to track. Use MCP Unlimited for flat-rate access through your AI tools, or a credit plan for REST & CLI at scale.
Frequently Asked Questions
registration_status field ("Active", "Expired", etc.) and a registration_expires_at date, so you can filter in your own code. The exclusions endpoints similarly return both active and terminated exclusion records, with is_active and terminated_at fields to distinguish them.opportunities/search endpoint returns active opportunities by default; the source reflects live SAM.gov data with no additional caching layer on the path.exclusions/search in a loop — pass each vendor's legal name, UEI, or CAGE code as the query parameter, one call per vendor. An empty result means no active exclusion on record for that entity.opportunities detail endpoint when fetching a specific opportunity by notice ID. If the field is empty or null, the solicitation is unrestricted and open to all businesses.Related Sources
Start pulling federal data today
Access SAM.gov contractor records, contract opportunities, and exclusion data via one JSON API — no government portal account needed.