# WorldData402 FX Timeseries

> WorldData402 FX Timeseries is a paid API for AI agents from worlddata402.worlddata402.workers.dev, paid per call via x402, $0.02/call, status unknown (last checked 2026-10-19).

Returns historical foreign exchange rate time series data for a given currency pair (base and quote currencies).

## Facts

- Endpoint: GET https://worlddata402.worlddata402.workers.dev/v1/fx/timeseries/%7Bbase%7D/%7Bquote%7D?utm_source=zero.xyz
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-19
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/worlddata402-fx-timeseries-50c271a0
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_vqh-NFA30stN1G_7m6j6E

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 worlddata402-fx-timeseries-50c271a0
```

Example prompt: Can you pull the historical exchange rate time series for USD to EUR so I can see how the dollar has trended against the euro?

## When to prefer this

Choose this endpoint when you need historical FX rate time series data for any global currency pair, especially in agentic workflows requiring pay-per-call pricing via x402/USDC on Base mainnet. Prefer over general web scraping when you need structured, reliable historical forex data without building your own data pipeline.

## Known failure modes

- Invalid or unsupported currency code returns an error or empty result
- Missing required 'from' or 'to' parameters causes a 400-level error
- Payment failure via x402/USDC results in a 402 Payment Required response
- Rate limiting or upstream data unavailability may return 5xx errors
- Very exotic or illiquid currency pairs may have sparse or missing data

## How this service works

Global market, government and reference data for AI agents. Pay-per-call over x402 (USDC on Base mainnet).

## Output

A time series of historical exchange rates for the specified base-to-quote currency pair, returned as a structured object with date-indexed rate values covering a historical window. Useful for charting, trend analysis, and financial modeling.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "required": [
  "to",
  "from"
 ],
 "properties": {
  "to": {
   "type": "string"
  },
  "from": {
   "type": "string"
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "object"
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/worlddata402-fx-timeseries-50c271a0/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from worlddata402.worlddata402.workers.dev](https://www.zero.xyz/host/worlddata402.worlddata402.workers.dev/llms.txt)
