# srch.best Spending Data

> srch.best Spending Data is a paid API for AI agents from x402.srch.best, paid per call via x402, $0.001/call, status unknown (last checked 2026-09-15).

Search and retrieve structured U.S. government spending records (contracts, grants, loans, direct payments) by keyword, agency, recipient, amount range, and date range.

## Facts

- Endpoint: POST https://x402.srch.best/spending
- Price: $0.001/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/srch-best-spending-data-2d6bbfbd
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_LV_chi5aAptlAHm6nlpXp

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 srch-best-spending-data-2d6bbfbd -d '<json body>'
```

Example prompt: Find me up to 20 federal contracts and grants awarded to Lockheed Martin between January 1 2023 and December 31 2023 with a minimum award amount of $1,000,000.

## When to prefer this

Choose this endpoint when you need structured, queryable U.S. government spending data — especially contracts and grants — with filtering by agency, recipient, amount, date range, and award type. Prefer it over generic web search when you need clean, machine-readable award records rather than unstructured HTML pages. It is especially useful for competitive intelligence on government contractors, agency budget analysis, or compliance research requiring precise fiscal data.

## Known failure modes

- Query too short (under 2 characters) returns validation error
- Date format not ISO 8601 YYYY-MM-DD causes rejection
- Limit above 100 or below 1 returns validation error
- Invalid award type enum value causes schema validation failure
- Payment failure via x402 protocol returns 402 Payment Required
- No matching records returns empty result set
- Cursor from a different query or expired cursor returns error or empty page

## How this service works

Structured spending data for agents, paid per request with x402 v2

## Output

A paginated list of structured government spending records matching the query, including award type (contract, grant, loan, direct payment, etc.), recipient name, awarding agency, award amount, dates, and a continuation cursor for fetching the next page of results.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "default": 20,
   "maximum": 100,
   "minimum": 1
  },
  "query": {
   "type": "string",
   "maxLength": 200,
   "minLength": 2
  },
  "agency": {
   "type": "string",
   "maxLength": 200,
   "minLength": 2
  },
  "cursor": {
   "type": "string",
   "maxLength": 128,
   "minLength": 1,
   "description": "Opaque continuation cursor returned by the previous response."
  },
  "toDate": {
   "type": "string",
   "format": "date"
  },
  "fromDate": {
   "type": "string",
   "format": "date"
  },
  "maxAmount": {
   "type": "number",
   "minimum": 0
  },
  "minAmount": {
   "type": "number",
   "minimum": 0
  },
  "recipient": {
   "type": "string",
   "maxLength": 200,
   "minLength": 2
  },
  "awardTypes": {
   "type": "array",
   "items": {
    "enum": [
     "contracts",
     "grants",
     "loans",
     "direct_payments",
     "other"
    ],
    "type": "string"
   },
   "default": [
    "contracts",
    "grants"
   ],
   "maxItems": 5,
   "minItems": 1
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/srch-best-spending-data-2d6bbfbd/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402.srch.best](https://www.zero.xyz/host/x402.srch.best/llms.txt)
