# Japan e-Gov Law Catalog Change Detector

> Japan e-Gov Law Catalog Change Detector is a paid API for AI agents from oracle-network-jp-data.fly.dev, paid per call via x402, $0.005/call, status unknown (last checked 2026-09-15).

Returns the 2 most recent daily snapshots of Japan's e-Gov law catalog so clients can diff them to detect new laws, amendments, and repeals

## Facts

- Endpoint: GET https://oracle-network-jp-data.fly.dev/v1/jp/law/changes
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/oracle-network-jp-data-fly-dev-286cb3f7
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_6jR65xmcVZU0kstLe-hS1

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 oracle-network-jp-data-fly-dev-286cb3f7
```

Example prompt: Can you check the Japan e-Gov law catalog for any changes — new laws, amendments, or repeals — since yesterday's snapshot?

## When to prefer this

Use this endpoint when you need to programmatically detect changes in Japan's official law catalog sourced directly from e-Gov, the authoritative government portal. Ideal for compliance systems, legal research agents, or regulatory monitoring pipelines that need daily diffs of enacted, amended, or repealed Japanese statutes. Prefer this over general web scraping when you need structured, pre-parsed law data with timestamps for diffing.

## Known failure modes

- Payment required (402): x402 micropayment of $0.005 USDC not provided or invalid
- Service unavailable: Fly.dev instance not running or cold-start timeout
- Upstream unavailable: e-Gov (laws.e-gov.go.jp) unreachable during last refresh cycle
- Stale data: snapshot older than expected if 3 AM JST refresh job failed
- Empty diff: no law changes between snapshots is a valid response, not an error

## How this service works

Japanese law catalog snapshot from e-Gov (laws.e-gov.go.jp). Returns the 2 most recent snapshots. Clients can diff them to detect amendments, enactments, and repeals. Refreshed daily at 3 AM JST.

## Output

An array of exactly 2 law catalog snapshots from Japan's e-Gov system, each with a collected_at ISO datetime and a parsed egov-law payload. The client diffs the two snapshots to identify which laws were added, modified, or removed between the two most recent daily captures (refreshed at 3 AM JST).

## 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",
      "HEAD",
      "DELETE"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string"
    },
    "example": {
     "type": "array",
     "items": {
      "type": "object",
      "properties": {
       "payload": {
        "type": "object",
        "properties": {
         "type": {
          "type": "string",
          "const": "egov-law"
         },
         "parsed": {
          "type": "object"
         }
        }
       },
       "collected_at": {
        "type": "string",
        "format": "date-time"
       }
      }
     },
     "maxItems": 2,
     "minItems": 2
    }
   }
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/oracle-network-jp-data-fly-dev-286cb3f7/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from oracle-network-jp-data.fly.dev](https://www.zero.xyz/host/oracle-network-jp-data.fly.dev/llms.txt)
