# x402stock Government Contracts Data

> x402stock Government Contracts Data is a paid API for AI agents from agents.x402stock.xyz, paid per call via x402 or MPP, $0.02/call, status unknown (last checked 2026-10-31).

Retrieves US government contract award data for AI agents, payable per-request in USDC via x402

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/gov-contracts?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-31
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-government-contracts-data-4aafcb1b
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_5CfS0pl5pAqDLRyRgCIk5

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 x402stock-government-contracts-data-4aafcb1b
```

Example prompt: Pull up the latest US government contract awards — I want to see what contracts have been issued and which companies are winning them.

## When to prefer this

Choose this endpoint when you need structured US government contract data for competitive intelligence, contractor revenue analysis, or federal procurement research. It requires no API key and charges $0.02 USDC per call via x402, making it suitable for autonomous agent workflows that need on-demand government spending data without subscription overhead.

## Known failure modes

- Invalid or missing properties parameter returns an error
- No matching contracts found for the specified criteria returns empty result
- Payment failure via x402 blocks request execution
- Malformed request body returns validation error
- Rate limiting or upstream API unavailability returns 5xx error

## How this service works

Federal contract & grant awards to a company (USAspending.gov)

## Output

Returns US government contract award records including contractor names, contract values, awarding agencies, contract types, and related procurement metadata, enabling analysis of federal spending and contractor relationships.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "limit": {
   "type": "integer",
   "default": 20,
   "maximum": 50,
   "exclusiveMinimum": 0
  },
  "order": {
   "enum": [
    "amount",
    "date"
   ],
   "type": "string",
   "default": "amount"
  },
  "recipient": {
   "type": "string",
   "maxLength": 120,
   "minLength": 2
  },
  "award_type": {
   "enum": [
    "contracts",
    "grants",
    "all"
   ],
   "type": "string",
   "default": "contracts"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "source",
  "as_of",
  "recipient",
  "award_type",
  "matched_recipients",
  "count",
  "total_awarded",
  "awards",
  "attribution"
 ],
 "properties": {
  "as_of": {
   "type": "string"
  },
  "count": {
   "type": "number"
  },
  "awards": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "award_id",
     "recipient",
     "amount",
     "awarding_agency",
     "awarding_sub_agency",
     "start_date",
     "end_date",
     "description",
     "url"
    ],
    "properties": {
     "url": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "amount": {
      "anyOf": [
       {
        "type": "number"
       },
       {
        "type": "null"
       }
      ]
     },
     "award_id": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "end_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "recipient": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "start_date": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "description": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "awarding_agency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     },
     "awarding_sub_agency": {
      "anyOf": [
       {
        "type": "string"
       },
       {
        "type": "null"
       }
      ]
     }
    },
    "additionalProperties": false
   }
  },
  "source": {
   "type": "string",
   "const": "usaspending"
  },
  "recipient": {
   "type": "string"
  },
  "award_type": {
   "type": "string"
  },
  "attribution": {
   "type": "string"
  },
  "total_awarded": {
   "type": "number"
  },
  "matched_recipients": {
   "type": "array",
   "items": {
    "type": "string"
   }
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-government-contracts-data-4aafcb1b/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from agents.x402stock.xyz](https://www.zero.xyz/host/agents.x402stock.xyz/llms.txt)
