Lookup postal code
Reverse lookup by postal code — pass a postal code (e.g. 120101) and receive the full administrative hierarchy (province, district, commune) that the code maps to, including localized names and slugs.
Authorization
ApiKeyAuth x-api-key<token>
API key passed in the x-api-key header. Obtain a key from the developer dashboard. Example: x-api-key: YOUR_API_KEY
In: header
Path Parameters
postcode*string
The postal code to lookup
Length
1 <= lengthQuery Parameters
lang?string
Language for the response (en or km)
Default
"en"Value in
- "en"
- "km"
Response Body
application/json
application/json
application/json
application/json
curl -X GET "https://example.com/lookup/120101?lang=en"{ "statusCode": 200, "data": { "slug": "sangkat-tonle-basak", "name": "Sangkat Tonle Basak", "type": "commune", "postal_code": "00120101", "postal_code_prefix": "120101", "postal_code_range": "12010100-12010199", "province_slug": "phnom-penh-capital", "province_name": "Phnom Penh Capital", "district_slug": "khan-chamkar-mon", "district_name": "Khan Chamkar Mon", "commune_slug": "sangkat-tonle-basak", "commune_name": "Sangkat Tonle Basak" }, "metadata": { "correlationId": "01a0642a-d55f-70f8-b40f-2ce1c5c12035" }}