# lilambd Japan Municipalities Data

> lilambd Japan Municipalities Data 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).

Retrieves statistical indicators for a specific Japanese municipality identified by its code

## Facts

- Endpoint: GET https://api.lilambd.com/japan/municipalities/%7Bcode%7D?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/lilambd-japan-municipalities-data-c72b5304
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_I7RutXLugsDgmhQHhtewI

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 lilambd-japan-municipalities-data-c72b5304
```

Example prompt: Can you pull the data for Japanese municipality code 13101 — and if you can filter it to just the population indicator, that would be great.

## When to prefer this

Use this endpoint when you need structured, per-indicator statistical data for a specific Japanese municipality and you already know its numeric code. It is well-suited for research, data enrichment, and comparative analysis tasks involving Japanese local government data. Prefer this over general web search when you need machine-readable, attributed data records rather than prose descriptions.

## Known failure modes

- Invalid or unknown municipality code returns empty data array with count 0
- Missing required code path parameter results in a 400 or routing error
- Unsupported indicator name silently returns empty results
- Network or payment failure (402) if USDC payment header is not provided
- Rate limiting or service unavailability returns 5xx error

## 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 containing a data array of records for the specified municipality, a count of records returned, and an attribution string citing the data source licence. Optionally filtered to a single indicator if the indicator query parameter is provided.

## 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",
    "pathParams"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "code"
     ],
     "properties": {
      "code": {
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "required": [],
     "properties": {
      "indicator": {
       "type": "string",
       "description": "Only this indicator"
      }
     },
     "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/lilambd-japan-municipalities-data-c72b5304/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)
