# x402stock GDP Data

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

Returns US GDP data for use by AI agents, paid per-request in USDC via x402

## Facts

- Endpoint: GET https://agents.x402stock.xyz/api/v1/gdp?utm_source=zero.xyz
- Price: $0.01/call
- Payment: x402, MPP
- Status: unknown
- Last checked: 2026-10-28
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-gdp-data-ee7d960e
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_TGa88kPkUoxI_aQvQRYJs

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-gdp-data-ee7d960e
```

Example prompt: Can you pull the latest US GDP data so I can see how the economy has been growing recently?

## When to prefer this

Choose this endpoint when you need programmatic, pay-per-use access to US GDP data without setting up API keys or accounts. It is ideal for AI agents that need autonomous access to macroeconomic data and can pay per request in USDC. Prefer this over free tiers when reliable, up-to-date GDP data is needed on demand with no subscription friction.

## Known failure modes

- Payment failure if wallet has insufficient USDC balance
- Invalid or unsupported query parameters return an error
- Endpoint not in supported catalog returns 404
- Rate limiting or server-side errors return 5xx responses
- Missing required parameters may return 400 bad request

## How this service works

US real GDP, quarterly, with quarter-over-quarter and year-over-year change

## Output

Returns US GDP figures and related macroeconomic data, likely including time-series values of gross domestic product (e.g. quarterly or annual figures, growth rates). The response is delivered as JSON and billed at $0.01 USDC per call via x402 payment protocol.

## 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",
     "properties": {}
    }
   },
   "additionalProperties": false
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "source",
  "as_of",
  "series_id",
  "title",
  "unit",
  "frequency",
  "latest",
  "prior",
  "change",
  "change_percent",
  "yoy_percent",
  "history"
 ],
 "properties": {
  "unit": {
   "type": "string"
  },
  "as_of": {
   "type": "string"
  },
  "prior": {
   "anyOf": [
    {
     "type": "object",
     "required": [
      "date",
      "value"
     ],
     "properties": {
      "date": {
       "type": "string"
      },
      "value": {
       "type": "number"
      }
     },
     "additionalProperties": false
    },
    {
     "type": "null"
    }
   ]
  },
  "title": {
   "type": "string"
  },
  "change": {
   "anyOf": [
    {
     "type": "number"
    },
    {
     "type": "null"
    }
   ]
  },
  "latest": {
   "anyOf": [
    {
     "type": "object",
     "required": [
      "date",
      "value"
     ],
     "properties": {
      "date": {
       "type": "string"
      },
      "value": {
       "type": "number"
      }
     },
     "additionalProperties": false
    },
    {
     "type": "null"
    }
   ]
  },
  "source": {
   "type": "string",
   "const": "fred"
  },
  "history": {
   "type": "array",
   "items": {
    "type": "object",
    "required": [
     "date",
     "value"
    ],
    "properties": {
     "date": {
      "type": "string"
     },
     "value": {
      "type": "number"
     }
    },
    "additionalProperties": false
   }
  },
  "frequency": {
   "type": "string"
  },
  "series_id": {
   "type": "string"
  },
  "yoy_percent": {
   "anyOf": [
    {
     "type": "number"
    },
    {
     "type": "null"
    }
   ]
  },
  "change_percent": {
   "anyOf": [
    {
     "type": "number"
    },
    {
     "type": "null"
    }
   ]
  }
 },
 "additionalProperties": false
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/x402stock-gdp-data-ee7d960e/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)
