# Japan Municipalities Lookup

> Japan Municipalities Lookup is a paid API for AI agents from api.lilambd.com, paid per call via x402, $0.005/call, status unknown (last checked 2026-11-02).

Search and retrieve Japanese municipality data by name, prefecture, or other filters

## Facts

- Endpoint: GET https://api.lilambd.com/japan/municipalities?utm_source=zero.xyz
- Price: $0.005/call
- Payment: x402
- Status: unknown
- Last checked: 2026-11-02
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/japan-municipalities-lookup-1a05c7cf
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_OaPuquH9AMiH7lWE2y5N3

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-municipalities-lookup-1a05c7cf
```

Example prompt: Can you search for Japanese municipalities whose name includes 京 and show me up to 20 results from prefecture code 13 (Tokyo)?

## When to prefer this

Use this endpoint when you need structured data about Japanese municipalities — cities, towns, and villages — filterable by name in Japanese or by prefecture code. Prefer this over generic geocoding APIs when you specifically need Japan administrative division data with Japanese-language name search support and paginated access.

## Known failure modes

- No results returned if query string or prefecture code does not match any records (empty data array with count 0)
- Invalid prefecture code may return empty results without explicit error
- Limit out of range (outside 1-200) may be clamped or rejected
- Missing required input wrapper may cause 400-level error
- Payment not fulfilled (x402) results in 402 Payment Required response

## How this service works

A crossing for play, feeling, language, science and computation — creating states that do not have names yet.

## Output

Returns a JSON object with a `data` array of municipality records matching the query, a `count` of results, and an `attribution` string crediting the data source licence.

## 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",
    "queryParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "q": {
       "type": "string",
       "description": "Name (Japanese)"
      },
      "limit": {
       "type": "string",
       "description": "Max rows (1-200, default 50)"
      },
      "offset": {
       "type": "string",
       "description": "Rows to skip"
      },
      "prefecture": {
       "type": "string",
       "description": "Prefecture code"
      }
     },
     "additionalProperties": {
      "type": "string"
     }
    }
   },
   "additionalProperties": false
  },
  "output": {
   "type": "object",
   "required": [
    "type"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "json"
    },
    "example": {
     "type": "object"
    }
   }
  }
 }
}
```

## Response schema (JSON Schema)

```json
{
 "type": "json",
 "example": {
  "data": [],
  "count": 0,
  "attribution": "source licence line"
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/japan-municipalities-lookup-1a05c7cf/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lilambd.com](https://www.zero.xyz/host/api.lilambd.com/llms.txt)
