# ScriptMasterLabs SAM Opportunities API

> ScriptMasterLabs SAM Opportunities API is a paid API for AI agents from acp-x402-discovery.onrender.com, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-14).

Retrieves federal government contract opportunities from SAM.gov, filterable by agency, NAICS code, set-aside type, and keyword, settled via x402 USDC micropayment.

## Facts

- Endpoint: GET https://acp-x402-discovery.onrender.com/x402/sam-opportunities
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/scriptmasterlabs-sam-opportunities-api-6d34afac
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZyhkYYsyOaY4C9YJ09yUG

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 scriptmasterlabs-sam-opportunities-api-6d34afac
```

Example prompt: Search SAM.gov for federal IT services contract opportunities from the Department of Defense posted in the last 30 days, filtered by NAICS code 541512 and set aside for SDVOSB, and return the top 10 results.

## When to prefer this

Use this endpoint when an agent needs real-time or recent federal government contract opportunity data from SAM.gov without building a full SAM.gov API integration. Ideal for small business owners, government contractors, and procurement researchers who want pay-per-query access to filterable federal procurement data via crypto micropayments on Base. Prefer this over scraping SAM.gov directly or using heavy enterprise procurement tools when lightweight, programmatic, per-call access is sufficient.

## Known failure modes

- Invalid NAICS code format returns empty or error response
- Unknown agency name string may return no results
- days parameter outside supported range may return unexpected results
- SAM.gov upstream downtime causes 502 or timeout
- x402 payment failure blocks the request before it reaches the data layer
- limit set too high may cause slow or truncated responses

## How this service works

Pay-per-call crypto, RWA, federal, SEC, and compliance APIs. Settled in USDC on Base via x402. Hyphen routes only (e.g. /x402/rwa-aggregates, /x402/gas-tracker).

## Output

A list of federal contract opportunities from SAM.gov matching the specified filters, including solicitation details such as title, agency, NAICS code, set-aside type, posting date, and opportunity type, paginated by the requested limit.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "days": {
       "type": "integer",
       "default": 30,
       "example": 30
      },
      "limit": {
       "type": "integer",
       "default": 10,
       "example": 10
      },
      "naics": {
       "type": "string",
       "example": "541512"
      },
      "ptype": {
       "type": "string",
       "default": "o",
       "example": "o"
      },
      "agency": {
       "type": "string",
       "example": "DEPARTMENT OF DEFENSE"
      },
      "keyword": {
       "type": "string",
       "example": "IT services"
      },
      "set_aside": {
       "type": "string",
       "example": "SDVOSBC"
      }
     }
    }
   }
  },
  "output": {
   "properties": {
    "example": {}
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "example": {}
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/scriptmasterlabs-sam-opportunities-api-6d34afac/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-discovery.onrender.com](https://www.zero.xyz/host/acp-x402-discovery.onrender.com/llms.txt)
