CPCCambodiaPostalCode Dev
API ReferencePricing
CPCCambodiaPostalCode Dev

REST API for Cambodia address data — provinces, districts, communes, and villages. Free to start, no credit card required.

GitHubTwitter / X
Free API — no credit card required

Docs

  • Introduction
  • Quick Start
  • API Reference
  • Authentication
  • Error Codes
  • Rate Limits

Product

  • Pricing
  • Use Cases
  • Dashboard
  • API Keys
  • Changelog
  • Status

Community

  • GitHub
  • Blog
  • Changelog
  • Discussions
  • Contact

Company

  • About
  • Privacy Policy
  • Terms of Service

© 2026 CambodiaPostalCode Dev. Built for developers.

PrivacyTermsContactChangelogGitHub
CambodiaPostalCode Dev
CambodiaPostalCode Dev
DocsAPI ReferenceHomeIntroduction
AuthenticationQuick Start
API ReferenceGet all provinces GETGet province by ID GETGet districts by province GETGet district by ID GETGet communes by district GETGet commune by ID GETGet villages by commune GETGet village by ID GETSearch administrative units GETLookup postal code GET
Getting Started

Quick Start

Make your first API call in under 5 minutes

1. Get Your API Key

Sign up and generate an API key from your dashboard.

2. Make Your First Request

List all provinces:

curl -H "x-api-key: YOUR_API_KEY" \
  https://api.cambodiapostalcode.com/v1/provinces?lang=en

Response:

{
  "statusCode": 200,
  "data": [
    {
      "id": "3842cac4-b9a0-8223-0dcc-509a6f75849b",
      "name": "Banteay Meanchey Province",
      "slug": "banteay-meanchey-provine",
      "type": "Province",
      "prefix": "01",
      "postalCodePrefix": "01"
    },
    {
      "id": "8d721ec8-4c9d-632f-6f06-7f89cc14862c",
      "name": "Battambang Province",
      "slug": "battambang-provine",
      "type": "Province",
      "prefix": "02",
      "postalCodePrefix": "02"
    }
  ],
  "metadata": {
    "correlationId": "01a0642a-d55f-70f8-b40f-2ce1c5c12035"
  }
}

3. Look Up a Postal Code

Reverse-lookup a postal code to get the full administrative hierarchy (province → district → commune):

curl -H "x-api-key: YOUR_API_KEY" \
  https://api.cambodiapostalcode.com/v1/lookup/120101?lang=en

4. Search

Full-text search across all administrative units by name or postal code:

curl -H "x-api-key: YOUR_API_KEY" \
  https://api.cambodiapostalcode.com/v1/search?q=phnom+penh&lang=en

Next Steps

  • API Reference — Full endpoint documentation
  • Error Handling — Understand error responses
  • Rate Limits — Know your quotas

Authentication

How to authenticate API requests with API keys

API Reference

Complete reference for all Cambodia Postal Code API endpoints