CPCCambodiaPostalCode Dev
API ReferencePricing
Sign inGet started
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
CPCCambodiaPostalCode Dev
API ReferencePricing
Sign inGet started
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
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 GETValidate a postcode GET
CambodiaPostalCode Dev
CambodiaPostalCode Dev
DocsAPI ReferenceHomeIntroduction
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 GETValidate a postcode GET

Validate a postcode

GET
/postcodes/{postcode}/validate

Always returns 200. valid is true only for a 6-digit input whose commune exists — it answers "is this a real Cambodian postcode?". An 8-digit administrative identifier is not a postcode (valid: false) but unit.postcode names the postcode to use. Codes follow current administrative units — a well-formed code that is not found may predate a reorganisation.

Authorization

ApiKeyAuth
x-api-key<token>

Your API key from https://developer.cambodiapostalcode.com. The TosKey gateway validates it and forwards a short-lived origin JWT; the origin never sees the key.

In: header

Path Parameters

postcode*string

The postcode to validate — 6-digit official postal code (120101) or 8-digit identification code (12010101)

Length1 <= length <= 20

Query 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/postcodes/120101/validate?lang=en"
{  "statusCode": 200,  "data": {    "input": "120101",    "normalized": "120101",    "format": "official",    "valid": true,    "unit": {      "slug": "sangkat-tonle-basak",      "name": "Sangkat Tonle Basak",      "type": "commune",      "postal_code": "12010100",      "postcode": "120101",      "identification_code": "12010100"    }  },  "metadata": {    "correlationId": "01a0642a-d55f-70f8-b40f-2ce1c5c12035"  }}

Lookup postal code GET

Previous Page

Error Handling

Understand API error responses and status codes

Validate a postcode

GET
/postcodes/{postcode}/validate

Always returns 200. valid is true only for a 6-digit input whose commune exists — it answers "is this a real Cambodian postcode?". An 8-digit administrative identifier is not a postcode (valid: false) but unit.postcode names the postcode to use. Codes follow current administrative units — a well-formed code that is not found may predate a reorganisation.

Authorization

ApiKeyAuth
x-api-key<token>

Your API key from https://developer.cambodiapostalcode.com. The TosKey gateway validates it and forwards a short-lived origin JWT; the origin never sees the key.

In: header

Path Parameters

postcode*string

The postcode to validate — 6-digit official postal code (120101) or 8-digit identification code (12010101)

Length1 <= length <= 20

Query 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/postcodes/120101/validate?lang=en"
{  "statusCode": 200,  "data": {    "input": "120101",    "normalized": "120101",    "format": "official",    "valid": true,    "unit": {      "slug": "sangkat-tonle-basak",      "name": "Sangkat Tonle Basak",      "type": "commune",      "postal_code": "12010100",      "postcode": "120101",      "identification_code": "12010100"    }  },  "metadata": {    "correlationId": "01a0642a-d55f-70f8-b40f-2ce1c5c12035"  }}

Lookup postal code GET

Previous Page

Error Handling

Understand API error responses and status codes