# LokalAPI Indonesian Region Code Lookup

> LokalAPI Indonesian Region Code Lookup is a paid API for AI agents from api.lokalapi.com, paid per call via x402, $0.002/call, status unknown (last checked 2026-10-12).

Resolves an official Indonesian Kemendagri region code to its name, type, and full administrative hierarchy

## Facts

- Endpoint: GET https://api.lokalapi.com/v1/wilayah/:kode?utm_source=zero.xyz
- Price: $0.002/call
- Payment: x402
- Status: unknown
- Last checked: 2026-10-12
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/lokalapi-indonesian-region-code-lookup-56d51496
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_ZZQlm0Qmq_woS2l0EulfD

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 lokalapi-indonesian-region-code-lookup-56d51496
```

Example prompt: What is the official name, type, and full administrative hierarchy for Indonesian region code 34.04.12.2001 according to the Kemendagri 2025 data?

## When to prefer this

Use this endpoint when you already have an exact Indonesian Kemendagri region code and need to resolve it to a human-readable name and hierarchy. If you need to search by name rather than code, use the sibling search endpoint instead. Ideal for enriching structured data, validating codes in business registration flows, or decoding codes embedded in government documents.

## Known failure modes

- Invalid or malformed kode returns 404 or error response
- Codes from older Kemendagri versions may not match 2025 data
- Missing required path parameter kode results in a routing error
- Non-existent codes (e.g. hypothetical future regions) return no match

## How this service works

Resolve an official Indonesian region code (Kemendagri 2025, e.g. '34.71' or '34.04.12.2001') to its name, type and full administrative hierarchy.

## Output

Returns the official region name, region type (e.g. province, regency, city, district, village), and full administrative hierarchy for the given Kemendagri 2025 code, allowing the caller to understand exactly where in Indonesia the code refers to.

## 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"
    },
    "pathParams": {
     "type": "object",
     "required": [
      "kode"
     ],
     "properties": {
      "kode": {
       "type": "string"
      }
     }
    },
    "queryParams": {
     "type": "object",
     "properties": {}
    }
   },
   "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/lokalapi-indonesian-region-code-lookup-56d51496/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from api.lokalapi.com](https://www.zero.xyz/host/api.lokalapi.com/llms.txt)
