# JP Data API - Watch/Alert Creator

> JP Data API - Watch/Alert Creator is a paid API for AI agents from jp-data-api-production.up.railway.app, paid per call via x402, $0.02/call, status unknown (last checked 2026-09-14).

Creates a persistent hourly-evaluated alert (watch) for FX rate thresholds, earthquake magnitudes, or EDINET company filings, returning a watchId for polling.

## Facts

- Endpoint: GET https://jp-data-api-production.up.railway.app/watch/create
- Price: $0.02/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-14
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/jp-data-api-watch-alert-creator-ded42cc7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6sb5fuT833IGRYx18XWTL

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 jp-data-api-watch-alert-creator-ded42cc7
```

Example prompt: Set up a watch that alerts me when USD crosses above 155 JPY — I want it grouped under my 'fx-alerts' namespace so I can poll it later.

## When to prefer this

Use this endpoint when you need to set up a recurring, automated condition check that should be evaluated hourly without re-paying each time. Ideal for event-driven workflows where you want to be notified when a JPY FX rate crosses a threshold, when an earthquake of a specific magnitude occurs in Japan, or when a Japanese company files an EDINET document. Much cheaper per-check than repeatedly calling live data endpoints; pay once to create, then poll /watch/check cheaply.

## Known failure modes

- Missing required 'type' query parameter returns error
- Invalid type value (not fx/quake/filing) returns validation error
- fx watch missing 'op' (above/below) or 'value' may fail
- filing watch missing 'target' company name may return error
- Payment not provided or invalid returns HTTP 402
- Rate limit or server error returns 5xx

## How this service works

Create a persistent watch (alert) that this API evaluates automatically every hour. Supported types: fx (JPY rate crosses a threshold), quake (earthquake at or above a magnitude), filing (EDINET filing by a company name). Returns a watchId; poll /watch/check to see if it triggered. Pay once to create, cheap to poll.

## Output

Returns a watchId (string) that identifies the newly created persistent watch. The watch is evaluated automatically every hour. The caller can use this watchId to poll the /watch/check endpoint to determine whether the condition has triggered (e.g. rate crossed threshold, earthquake detected, filing appeared).

## 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": [
      "type"
     ],
     "properties": {
      "ns": {
       "type": "string",
       "description": "optional namespace to group your watches"
      },
      "op": {
       "type": "string",
       "description": "fx only: above | below"
      },
      "type": {
       "type": "string",
       "description": "fx | quake | filing"
      },
      "value": {
       "type": "string",
       "description": "fx: JPY rate, quake: magnitude, filing: unused"
      },
      "target": {
       "type": "string",
       "description": "fx: currency code (USD, EUR...) | quake: unused | filing: company name substring"
      }
     }
    }
   },
   "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/jp-data-api-watch-alert-creator-ded42cc7/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)
