# Riley Craig x402 Agent Store — Government Contracts Search

> Riley Craig x402 Agent Store — Government Contracts Search is a paid API for AI agents from x402-agent-store.rileycraig14.workers.dev, paid per call via x402, $0.09/call, status unknown (last checked 2026-09-14).

Returns US government contract awards matching a keyword or sector, including top awards, total awarded USD, and an activity score, for a configurable lookback window.

## Facts

- Endpoint: GET https://x402-agent-store.rileycraig14.workers.dev/gov/contracts
- Price: $0.09/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/riley-craig-x402-agent-store-government-contracts-search-b675c23c
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_REbZRtaLC9UtQQAAyEdK-

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 riley-craig-x402-agent-store-government-contracts-search-b675c23c
```

Example prompt: Search US government contract awards for 'cybersecurity' over the last 12 months — I want to see the top awards, total spending, and an activity score showing how active that sector is right now.

## When to prefer this

Use this endpoint when you need structured US government contract award data for a specific sector or keyword, including spend totals and competitive intelligence on winning vendors — especially when you want to avoid scraping SAM.gov or USASpending.gov manually. Ideal for market research, competitive analysis, and BD targeting for federal markets.

## Known failure modes

- Missing required query parameter 'q' returns a 400 error
- Invalid or out-of-range 'months' value (outside 1–36) may return a 400 or default to 12
- Payment not completed via x402/USDC returns a 402 Payment Required response
- No matching contracts found returns an empty top_awards array with zero totals
- Keyword too broad or too vague may return low-signal results with inflated counts

## How this service works

Machine-payable data APIs for AI agents — 35 endpoints across web search, on-chain reads, trading data, and AI-visibility. Pay per call in USDC via x402 on Base. No API keys, no signup.

## Output

A JSON object containing the query term, a list of top awards (each with date, agency, recipient, and dollar amount), total number of matching awards, total USD awarded, the lookback window in months, and a numeric activity score (0–100) indicating sector procurement intensity.

## 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",
     "required": [
      "q"
     ],
     "properties": {
      "q": {
       "type": "string",
       "description": "Keyword / sector, e.g. 'cybersecurity', 'AI', 'cloud migration'"
      },
      "months": {
       "type": "number",
       "description": "Lookback window in months, 1-36 (default 12)"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "properties": {
      "top_awards": {
       "type": "array"
      },
      "activity_score": {
       "type": "number"
      },
      "total_awarded_usd": {
       "type": "number"
      }
     }
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "query": "cybersecurity",
  "top_awards": [
   {
    "date": "2026-02-11",
    "agency": "DoD",
    "amount": 95000000,
    "recipient": "Booz Allen Hamilton"
   }
  ],
  "award_count": 1840,
  "window_months": 12,
  "activity_score": 88,
  "total_awarded_usd": 4200000000
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/riley-craig-x402-agent-store-government-contracts-search-b675c23c/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402-agent-store.rileycraig14.workers.dev](https://www.zero.xyz/host/x402-agent-store.rileycraig14.workers.dev/llms.txt)
