Introduction
Get started with the Cambodia Postal Code API
Welcome
The Cambodia Postal Code API provides programmatic access to Cambodian postal code data, including provinces, districts, communes, and villages. Use it to build location-based applications, address validators, postal code lookups, and more.
Use of the API is subject to the Terms of Service. Call the API directly for each request. You must not cache, store, persist, mirror, or proxy responses, build a derived database or dataset from them, pre-fetch, bulk download, scrape, or mirror endpoints. Standalone resale or redistribution of the API or its data is prohibited. For higher limits or rights beyond this policy, contact info@cambodiapostalcode.com for a higher plan; additional data-usage rights require a separate written licence.
Recommended credit: "Data provided by Cambodia Postal Code — cambodiapostalcode.com". Credit is optional and is not a legal requirement under the terms.
Features
- Comprehensive data — All 25 provinces, 197 districts, 1,646 communes, and 14,372 villages
- Full-text search — Search across all administrative units by name or postal code
- Postal code lookup — Reverse lookup by postal code to get the full administrative hierarchy (province → district → commune)
- Bilingual — All names and types available in English (
en) and Khmer (km) via thelangquery parameter - RESTful API — Simple HTTP endpoints with JSON responses and consistent error handling
- API key authentication — Secure access with TosKey gateway-managed keys
Base URL
| Environment | Base URL |
|---|---|
| Production | https://api.cambodiapostalcode.com/v1 |
All API requests must be authenticated with an API key. See Authentication to get started.
Quick Example
curl -H "x-api-key: YOUR_API_KEY" \
https://api.cambodiapostalcode.com/v1/provinces?lang=enNext Steps
- Authentication — Learn how to get and use API keys
- Quick Start — Make your first API call
- API Reference — Browse all 10 available endpoints