# Lilambd Japan Prefecture Indicator Rankings

> Lilambd Japan Prefecture Indicator Rankings 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).

Returns ranked Japanese prefecture-level statistical indicator data for a given indicator code, with optional filtering by year, prefecture, and sort order.

## Facts

- Endpoint: GET https://api.lilambd.com/japan/rank?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-prefecture-indicator-rankings-c2dfc162
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_DNDo6LvgzcKdrOZTMg8m9

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-prefecture-indicator-rankings-c2dfc162
```

Example prompt: Pull the top 10 Japanese prefectures ranked by the indicator code 'population_density' for the latest available year, in descending order.

## When to prefer this

Choose this endpoint when you need ranked, prefecture-level Japanese statistical data by a specific indicator code and want paginated, sortable results with source attribution. Prefer this over general data APIs when the focus is specifically on Japan prefectural rankings or comparative regional metrics.

## Known failure modes

- Missing required 'indicator' query parameter returns an error or empty result
- Invalid indicator code returns empty data array with count 0
- Invalid prefecture code may return empty results silently
- limit out of range (outside 1-200) may be rejected or clamped
- Payment not attached or insufficient funds triggers HTTP 402
- Year outside available data range returns empty data array

## 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 ranked rows (each containing prefecture and indicator values), a 'count' integer showing total matching rows, and an 'attribution' string crediting the original data source and license.

## 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": [
      "indicator"
     ],
     "properties": {
      "year": {
       "type": "string",
       "description": "Year (default latest)"
      },
      "limit": {
       "type": "string",
       "description": "Max rows (1-200, default 50)"
      },
      "order": {
       "type": "string",
       "description": "desc | asc"
      },
      "offset": {
       "type": "string",
       "description": "Rows to skip"
      },
      "indicator": {
       "type": "string",
       "description": "Indicator code"
      },
      "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/lilambd-japan-prefecture-indicator-rankings-c2dfc162/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)
