{"uid":"cap_ZZQlm0Qmq_woS2l0EulfD","slug":"lokalapi-indonesian-region-code-lookup-56d51496","name":"LokalAPI Indonesian Region Code Lookup","description":"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.","url":"https://api.lokalapi.com/v1/wilayah/:kode?utm_source=zero.xyz","method":"GET","headers":{},"bodySchema":{"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"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.002","displayCostAsset":"USDC","priceDynamic":false,"priceHint":null,"priceStatus":"priced","priceSource":"probe","requiresHandshake":false,"reviewCount":0,"rating":{"score":"0.00","successRate":"0.00","reviews":0,"stars":null,"state":"unrated"},"availabilityStatus":"unknown","priceObserved":null,"sessionDeposit":null,"pricing":{"kind":"static","summary":"$0.002/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.002","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_YR9PjkKyTrmuG7rv2Rok0","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.002","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Resolves an official Indonesian Kemendagri region code to its name, type, and full administrative hierarchy","exampleAgentPrompt":"What is the official name, type, and full administrative hierarchy for Indonesian region code 34.04.12.2001 according to the Kemendagri 2025 data?","exampleUseCases":[{"title":"Decode region code in business registration","prompt":"I'm filling out an OSS business registration form and it asks for the wilayah code 34.71 — can you tell me what region name and type that corresponds to, and show me its full administrative hierarchy?"},{"title":"Enrich address data with region hierarchy","prompt":"I have a dataset of Indonesian addresses with Kemendagri codes like 35.78.12.1003 but no names. Can you look up what region name, type, and parent hierarchy each code maps to so I can enrich the records?"},{"title":"Validate region code for logistics","prompt":"Before dispatching a shipment, I need to confirm that the destination code 32.01.04.2005 is a valid Indonesian region and find out exactly which province, regency, and district it falls under."}],"resultDescription":"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.","failureModes":["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"],"whenToPreferThis":"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.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:38:18.180Z","isFirstParty":false,"canonicalSlug":"lokalapi-indonesian-region-code-lookup-56d51496"}