# SAM Contract Opportunities Brief

> SAM Contract Opportunities Brief is a paid API for AI agents from oracles-production.up.railway.app, paid per call via x402, $0.25/call, status unknown (last checked 2026-09-15).

Returns an LLM-generated digest summarizing the most actionable new government contract opportunities from SAM.gov within a specified time window

## Facts

- Endpoint: GET https://oracles-production.up.railway.app/v1/sam-opportunities/brief
- Price: $0.25/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/sam-contract-opportunities-brief-e38e7ec2
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OU629Yi-vfx_TD-xYyrho

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-contract-opportunities-brief-e38e7ec2
```

Example prompt: Give me an LLM-written brief on the most actionable new SAM.gov contract opportunities posted since January 1, 2025.

## When to prefer this

Use this endpoint when you want a quick, human-readable executive summary of new SAM.gov contract opportunities rather than raw structured listings. Ideal for daily or weekly briefing workflows where a decision-maker wants curated highlights rather than exhaustive raw data. Prefer this over raw SAM.gov data endpoints when the consumer needs natural language actionability signals rather than structured records.

## Known failure modes

- No new contract opportunities in the window returns a brief with basedOnChanges=0 and minimal content
- Invalid or malformed 'since' datetime format returns an error
- Window too large may result in degraded LLM summarization quality
- Payment failure (402) if USDC payment header is missing or insufficient
- Service unavailability on Railway infrastructure returns 5xx

## How this service works

An LLM-written digest of the most actionable new contract opportunities in the window.

## Output

Returns a JSON object containing a 'brief' field with an LLM-written prose digest of the most actionable new contract opportunities, a 'generatedBy' field indicating whether LLM or template was used, and a 'basedOnChanges' integer showing how many contract postings were analyzed to produce the brief.

## 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": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {
      "since": {
       "type": "string",
       "format": "date-time",
       "description": "Window start (default: last 30 days)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "brief": {
       "type": "string"
      },
      "generatedBy": {
       "enum": [
        "llm",
        "template"
       ],
       "type": "string"
      },
      "basedOnChanges": {
       "type": "integer"
      }
     }
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/sam-contract-opportunities-brief-e38e7ec2/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracles-production.up.railway.app](https://www.zero.xyz/host/oracles-production.up.railway.app/llms.txt)
