# US Federal Government Contract & Award Spending by Agency

> US Federal Government Contract & Award Spending by Agency is a paid API for AI agents from x402helper.xyz, paid per call via x402, $0.009/call, status unknown (last checked 2026-11-20).

Returns federal award spending data (contracts, grants, loans, etc.) for a specified US government agency and fiscal year.

## Facts

- Endpoint: GET https://x402helper.xyz/89e509/govcon/agency?utm_source=zero.xyz
- Price: $0.009/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-20
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/us-federal-government-contract-award-spending-by-agency-1ab1336d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_k09Ot5N7psxayMyAKigom

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 us-federal-government-contract-award-spending-by-agency-1ab1336d
```

Example prompt: How much did the Department of Defense spend on contracts in federal fiscal year 2023?

## When to prefer this

Use this endpoint when you need quick, structured federal award spending data for a specific US government agency filtered by fiscal year and/or award type. It is well-suited for government contracting research, budget analysis, and procurement intelligence tasks where you need agency-level spending totals without building a full USAspending.gov API integration.

## Known failure modes

- Invalid or unrecognized agency name returns empty or error result
- Unknown toptier_code returns no data
- Unsupported award_type enum value causes validation error
- Fiscal year out of available data range returns empty result
- Payment failure (USDC micropayment not completed) blocks access
- Missing required 'input' object causes schema validation error

## How this service works

X402 micropayments server — AI agents pay USDC for OFAC screening, rates, and billing verification.

## Output

Returns a JSON object with a 'result' field containing federal award spending data for the specified agency and fiscal year, including totals broken down by award type (contracts, grants, loans, direct payments, IDVs, or other), and a 'success' boolean indicating whether the query succeeded.

## 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": [],
     "properties": {
      "year": {
       "type": "integer",
       "default": null,
       "description": "Federal fiscal year"
      },
      "agency": {
       "type": "string",
       "default": null,
       "description": "Agency name"
      },
      "award_type": {
       "enum": [
        "contracts",
        "direct_payments",
        "grants",
        "idvs",
        "loans",
        "other"
       ],
       "type": "string",
       "default": null
      },
      "toptier_code": {
       "type": "string",
       "default": null,
       "description": "Toptier agency code"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "result": {},
  "success": true
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/us-federal-government-contract-award-spending-by-agency-1ab1336d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from x402helper.xyz](https://www.zero.xyz/host/x402helper.xyz/llms.txt)
