# x402stock.xyz US Real GDP (FRED)

> x402stock.xyz US Real GDP (FRED) is a paid API for AI agents from x402stock.xyz, paid per call via x402, $0.01/call, status healthy (last checked 2026-09-14, last successful call 2026-09-02).

Returns the latest US real GDP figure (chained 2017 dollars, SAAR), prior quarter, quarter-over-quarter and year-over-year changes, and recent quarterly history sourced from the St. Louis Fed (FRED).

## Facts

- Endpoint: GET https://x402stock.xyz/api/v1/gdp
- Price: $0.01/call
- Payment: x402
- Status: healthy
- Last checked: 2026-09-14
- Last successful call: 2026-09-02
- Activations on Zero: 1
- Tags: x402
- Canonical page: https://www.zero.xyz/c/x402stock-xyz-us-real-gdp-fred-e62d90f3
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_xJLd54RDoKRJ38U6GYBSy

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-xyz-us-real-gdp-fred-e62d90f3
```

Example prompt: What's the latest US real GDP reading — give me the current quarter's value, how it changed from last quarter, and the year-over-year growth rate.

## When to prefer this

Use this endpoint when you need authoritative, FRED-sourced US real GDP data for macroeconomic analysis, forecasting context, or economic dashboards — especially when you need both the headline figure and recent quarterly history in one call without needing a ticker symbol. Prefer this over general financial data APIs when FRED provenance and chained-dollar real GDP specifically are required.

## Known failure modes

- FRED data temporarily unavailable — upstream outage from St. Louis Fed
- Payment failure — insufficient USDC balance or x402 payment not accepted
- Stale data — FRED may lag by one quarter during release windows
- HTTP 402 if payment header is missing or malformed
- Empty history array if FRED series has no recent data points

## How this service works

US real Gross Domestic Product, quarterly, in billions of chained 2017 dollars (seasonally adjusted annual rate), with the latest reading, prior quarter, quarter-over-quarter and year-over-year change, and recent history. No ticker needed. The broad measure of economic output for macro-aware analysis. Sourced from the St. Louis Fed (FRED). From x402stock

## Output

A JSON object containing: the FRED series ID and title, unit (billions of chained 2017 dollars), frequency (quarterly), as_of timestamp, the latest quarter's date and value, the prior quarter's date and value, the quarter-over-quarter change and percent change, the year-over-year percent change, and an array of recent quarterly history entries each with date and value.

## Example request

```json
{
 "input": {
  "type": "http",
  "method": "GET",
  "queryParams": {}
 }
}
```

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "properties": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "unit": "billions_of_chained_2017_usd_saar",
  "as_of": "2026-01-01T00:00:00.000Z",
  "prior": {
   "date": "2025-10-01",
   "value": 23390.1
  },
  "title": "Real Gross Domestic Product",
  "change": 122.3,
  "latest": {
   "date": "2026-01-01",
   "value": 23512.4
  },
  "source": "fred",
  "history": [
   {
    "date": "2026-01-01",
    "value": 23512.4
   }
  ],
  "frequency": "quarterly",
  "series_id": "GDPC1",
  "yoy_percent": 2.4,
  "change_percent": 0.52
 }
}
```

## More

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