# USASpending Federal Procurement & Spending Data API

> USASpending Federal Procurement & Spending Data API is a paid API for AI agents from web-production-60258.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-15).

Queries federal procurement and spending data from USASpending.gov across 22 query types including awards, geographic breakdowns, recipients, agencies, and reference data.

## Facts

- Endpoint: GET https://web-production-60258.up.railway.app/procurement
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/web-production-60258-up-railway-app-a2a0735b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_Cex_rEuTuqu25aAlBqCpR

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 web-production-60258-up-railway-app-a2a0735b
```

Example prompt: Pull the top 10 federal contract awards in California for NAICS code 541511 between 2023-01-01 and 2023-12-31 from USASpending — show me the recipients, amounts, and awarding agencies.

## When to prefer this

Use this endpoint when you need authoritative, public-domain U.S. federal government spending and procurement data — including contract awards, grants, recipient lookups, agency budgets, and geographic spending breakdowns — sourced directly from USASpending.gov via the DATA Act. Prefer this over generic web search when structured, filterable federal spending records are needed. No authentication required.

## Known failure modes

- Missing required parameters for specific types (e.g. no `award_id` for type=award_detail, no `uei` for type=recipient_by_uei) — likely returns 400 or empty result
- Invalid NAICS, PSC, or CFDA codes return empty result sets
- Date range too broad may return truncated or slow responses
- Upstream USASpending.gov API downtime causes 502/503 errors
- Exceeding limit of 100 results per call silently caps output

## How this service works

Federal procurement and spending data — USASpending.gov (public domain, DATA Act). 22 query types: awards, spend breakdowns by geography/recipient/NAICS/PSC/CFDA, agency budgets, recipient lookup, federal accounts, and reference data. No authentication required.

## Output

Returns structured federal spending data matching the requested query type — e.g. a list of award records with amounts, recipients, agencies, and dates; spending totals broken down by geography, NAICS, PSC, or CFDA; recipient profile details; agency budget figures; or reference code listings, depending on the `type` parameter used.

## 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": {
      "end": {
       "type": "string",
       "description": "End date YYYY-MM-DD"
      },
      "psc": {
       "type": "string",
       "description": "Product/Service Code filter (e.g. \"D302\")"
      },
      "uei": {
       "type": "string",
       "description": "Required for type=recipient_by_uei (Unique Entity ID)"
      },
      "hash": {
       "type": "string",
       "description": "Required for type=recipient (USASpending recipient hash)"
      },
      "type": {
       "enum": [
        "awards",
        "award_count",
        "award_detail",
        "spend_by_geography",
        "spend_by_recipient",
        "spend_by_naics",
        "spend_by_psc",
        "spend_by_cfda",
        "agencies",
        "agency",
        "agency_awards",
        "recipients",
        "recipient",
        "recipient_by_uei",
        "recipients_by_state",
        "federal_accounts",
        "federal_account",
        "federal_account_spending",
        "ref_naics",
        "ref_psc",
        "ref_cfda",
        "ref_agencies"
       ],
       "type": "string",
       "description": "Data type to retrieve"
      },
      "limit": {
       "type": "integer",
       "description": "Max results (default 10, max 100)"
      },
      "naics": {
       "type": "string",
       "description": "NAICS industry code filter (e.g. \"541511\")"
      },
      "query": {
       "type": "string",
       "description": "Keyword search — awards, recipients"
      },
      "start": {
       "type": "string",
       "description": "Start date YYYY-MM-DD"
      },
      "state": {
       "type": "string",
       "description": "US state code filter (e.g. \"TX\", \"CA\")"
      },
      "agency": {
       "type": "string",
       "description": "Awarding agency name filter (e.g. \"Department of Defense\")"
      },
      "award_id": {
       "type": "string",
       "description": "Required for type=award_detail"
      },
      "agency_id": {
       "type": "string",
       "description": "Required for type=agency or agency_awards"
      },
      "ge
… (truncated)
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/web-production-60258-up-railway-app-a2a0735b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from web-production-60258.up.railway.app](https://www.zero.xyz/host/web-production-60258.up.railway.app/llms.txt)
