# SAM.gov Contract Opportunities Search

> SAM.gov Contract Opportunities Search is a paid API for AI agents from contracts.memoryapi.org, paid per call via x402, $0.01/call, status down (last checked 2026-09-15).

Searches active US federal government contract opportunities listed on SAM.gov

## Facts

- Endpoint: GET https://contracts.memoryapi.org/x402/contracts/search
- Price: $0.01/call
- Payment: x402
- Status: down
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/contracts-memoryapi-org-e41f3082
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_aKR4jPaK4qk3zQ2GJY0e5

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability contracts-memoryapi-org-e41f3082
```

Example prompt: Search SAM.gov for active federal contract opportunities related to cybersecurity IT services, preferably with small business set-aside, posted in the last 30 days.

## When to prefer this

Use this endpoint when you need to discover active US federal government contract opportunities from SAM.gov — ideal for contractors, small businesses, or procurement researchers looking for open solicitations. Prefer this over the sibling grants endpoint when the user is interested in contracts and procurement rather than grant funding.

## Known failure modes

- No results found for overly narrow search terms
- Rate limiting or payment failure if USDC balance is insufficient
- SAM.gov data may have a slight lag if the underlying feed is delayed
- Invalid query parameters may return empty results or errors

## How this service works

Search active US government contract opportunities on SAM.gov

## Output

Returns a list of active US government contract opportunities from SAM.gov including solicitation numbers, agency names, contract titles, descriptions, NAICS codes, set-aside types, posting dates, and response deadlines.

## Example request

```json
{
 "limit": 10,
 "keyword": "artificial intelligence"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/contracts-memoryapi-org-e41f3082/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from contracts.memoryapi.org](https://www.zero.xyz/host/contracts.memoryapi.org/llms.txt)
