# Japan Earthquake History API

> Japan Earthquake History 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 a historical daily time-series of Japan earthquake counts and maximum magnitude, sourced from JMA data collected since July 2026.

## Facts

- Endpoint: GET https://jp-data-api-production.up.railway.app/history/quake
- 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/japan-earthquake-history-api-356ef3f9
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_wXoOOp7WQZfyChCz9mzBP

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 japan-earthquake-history-api-356ef3f9
```

Example prompt: Can you pull the Japan earthquake history for the last 60 days — I want to see the daily quake counts and peak magnitudes from JMA data so I can spot any recent seismic trends?

## When to prefer this

Use this endpoint when you need structured, date-indexed historical seismic activity data for Japan specifically — particularly for trend analysis, risk modeling, insurance underwriting, or academic research. Prefer this over real-time earthquake alert APIs when you need aggregated daily summaries rather than live event streams, and when JMA-sourced authority matters.

## Known failure modes

- days parameter exceeds 400 — API may return an error or cap the result
- days not provided — defaults to 30 days
- No data available before July 2026 — queries implicitly bounded by collection start date
- Payment failure (x402) — request blocked if USDC payment not included
- Non-GET method used — returns method not allowed error

## How this service works

Historical daily record of Japan earthquake counts and maximum magnitude, collected by this API since July 2026 from JMA data. Date-indexed series for seismic activity trend analysis, risk modeling, insurance and research agents.

## Output

A date-indexed time series of daily records, each containing the date, the total number of earthquakes recorded in Japan that day, and the maximum magnitude observed — covering up to 400 days of history from the JMA-sourced dataset.

## 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/japan-earthquake-history-api-356ef3f9/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)
