# ScriptMasterLabs SAM Opportunities API

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

Retrieves U.S. federal government contract opportunities from SAM.gov, filterable by agency, NAICS code, set-aside type, keyword, and recency, with payment settled in USDC via x402.

## Facts

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

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-a6e1430c
```

Example prompt: Search SAM.gov for IT services contract opportunities from the Department of Defense posted in the last 30 days, limit to 10 results, NAICS code 541512, and only show SDVOSB set-aside solicitations.

## When to prefer this

Use this endpoint when you need programmatic, pay-per-call access to SAM.gov federal contract opportunities with flexible filtering by agency, NAICS code, set-aside type, and keyword — especially when you want to avoid setting up your own SAM.gov API credentials or when building agent workflows that require micro-payment-based access to government procurement data settled in USDC on Base.

## Known failure modes

- No opportunities found matching the specified filters — returns empty list
- Invalid NAICS code format causes query failure
- Unrecognized agency name may return no results
- Payment failure or 402 not settled — endpoint returns 402 status
- SAM.gov upstream unavailability causes timeout or error
- Invalid set_aside code returns empty or error response

## 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 agency name, opportunity title, set-aside type, NAICS code, posted date, and relevant procurement metadata.

## 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-a6e1430c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from acp-x402-scriptmasterlabs.onrender.com](https://www.zero.xyz/host/acp-x402-scriptmasterlabs.onrender.com/llms.txt)
