# SAM.gov Federal Contracting Opportunities Search

> SAM.gov Federal Contracting Opportunities Search is a paid API for AI agents from api.ssh.autos, paid per call via x402, $0.01/call, status unknown (last checked 2026-11-14).

Searches US government SAM.gov for active federal contracting opportunities by keyword, NAICS/PSC codes, notice type, and date range

## Facts

- Endpoint: POST https://api.ssh.autos/v1/us/sam/opportunities?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sam-gov-federal-contracting-opportunities-search-67753b7f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_zfZAivoId-eXOcBEXz53z

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 sam-gov-federal-contracting-opportunities-search-67753b7f -d '<json body>'
```

Example prompt: Find up to 5 active federal contracting opportunities on SAM.gov related to 'cybersecurity' under NAICS code 541512, posted after January 1 2025.

## When to prefer this

Use this endpoint when an agent needs to query live US federal contracting opportunities from SAM.gov without setting up an account or API key. It is ideal for small-scale lookups (up to 5 results per call), pay-as-you-go workflows via USDC micropayment, or when combining government tender discovery with other public-record data sources on the same platform. Prefer this over direct SAM.gov API integration when no credentials are available or when cost-per-call pricing is preferable to subscription.

## Known failure modes

- No matching opportunities found — returns empty records array with status 'succeeded_empty'
- Keywords too broad or too narrow yielding zero results
- SAM.gov upstream unavailability causing fetch failure
- Invalid NAICS or PSC code format causing no results
- maxResults exceeding allowed maximum of 5 rejected by schema validation
- postedFrom/postedTo date strings in unrecognized format causing query errors

## How this service works

Live web and public-record data: marketplaces, real estate, social media, job listings, company registries and government tenders. Pay per call in USDC over x402 with no account, subscribe on the Apify Store, or buy a finished, sourced report.

## Output

Returns a list of matching federal contracting opportunity records from SAM.gov along with a summary object containing status (e.g. 'succeeded_empty') and total record count. Each record reflects official public procurement data including opportunity details sourced from SAM.gov.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "keywords": {
   "type": "string",
   "title": "Keywords",
   "default": "software",
   "maxLength": 120,
   "minLength": 1
  },
  "postedTo": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "title": "Postedto",
   "default": null
  },
  "pscCodes": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Psccodes",
   "maxItems": 3
  },
  "activeOnly": {
   "type": "boolean",
   "title": "Activeonly",
   "default": true
  },
  "maxResults": {
   "type": "integer",
   "title": "Maxresults",
   "default": 3,
   "maximum": 5,
   "minimum": 1
  },
  "naicsCodes": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Naicscodes",
   "maxItems": 3
  },
  "postedFrom": {
   "anyOf": [
    {
     "type": "string"
    },
    {
     "type": "null"
    }
   ],
   "title": "Postedfrom",
   "default": null
  },
  "noticeTypes": {
   "type": "array",
   "items": {
    "type": "string"
   },
   "title": "Noticetypes",
   "maxItems": 3
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "records": [],
  "summary": {
   "status": "succeeded_empty",
   "records": 0
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sam-gov-federal-contracting-opportunities-search-67753b7f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.ssh.autos](https://www.zero.xyz/host/api.ssh.autos/llms.txt)
