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
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
Error HandlingRate LimitsSDKs & Libraries
Resources

SDKs & Libraries

Official and community SDKs for the Cambodia Postal Code API

Official SDK

JavaScript / TypeScript

npm install @cambodiapostalcode/sdk
import { CambodiaPostalCode } from '@cambodiapostalcode/sdk';

const client = new CambodiaPostalCode({ apiKey: 'YOUR_API_KEY' });

const provinces = await client.provinces.list();
const result = await client.lookup('120101');

Community Libraries

The base URL for all examples below is:

EnvironmentBase URL
Productionhttps://api.cambodiapostalcode.com/v1

Python

import requests

headers = {"x-api-key": "YOUR_API_KEY"}
response = requests.get("BASE_URL/provinces", headers=headers)

Replace BASE_URL with the base URL shown above.

PHP

$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "BASE_URL/provinces");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-api-key: YOUR_API_KEY"]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Replace BASE_URL with the base URL shown above.

cURL

No SDK needed — just use cURL or any HTTP client:

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

Rate Limits

API rate limiting and quota information