# x402stock Government Contracts Lookup

> x402stock Government Contracts Lookup is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Retrieves US federal government contract and grant awards for a named recipient company from USAspending.gov

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/gov-contracts
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-government-contracts-lookup-fb766322
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ronHfz69J-gXjwQtWso3C

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-lookup-fb766322
```

Example prompt: Show me the top 10 largest government contracts awarded to Lockheed Martin, sorted by amount.

## When to prefer this

Use this endpoint when you need to look up federal government contract or grant awards for a specific company or organization by name, want results sourced directly from the official USAspending.gov database, need no API key or account setup (pay per call in USDC), and want to retrieve up to 50 awards sorted by amount or date in a single call.

## Known failure modes

- Recipient name not found — returns empty awards array and zero total
- Ambiguous recipient name matches multiple entities — returns all matched variants
- limit parameter out of range (must be 1-50) — returns validation error
- Payment not completed via x402 — returns 402 Payment Required
- USAspending upstream unavailable — returns 5xx error

## How this service works

Federal contract and grant awards to a US company, from USAspending.gov. Pass `?recipient=Lockheed Martin` (required, fuzzy name match) plus optional `?award_type=contracts|grants|all`, `?order=amount|date`, `?limit=` (max 50). Each award carries the award id, amount, awarding agency, period of performance, description, and a usaspending.gov link, with a total. A government-spending catalyst.

## Output

A JSON object containing the recipient name, award type, total amount awarded, count of awards, list of matched recipient name variants, and an array of individual award records each with award ID, dollar amount, awarding agency and sub-agency, start/end dates, description, and a link to the USAspending.gov page. Sourced from USAspending.gov and attributed accordingly.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {
   "limit": 10,
   "order": "amount",
   "recipient": "Microsoft Corporation",
   "award_type": "contracts"
  }
 }
}
```

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "required": [
      "award_type",
      "limit",
      "order"
     ],
     "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"
      }
     },
     "additionalProperties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object",
     "$schema": "https://json-schema.org/draft/2020-12/schema",
     "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": {
… (truncated)
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "as_of": "2026-06-05T12:00:00.000Z",
  "count": 2,
  "awards": [
   {
    "url": "https://www.usaspending.gov/award/CONT_AWD_DEAC0494AL85000_8900_-NONE-_-NONE-",
    "amount": 48063763681.32,
    "award_id": "DEAC0494AL85000",
    "end_date": "2017-04-30",
    "recipient": "LOCKHEED MARTIN CORP",
    "start_date": "1993-10-15",
    "description": null,
    "awarding_agency": "Department of Energy",
    "awarding_sub_agency": "Department of Energy"
   },
   {
    "url": "https://www.usaspending.gov/award/CONT_AWD_N0001917C0001_9700_-NONE-_-NONE-",
    "amount": 35135514910.2,
    "award_id": "N0001917C0001",
    "end_date": "2031-03-31",
    "recipient": "LOCKHEED MARTIN CORPORATION",
    "start_date": "2017-11-17",
    "description": "LRIP LOT 12 ADVANCE ACQUISITION CONTRACT",
    "awarding_agency": "Department of Defense",
    "awarding_sub_agency": "Department of the Navy"
   }
  ],
  "source": "usaspending",
  "recipient": "Lockheed Martin",
  "award_type": "contracts",
  "attribution": "Source: USAspending.gov (U.S. Department of the Treasury, Bureau of the Fiscal Service)",
  "total_awarded": 83199278591.32,
  "matched_recipients": [
   "LOCKHEED MARTIN CORPORATION",
   "LOCKHEED MARTIN CORP"
  ]
 }
}
```

## More

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