Get villages by commune
Retrieve all villages that belong to a specific commune. Each village includes its UUID, localized name, type, and postal code.
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 commune
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/communes/beb0bdbe-4858-5cb9-87d6-4885734f38c0/villages?lang=en"{ "statusCode": 200, "data": { "items": [ { "id": "a1b2c3d4-e5f6-7890-abcd-ef1234567890", "name": "Phnum Srok", "type": "village", "postal_code": "11101" } ] }, "metadata": { "correlationId": "01a0642a-d55f-70f8-b40f-2ce1c5c12035" }}