# Japan Weather Forecast & Warnings API (x402 Batch)

> Japan Weather Forecast & Warnings API (x402 Batch) is a paid API for AI agents from weather.agentic-jp.com, paid per call via x402, $0.0032/call, status unknown (last checked 2026-09-13).

Fetches JMA weather forecasts, warnings, and advisories for multiple Japanese forecast areas in a single batch call, paid per-call with USDC via x402.

## Facts

- Endpoint: POST https://weather.agentic-jp.com/batch
- Price: $0.0032/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-13
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/japan-weather-forecast-warnings-api-x402-batch-8911612f
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_s9qa_Jkia3026kzNGOqMp

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-weather-forecast-warnings-api-x402-batch-8911612f -d '<json body>'
```

Example prompt: Can you get me the current JMA weather forecasts for Tokyo and Osaka at the same time — I need the temperature range and any active warnings or advisories for both areas.

## When to prefer this

Use this endpoint when you need official JMA forecasts and warnings for one or more Japanese forecast areas in a single call, especially when you want to avoid per-key API registration overhead and pay only for what you use via USDC. Prefer this over scraping JMA directly or calling individual area endpoints when batching multiple Japanese regions.

## Known failure modes

- Invalid or unsupported area code returns success: false for that item
- Payment failure via x402 prevents any results from being returned
- Malformed batch request body returns an error
- JMA data temporarily unavailable causes degraded or empty responses
- Network timeout on the /batch endpoint

## How this service works

JMA (Japan Meteorological Agency) forecasts, warnings and advisories for all Japanese forecast areas. Pay per call with USDC via x402 — no API key.

## Output

Returns a JSON object with a count and an array of results, each keyed by the caller-supplied ID. Each result includes the area code and name (in Japanese and English), an English summary of the forecast (e.g. 'Clear. Temperatures 17-29°C'), and a success flag. Failed lookups return success: false with whatever partial data is available.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "properties": {
  "items": {
   "type": "array",
   "description": "Areas to forecast in one call (max 50). Each item has an `id` (echoed back) and an `area` (JMA office code or region name)."
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "count": 2,
  "results": [
   {
    "id": "tk",
    "data": {
     "area": {
      "code": "130000",
      "name": "東京都",
      "name_en": "Tokyo"
     },
     "summary_en": "Tokyo today: Clear. Temperatures 17-29°C."
    },
    "success": true
   },
   {
    "id": "os",
    "data": {
     "area": {
      "code": "270000"
     }
    },
    "success": true
   }
  ]
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/japan-weather-forecast-warnings-api-x402-batch-8911612f/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from weather.agentic-jp.com](https://www.zero.xyz/host/weather.agentic-jp.com/llms.txt)
