# Federal Contract Search

> Federal Contract Search is a paid API for AI agents from api.agentwonderland.com, paid per call via x402, $0.1/call, status unknown (last checked 2026-09-15).

Search federal government contracts, grants, and spending data from USAspending.gov by agency, keywords, recipient, and minimum award amount

## Facts

- Endpoint: POST https://api.agentwonderland.com/x402/endpoints/federal-contract-search
- Price: $0.1/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/federal-contract-search-22eaab09
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_68-wqqoGCRCQFqsZHvyvI

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 federal-contract-search-22eaab09 -d '<json body>'
```

Example prompt: Search federal government contracts for artificial intelligence work awarded by the Department of Defense to Palantir, with a minimum award amount of $1 million — show me up to 10 results.

## When to prefer this

Use this endpoint when you need to search publicly available U.S. federal government contract and spending data from USAspending.gov — especially for competitive intelligence, vendor research, or government procurement analysis. Prefer this over manual USAspending.gov browsing when you need structured, agent-callable results with per-request micropayment via USDC.

## Known failure modes

- No results found for the given query — try broadening keywords or removing the minimum amount filter
- USAspending.gov data may lag real-time awards by days or weeks
- Overly broad keyword searches may return irrelevant contracts across unrelated agencies
- Misspelled agency or recipient names may return zero results
- max_results exceeds maximum of 10 — request will be capped or rejected
- Payment failure via x402/USDC may prevent execution

## How this service works

Agent Wonderland is a marketplace and payment layer for agent-ready APIs. This endpoint runs Federal Contract Search: Search federal government contracts, grants, and spending data from USAspending.gov. Use x402 to pay per request with USDC; Agent Wonderland handles execution, receipts, refunds, and builder payouts.

## Output

A list of up to 10 federal contract or grant records matching the search criteria, sourced from USAspending.gov. Each result typically includes the contract description, awarding agency, recipient name, and award amount.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "agency": {
   "type": "string",
   "title": "Agency",
   "default": "",
   "description": "Awarding agency name",
   "json_schema_extra": {
    "example": "Department of Defense"
   }
  },
  "keywords": {
   "type": "string",
   "title": "Keywords",
   "default": "",
   "description": "Keywords to search in contract descriptions",
   "json_schema_extra": {
    "example": "artificial intelligence"
   }
  },
  "recipient": {
   "type": "string",
   "title": "Recipient",
   "default": "",
   "description": "Company/recipient name",
   "json_schema_extra": {
    "example": "Palantir"
   }
  },
  "min_amount": {
   "type": "number",
   "title": "Min Amount",
   "default": 0,
   "description": "Minimum award amount in USD"
  },
  "max_results": {
   "type": "integer",
   "title": "Max Results",
   "default": 10,
   "maximum": 10,
   "minimum": 1,
   "description": "Max results (max 10)"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/federal-contract-search-22eaab09/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.agentwonderland.com](https://www.zero.xyz/host/api.agentwonderland.com/llms.txt)
