{"uid":"cap_IL6Q0E83UXmj6390WIXYp","slug":"lokalapi-indonesian-administrative-region-search-0d0cf3e7","name":"LokalAPI Indonesian Administrative Region Search","description":"Search official Indonesian administrative regions (province, regency/city, district, village) by name and get the official Kemendagri 2025 code plus full hierarchy. Handles 'Kab.', 'Kota', 'Kec.' prefixes.","url":"https://api.lokalapi.com/v1/wilayah/search?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"},"queryParams":{"type":"object","required":["q"],"properties":{"q":{"type":"string","description":"Region name, e.g. 'Sleman', 'Kota Yogyakarta', 'Sinduharjo'"},"level":{"enum":["provinsi","kabupaten_kota","kecamatan","desa_kelurahan"],"type":"string"},"limit":{"type":"integer","maximum":25,"minimum":1},"parent":{"type":"string","description":"Restrict to children of this code, e.g. '34.04'"}}}},"additionalProperties":false},"output":{"type":"object","required":["type"],"properties":{"type":{"type":"string"},"example":{"type":"object"}}}}},"responseSchema":null,"example":null,"exampleRequest":null,"tags":["x402"],"displayCostAmount":"0.005","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.005/call","primary":{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"},"accepted":[{"kind":"static","protocol":"x402","network":"base","amountUsd":"0.005","per":"call","confidence":"exact"}]},"paymentMethods":[{"uid":"pm_Tpps1H03CZFFjWtnUi2qi","protocol":"x402","methodType":"crypto","chain":"base","mode":"charge","costAmount":"0.005","costPer":"request","priority":0,"asset":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","unit":"request","depositMicros":null,"planRef":null}],"brandName":null,"brandSlug":null,"brandBaseUrl":null,"brandDocsUrl":null,"whatItDoes":"Search Indonesian administrative regions (province, regency/city, district, village) by name and return official Kemendagri 2025 codes with full hierarchy","exampleAgentPrompt":"Search for the official Kemendagri 2025 code and full administrative hierarchy for 'Sinduharjo' — it's a village-level region in Indonesia, limit results to 5.","exampleUseCases":[{"title":"OSS business registration address lookup","prompt":"I need the official Kemendagri 2025 code for 'Kota Semarang' to fill in an OSS business registration form — can you look it up and give me the full hierarchy?"},{"title":"District search within a specific regency","prompt":"Find all kecamatan districts under regency code '34.04' that have 'Depok' in the name, and give me their official codes."},{"title":"Village name validation for address form","prompt":"Check if 'Karanganyar' is a valid official Indonesian village or kelurahan and return its Kemendagri code and which province and regency it belongs to."}],"resultDescription":"Returns a list of matching Indonesian administrative regions, each with its official Kemendagri 2025 code, full name (including Kab./Kota/Kec. prefix handling), administrative level, and parent hierarchy (e.g. village → district → regency → province chain).","failureModes":["No results found if the region name is misspelled or uses unofficial abbreviations","Ambiguous results when a common name exists at multiple levels or locations — use the `level` and `parent` parameters to narrow down","Rate limiting or payment failure if the x402 payment of $0.005 USDC is not properly processed","Empty result set for very new or very small villages not yet indexed in the 2025 Kemendagri dataset","Results capped at the specified limit (max 25); use `parent` to narrow scope if too many matches appear"],"whenToPreferThis":"Use this endpoint when you need the official Kemendagri 2025 administrative region code for any Indonesian province, regency/city, district, or village — especially for OSS business registration, government form filling, address validation, or geospatial data enrichment involving Indonesia. Prefer this over general geocoding APIs (like Google Maps) when you specifically need the standardized Indonesian government code rather than just coordinates or postal addresses.","instructions":null,"reviewSummary":null,"reviewSummaryHighlights":null,"reviewSummaryConcerns":null,"reviewSummaryGeneratedAt":null,"activationCount":0,"lastUsedAt":null,"lastSuccessfullyRanAt":null,"lastHealthCheckAt":"2026-10-12T12:30:25.083Z","isFirstParty":false,"canonicalSlug":"lokalapi-indonesian-administrative-region-search-0d0cf3e7"}