# JPY Historical FX Rates API

> JPY Historical FX Rates API is a paid API for AI agents from jp-data-api-production.up.railway.app, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-14).

Returns historical daily JPY exchange rate time-series for up to 400 days, covering USD, EUR, CNY, KRW, and other major currencies

## Facts

- Endpoint: GET https://jp-data-api-production.up.railway.app/history/fx
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jpy-historical-fx-rates-api-3777fa0d
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_MdgMdBTTa0zLWjmzIq3MX

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 jpy-historical-fx-rates-api-3777fa0d
```

Example prompt: Pull me the last 90 days of JPY exchange rate history against USD, EUR, CNY, and KRW so I can chart the yen's trend over Q3.

## When to prefer this

Choose this endpoint when you need historical JPY-based exchange rate time-series data collected since July 2026, especially for trend analysis, backtesting trading strategies, or charting yen movements. It is uniquely suited for agents that need a pay-per-call, programmatic source of multi-currency JPY history (USD, EUR, CNY, KRW, and more) without committing to a subscription data provider. Prefer it when you want recent day-count-based queries (up to 400 days) with JPY as the base currency.

## Known failure modes

- days parameter exceeds 400 — API may return error or clamp to maximum
- days parameter is non-numeric or malformed — likely 400 bad request
- requesting data for dates before July 2026 — data may be unavailable or sparse
- payment not completed (x402) — 402 Payment Required response blocks data
- server or railway.app infrastructure downtime — 502/503 response

## How this service works

Historical daily JPY exchange rate series collected and stored by this API since July 2026. Returns date-indexed rates for USD, EUR, CNY, KRW and more. Unique time-series not available elsewhere as a pay-per-call endpoint. Use for trend analysis, backtesting, charting, agent memory of market history.

## Output

A date-indexed time-series of daily JPY exchange rates (JPY as base currency) against multiple major currencies including USD, EUR, GBP, CNY, KRW, AUD, CHF, SGD, HKD, covering up to the requested number of recent days (default 30, max 400). Data has been collected and stored by this API since July 2026, making it a unique proprietary dataset for that period.

## 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"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "days": {
       "type": "string",
       "description": "how many recent days, default 30, max 400"
      }
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/jpy-historical-fx-rates-api-3777fa0d/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from jp-data-api-production.up.railway.app](https://www.zero.xyz/host/jp-data-api-production.up.railway.app/llms.txt)
