canonical: https://jentic.com/apis/samgovapi.io/samgovapi

# samgovapi.io API

The samgovapi.io API returns U.S. federal contracting data as JSON: SAM.gov entity registrations, contract opportunities, exclusions, USAspending awards, NAICS and PSC codes, and GSA schedule labor rates. You can look up a firm by UEI or CAGE code, search open opportunities by NAICS, set-aside, agency, and deadline, check whether a firm is actively excluded, and find awards likely to be recompeted. Every response carries meta.source, meta.as_of, and meta.credits_charged so an agent knows where the data came from and what the call cost. It is an independent service, not affiliated with GSA or SAM.gov.

## For AI agents

Look up SAM.gov entities by UEI or CAGE, search contract opportunities and awards, check exclusions, find recompetes and teaming partners, and set alerts on registration or opportunity changes.

## Scope

Does not handle submitting bids, registering an entity in SAM.gov, or filing with any agency. Use for reading federal contracting data on entities, opportunities, exclusions, and awards only.

## Capabilities

- Look up a registered entity by 12-character UEI or by CAGE code, with registration expiry, NAICS, PSC, SBA certifications, and an exclusion flag
- Search contract opportunities by keyword, NAICS, PSC, set_aside, agency, state, and posted or deadline date windows
- Check whether a UEI, CAGE code, or exact firm name is actively excluded, and search the full exclusion records
- Search USAspending contract awards by recipient_uei, agency, NAICS, vehicle, fiscal_year, or min_amount
- Find likely recompetes: awards whose potential end date falls within months_ahead
- Test a firm against the SBA size standard for a NAICS code using revenue_usd or employees
- Get GSA schedule labor rates and quartile stats for a labor category, filtered by education and min_years

## Use cases

### Agent-run vendor due diligence

Before a prime contractor signs a subcontract, their agent checks the sub through Jentic. It calls the registration-status operation with the firm's UEI to confirm the SAM.gov registration is active and when it expires, then runs the exclusion check on the same UEI. The meta.as_of field tells the agent how fresh the answer is, and the bearer key stays in the developer's own Jentic One instance.

Example prompt: Call GET `/api/v1/registration-status/{id}` with id 'J7M9HPTGJ1S8', then call GET `/api/v1/exclusions/check` with q 'J7M9HPTGJ1S8' and report the expiry date and whether the firm is excluded

### Opportunity pipeline search

A small IT contractor wants a weekly shortlist of bids. The opportunities search filters by naics, set_aside, agency, state, and deadline_from and deadline_to, and the single-opportunity read returns the full description with contracting-officer contacts as printed in the notice. Results page with a cursor, so the agent can walk the whole list.

Example prompt: Call GET `/api/v1/opportunities` with naics '541512', set_aside 'SBA', open true, and deadline_from '2026-12-01', then call GET `/api/v1/opportunities/{notice_id}` for the top three results

### Recompete and competitor research

Capture teams look for incumbent contracts that are about to end. The recompetes operation returns awards whose potential end date falls within months_ahead, filtered by NAICS, agency, set_aside, and min_value, and the per-entity award history shows what a competitor has won. Award history costs 3x credits per the spec, so the agent should call it only for shortlisted firms.

Example prompt: Call GET `/api/v1/recompetes` with naics '541330', months_ahead 12, and min_value 1000000, then call GET `/api/v1/entities/{uei}/awards` for the incumbent on the largest award

### Pricing and size-standard checks

When pricing a proposal, a contractor compares their rates to GSA schedule data and confirms small-business status. The labor-rates stats operation returns count, min, quartiles, and max hourly rate for a category, and the size-standard operation reports whether given revenue_usd or employees count as small for a NAICS code.

Example prompt: Call GET `/api/v1/labor-rates/stats` with q 'software engineer', then call GET `/api/v1/naics/{code}/size-standard` with code '541511' and revenue_usd 8000000

### Registration and opportunity alerts

Rather than polling, a user can save alerts. Creating an alert requires a name and a kind such as registration_expiry, opportunity_match, recompete, or exclusion, with optional uei, naics, psc, set_aside, and agency filters. On the Scale plan, signed webhook endpoints receive the alert events.

Example prompt: Call POST `/api/v1/alerts` with name 'Our SAM renewal', kind 'registration_expiry', and uei 'J7M9HPTGJ1S8', then call GET `/api/v1/alerts` to confirm it was saved

## Key endpoints

| Method | Path | Description |
| --- | --- | --- |
| GET | `/api/v1/entities/{uei}` | Get one entity by UEI |
| GET | `/api/v1/opportunities` | Search contract opportunities |
| GET | `/api/v1/exclusions/check` | Check whether a firm is actively excluded |
| GET | `/api/v1/awards` | Search contract awards |
| GET | `/api/v1/recompetes` | Find likely recompetes |
| GET | `/api/v1/registration-status/{id}` | Check registration and exclusion status by UEI or CAGE |
| GET | `/api/v1/naics/{code}/size-standard` | Check the SBA size standard |
| POST | `/api/v1/alerts` | Create an alert |

## Key resources

- **Entities** — SAM.gov registrations searchable by name, NAICS, PSC, state, and expiry, with lookups by UEI and CAGE
- **Opportunities** — Contract opportunity notices with full descriptions and contracting-officer contacts
- **Exclusions** — Exclusion records and a quick active-exclusion check by UEI, CAGE, or name
- **Awards and recompetes** — USAspending contract awards, per-entity award history, and awards nearing their end date
- **Reference codes and rates** — NAICS and PSC codes, SBA size standards, agencies, and GSA labor rates
- **Alerts and webhooks** — Saved alerts on registration expiry, opportunity matches, recompetes, and exclusions, with signed webhook delivery

## AI readiness

This API is usable in Jentic One now. Its AI-readiness score against Jentic's framework shows where it stands today and where improvements would make it even easier for agents to use.

- **Score:** 64 / 100
- **Maturity:** AI-Aware
- **Dimensions:**
  - Foundational Compliance: 78 / 100
  - Developer Experience & Jentic Compatibility: 63 / 100
  - AI-Readiness & Agent Experience: 47 / 100
  - Agent Usability: 94 / 100
  - Security: 60 / 100
  - AI Discoverability: 66 / 100
- **View full report:** https://jentic.com/apis/samgovapi.io/samgovapi/scorecard
- **How the score is calculated:** https://docs.jentic.com/reference/api-readiness-framework/overview/
- **More about the dimensions:** https://docs.jentic.com/reference/api-readiness-framework/specification/#dimensional-model-overview

### Score it yourself

Every API in the directory is allowlisted, so you can re-score it with no key required.

- **Score your own API:** https://jentic.com/scorecard.md
- **Scoring CLI agent skill:** https://github.com/jentic/jentic-api-scorecard/blob/main/skills/jentic-api-scorecard/SKILL.md

```sh
npx @jentic/api-scorecard-cli score <openapi-url>
```

## Why Jentic

- **Setup:** Wiring the samgovapi.io API by hand means getting a dashboard key, sending it as a bearer token, paging results with next_cursor, and tracking meta.credits_charged against a monthly credit budget. Through Jentic you install once, import it from the API Directory, store the key once, and your agent calls it.
- **Permission scoping:** samgovapi.io puts the entity UEI in the URL path (`/api/v1/entities/{uei}` and `/api/v1/entities/{uei}/awards`), so a rule can pin those lookups to one firm; searches carry their filters in the query string, so for those rules bound which operations run. You choose the operations it may call, so ones like subscription cancellation or webhook deletion are not included unless you add them.
- **Credential handling:** Your samgovapi.io key is stored once, encrypted, by your own Jentic One instance and injected at execution time. It never enters the agent's prompt, logs, or context.
- **Discovery method:** Agents search Jentic by intent such as 'check if a contractor is excluded' or 'find contract opportunities by NAICS', and Jentic returns the matching samgovapi.io operation with its input schema so the agent calls the right endpoint without browsing the reference docs.

## Related APIs

- **HigherGov API** — Federal contract and opportunity records filtered by vendor, agency, NAICS, and date
- **OpenCorporates API** — Company registry records from corporate registers worldwide
- **GovInfo API** — Official U.S. government publications such as the Federal Register and CFR

## FAQ

### What authentication does the samgovapi.io API use?

Per its OpenAPI spec, the samgovapi.io API uses HTTP bearer authentication with an API key from the samgovapi.io dashboard, sent as `Authorization: Bearer <key>`. A handful of operations are open with no key, including the onboarding questions, the agent signup and token endpoints, and the feedback endpoints. Through Jentic the key is stored encrypted by your own Jentic One instance and injected at call time.

### Can I check whether a contractor is excluded with the samgovapi.io API?

Yes. GET `/api/v1/exclusions/check` takes a required q value that can be a UEI, CAGE code, or exact firm name and reports whether it is actively excluded; the spec lists it at 1 credit. For the underlying records, GET `/api/v1/exclusions` searches by q, uei, cage, classification, and active.

### What are the rate limits for the samgovapi.io API?

The API description in the OpenAPI spec states the free plan allows 100 credits a month and 20 requests a minute. Some operations cost more than one credit, such as per-entity award history at 3x credits, and every response reports meta.credits_charged. See https://samgovapi.io for paid plan limits.

### How do I search federal contract opportunities through Jentic?

Install Jentic One with `curl -fsSL https://raw.githubusercontent.com/jentic/jentic-one/main/tools/install.sh | sh`, import the samgovapi.io API from the directory, and store your bearer key once. Your agent searches for 'find federal contract opportunities' and calls GET `/api/v1/opportunities` with filters such as naics, set_aside, and deadline_from. To run it on your own infrastructure, install Jentic One from its GitHub repo.

### Is there a samgovapi.io MCP server?

You don't need an MCP server to give your agent the samgovapi.io API. Jentic connects it directly from the API Directory: import it, store your credential once, and your agent calls it. Operations are found by intent search on demand, so no extra server's tool definitions are loaded into the agent's context.

### Can I limit what my agent is allowed to do with the samgovapi.io API?

Yes. For example, allow only the read operations under `/api/v1/entities`, `/api/v1/opportunities`, and `/api/v1/exclusions`, so the agent can research firms and bids but cannot create alerts, add webhooks, or cancel the subscription, and every call it makes is logged.

### Is samgovapi.io an official SAM.gov API?

No. The spec describes samgovapi.io as independent and not affiliated with GSA, SAM.gov, or any U.S. government agency. It republishes public federal datasets as JSON, and GET `/api/v1/datasets/status` reports the source date, refresh time, and row count of each dataset so you can judge freshness.
