Get province by ID
Retrieve detailed information about a single province, including the total number of districts, communes, and villages within it. The id path parameter must be a valid UUID.
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
id*string
Unique identifier of the province
Format
uuidQuery 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/provinces/79974b80-2e1c-5ffb-9e1d-caba0a2d0a0e?lang=en"{ "statusCode": 200, "data": { "id": "79974b80-2e1c-5ffb-9e1d-caba0a2d0a0e", "name": "Banteay Meanchey", "type": "province", "postal_code_prefix": "1", "postal_code_range": "10000-19999", "total_districts": 8, "total_communes": 64, "total_villages": 689 }, "metadata": { "correlationId": "01a0642a-d55f-70f8-b40f-2ce1c5c12035" }}