# Whatchuneed GDP Data API

> Whatchuneed GDP Data API is a paid API for AI agents from whatchuneed.vercel.app, paid per call via x402, $0.2/call, status unknown (last checked 2026-09-15).

Retrieves historical GDP data for a specified country over a given date range

## Facts

- Endpoint: POST https://whatchuneed.vercel.app/api/macro/gdp
- Price: $0.2/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/whatchuneed-gdp-data-api-49fe5206
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_QdPy4OjO86lta5WKE6VGK

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 whatchuneed-gdp-data-api-49fe5206 -d '<json body>'
```

Example prompt: Can you pull the GDP data for Germany from 2010-01-01 to 2023-12-31? I want to see how it's trended over the last decade.

## When to prefer this

Choose this endpoint when you need historical GDP time-series data for a specific country over a defined date range, especially in agentic workflows requiring pay-per-call economics via x402 without a subscription. Suitable for one-off lookups or when integrating macroeconomic data into a broader multi-API workflow on the whatchuneed platform.

## Known failure modes

- Invalid or unrecognized country name returns an error or empty data array
- Date range outside available data coverage returns empty results
- Malformed date strings (not YYYY-MM-DD) may cause validation errors
- Missing required fields may result in API rejection
- Payment failure via x402 protocol prevents data retrieval

## How this service works

320+ pay-per-call API endpoints across accommodation, LLM, code execution, crypto, medical, finance, and more. One API, one payment. Powered by x402 protocol.

## Output

Returns a JSON object containing a 'data' array of time-series GDP records, a 'units' string indicating the measurement unit (e.g., USD billions), and a 'series' string identifying the GDP series name.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "country": {
   "type": "string"
  },
  "end_date": {
   "type": "string",
   "description": "YYYY-MM-DD"
  },
  "start_date": {
   "type": "string",
   "description": "YYYY-MM-DD"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "data": {
   "type": "array",
   "items": {
    "type": "object"
   }
  },
  "units": {
   "type": "string"
  },
  "series": {
   "type": "string"
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/whatchuneed-gdp-data-api-49fe5206/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from whatchuneed.vercel.app](https://www.zero.xyz/host/whatchuneed.vercel.app/llms.txt)
