API Reference
GET /v1/search — full-text search across all location types by name or postal code.
/v1/search?q={query}Search across provinces, districts, communes, and villages by English name, Khmer name, or postal code.
| Parameter | Type | Required | Description |
|---|---|---|---|
| q | string | required | Search query — name or postal code |
| type | string | optional | Filter by type: province | district | commune | village |
| limit | integer | optional | Max results to return (default 20, max 100) |
{
"status": "success",
"data": {
"query": "Phnom Penh",
"results": [
{
"type": "province",
"code": "12",
"name_en": "Phnom Penh",
"name_km": "ភ្នំពេញ",
"postal_code": "12000"
}
],
"total": 1
}
}/v1/searchPlaygroundQuery Parameters
qstringrequiredSearch query — name or postal code
typestringFilter: province | district | commune | village
limitintegerMax results (default 20, max 100)
Request URL
cURL
curl -X GET "https://api.cambodiapostalcode.com/v1/search?q=Phnom+Penh" \
-H "Content-Type: application/json"Last updated June 2025