# SAM.gov Contract Opportunities (Federal Bids & Awards)

Search open US federal contract opportunities from SAM.gov: solicitations, sources sought, presolicitations and award notices, with NAICS, PSC, set-aside, deadlines, place of performance, contracting contacts and full description. Updated daily.

Free open data on GitHub: [US federal open bids](https://github.com/pushbuild/us-federal-open-bids) (open bids by state, CSV).

$0.24 per 1,000 opportunities

[Get an API key](https://pushbuild.com/apis/app/signup?api=sam-gov-opportunities)

Example request

```
POST /sam-gov-opportunities/run
{
  "keywords": "software",
  "maxItems": 20
}
```

## What a response looks like

POST /sam-gov-opportunities/run{"keywords": "software", "maxItems": 5}

```
{"count": 5, "items": [{ "active": true, "archiveDate": "2026-12-31", "baseType": "Combined Synopsis/Solicitation", "department": "VETERANS AFFAIRS, DEPARTMENT OF", "naicsCode": "513210", "noticeId": "22fe534e001b4a9085b96ebfe35d9453", "office": "256-NETWORK CONTRACT OFFICE 16 (36C256)", "officeCode": "36C256", "postedDate": "2026-11-08", "responseDeadline": "2026-11-20T13:00:00-05:00", … ]}
```

| active | archiveDate | baseType | department | naicsCode | noticeId |
| --- | --- | --- | --- | --- | --- |
| True | 2026-12-31 | Combined Synopsis/Solicitation | VETERANS AFFAIRS, DEPARTMENT OF | 513210 | 22fe534e001b4a9085b96ebfe35d9453 |
| True | 2026-12-05 | Combined Synopsis/Solicitation | DEPT OF DEFENSE | 541511 | aad592122aa84b0380359b7d1355b7dd |
| True | 2026-11-23 | Special Notice | NATIONAL AERONAUTICS AND SPACE ADMINISTRATION |  | 3d770e34e35345b68be547fa8d0a37b2 |
| True | 2026-12-05 | Combined Synopsis/Solicitation | DEPT OF DEFENSE | 541511 | 25ec3e4f298144248341e6e0dc3ca421 |
| True | 2026-12-31 | Combined Synopsis/Solicitation | VETERANS AFFAIRS, DEPARTMENT OF | 541519 | 294d21b4e4d54900996fbc8d1e23e3e6 |

Real rows returned by this API on 2026-11-09 for the request shown.

## What it returns

Open US federal contracting opportunities from SAM.gov, the official system for federal bids, in clean JSON. Refreshed daily.

Notice ID, title, solicitation number, notice type (solicitation, sources sought, presolicitation, award, special notice), posted date, **response deadline**, agency / sub-tier / office, NAICS and PSC codes, **set-aside** (small business, 8(a), HUBZone, SDVOSB, WOSB), place of performance, **award number, date, amount and awardee**, primary and secondary contracting officer contacts, the SAM.gov link and the full description.

## Common uses

- Daily bid feeds for your NAICS codes and states.
- Small-business set-aside alerts.
- Competitive intelligence from award notices: who won, for how much.
- Contracting-officer contact lists by agency.

## Request

`POST https://api.pushbuild.com/sam-gov-opportunities/run` with a JSON body. Send your key in the `X-API-Key` header.

| Field | Type | Description |
| --- | --- | --- |
| `keywords` | string | All words must appear in the title (or description, if enabled below). |
| `searchDescription` | boolean | Match keywords against the full description as well as the title. Default: `false`. |
| `naicsCodes` | list of strings | Prefix match, e.g. 5415 or 541512. |
| `pscCodes` | list of strings | Product/service code prefix, e.g. D3 or R4. |
| `agencies` | list of strings | Text matched against department, sub-tier and office, e.g. army, veterans affairs. |
| `states` | list of strings | Two-letter codes, e.g. VA, TX. |
| `setAsideCodes` | list of strings | SBA, SBP, 8A, 8AN, HZC, SDVOSBC, WOSB, EDWOSB, NONE. |
| `noticeTypes` | list of strings | e.g. Solicitation, Combined Synopsis/Solicitation, Sources Sought, Presolicitation, Award Notice, Special Notice. |
| `postedFrom` | string | YYYY-MM-DD. Defaults to the last 7 days when no other filter is set. |
| `postedTo` | string | YYYY-MM-DD. |
| `respondByFrom` | string | YYYY-MM-DD; use today to keep only biddable notices. |
| `noticeIds` | list of strings | Look up specific notices. |
| `awardsOnly` | boolean | Only notices carrying an award (awardee, amount, date). Default: `false`. |
| `activeOnly` | boolean | Skip archived notices. Default: `true`. |
| `includeDescription` | boolean | Full notice text. Default: `true`. |
| `maxItems` | integer | Maximum items to return (1-500). Default: `100`. |

### Example

```
curl -X POST https://api.pushbuild.com/sam-gov-opportunities/run \
  -H "X-API-Key: YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{"keywords": "software", "maxItems": 20}'
```

### Response

```
{"count": 20, "truncated": false, "seconds": 1.4, "items": [ { ... } ]}
```

Each call returns up to 500 items. Records that fail validation or are not found are flagged in the items and not charged.

## Pricing

Pay only for results returned: $0.24 per 1,000 opportunities. No charge for errors or empty searches.

| Opportunities | Cost |
| --- | --- |
| 1,000 | $0.24 |
| 10,000 | $2.40 |
| 100,000 | $24.00 |
| 1,000,000 | $240.00 |
| 4,166 a month | Free ($1 monthly credit) |

## Use it from Claude, ChatGPT or Cursor

This API is also an MCP server: `https://api.pushbuild.com/mcp/sam-gov-opportunities`. Add it to any assistant that supports remote MCP servers, with your key in the `X-API-Key` header. Same prices. [Setup for each app](https://pushbuild.com/apis/mcp.html).

## Related APIs

- [US Federal Contracts & Grants API](https://pushbuild.com/apis/us-federal-contracts.html): Search US government contract, grant and loan awards from the official USAspending.gov data by keyword, company, agency, NAICS, PSC, state, date and amount.
- [Government Bid Notices API](https://pushbuild.com/apis/government-bid-notices.html): Open and past bid solicitations, intents to award and contract awards from New York City, Los Angeles, Delaware, Montgomery County MD and Mesa AZ in one schema, refreshed daily..
- [Federal Grants API](https://pushbuild.com/apis/us-federal-grants.html): US federal grant opportunities from Grants.gov: forecasted, posted, closed and archived funding opportunities with number, title, agency, open and close dates and assistance listing, plus award ceiling and floor, total funding, expected awards, eligible applicants and contacts..
- [Regulations.gov Dockets & Public Comments Tracker API](https://pushbuild.com/apis/regulations-gov-dockets.html): Federal rules, notices and RFIs open for comment, with deadlines and daily comment counts; docket rollups; public comment listings and full text for HHS agencies (CMS, FDA, CDC, NIH, HRSA).
- [Sanctions Screening: OFAC SDN, UN, EU and UK Lists API](https://pushbuild.com/apis/sanctions-screening.html): Screen names of people, companies and vessels against the official OFAC SDN and consolidated, UN Security Council, EU and UK sanctions lists, with fuzzy matching and a 0-100 score, programs, dates of birth, nationalities and aliases..
- [Salary Benchmarks API](https://pushbuild.com/apis/salary-benchmarks.html): US salary data for about 830 occupations nationally, in every state and every metro area: employment, mean wage and 10th, 25th, median, 75th and 90th percentile hourly and annual pay, from the official BLS wage survey (May 2025)..

## Tell us what you need built.

Questions about this API, higher volumes, or a data source you need that we don't cover yet.

[hello@pushbuild.com](mailto:hello@pushbuild.com?subject=API%20question)

## New APIs and data, twice a month

New data APIs, coverage changes and analysis from Pushbuild. No spam; one click to leave.

---
As of 2026-12-03. Source: https://pushbuild.com/apis/sam-gov-opportunities.html
