# lokalapi > Pay-per-request Indonesian reference data for AI agents. Payment via x402 (HTTP 402, USDC on Base). No API key, no account. ## How to pay Call any /v1 endpoint. Without payment you get HTTP 402 with a PAYMENT-REQUIRED header (x402 v2). Sign the USDC authorization with an x402 client (e.g. @x402/fetch, @x402/mcp, AWS AgentCore payments) and retry. ## MCP server Remote MCP server (Streamable HTTP): https://mcp.lokalapi.com/mcp. Tools wilayah_search ($0.005), wilayah_get ($0.002), kbli_search ($0.02), kbli_convert ($0.02), kbli_convert_batch ($0.50, codes as array), same data and prices as below. Paid tools answer with an x402 PaymentRequired (isError, structuredContent) until the call is retried with the signed payment in params._meta["x402/payment"]; the receipt comes back in _meta["x402/payment-response"]. Client: @x402/mcp (createx402MCPClient). Free tool lokalapi_info explains the flow. ## Endpoints - GET /v1/wilayah/search?q={name}&level={provinsi|kabupaten_kota|kecamatan|desa_kelurahan}&parent={code}&limit={1-25} — $0.005. Official Indonesian administrative regions (Kepmendagri No. 300.2.2-2430/2025) with codes and full hierarchy. - GET /v1/wilayah/{kode} — $0.002. Resolve a region code (e.g. 34.71) to name, type and hierarchy. - GET /v1/kbli/search?q={business activity, Indonesian or English}&level={kelompok|subgolongan|golongan} — $0.02. KBLI 2025 business classification lookup (mandatory in OSS since 15 June 2026). - GET /v1/kbli/convert?code={KBLI 2020 code} — $0.02. Official BPS KBLI 2020 -> 2025 conversion. - GET /v1/kbli/convert-batch?codes={code},{code},...&format={json|csv} — $0.50 per call. Converts up to 50 KBLI 2020 codes at once (duplicates removed), e.g. all codes of a company's OSS/NIB licence. Per code: status (one_to_one, split = one old code became several new ones, merged = several old codes became one new code, not_found, invalid), kbli2025 candidates (kode, judul), needs_review (true for split, merged, not_found, invalid) and a hint why. Plus summary counts per status. format=csv returns one line per old -> new pair. Charged only if at least one code converts: more than 50 codes or no 5-digit code gives 400 before payment, only unknown codes gives 404 (not charged). ## Sources - Region codes: Kepmendagri No. 300.2.2-2430 Tahun 2025, compiled by github.com/cahyadsn/wilayah (MIT). - KBLI: Badan Pusat Statistik (BPS-Statistics Indonesia), bps.go.id. Reused under BPS Terms of Use with attribution. ## Operator - Website: https://lokalapi.com - Terms of Service: https://lokalapi.com/terms - Contact: https://lokalapi.com/kontakt (kontakt@lokalapi.com) - Legal notice (Impressum): https://lokalapi.com/impressum Not legal advice.