Postal Codes API
Match postal codes to place names and administrative areas. 1,836,750 records across 124 countries and territories, from GeoNames.
GET /v1/postal-codesCC BY 4.0124 countries28 Nov 2026Request and response
The response below is the example from our OpenAPI document, so it shows the exact shape you get, though the record itself may come from another country.
curl 'https://api.apifor.dev/v1/postal-codes' \
-G -d country=AD -d limit=1 \
-H 'x-api-key: YOUR_API_KEY'{
"success": true,
"data": [
{
"id": 1,
"country_code": "AD",
"postal_code": "AD100",
"place_name": "Canillo",
"admin1_name": "Canillo",
"admin1_code": "02",
"admin2_name": null,
"admin2_code": null,
"admin3_name": null,
"admin3_code": null,
"lat": 42.5833,
"lng": 1.6667,
"accuracy": 6
}
]
}Fields
Each record in data has these fields. Types are read from the example values; a nullable field can hold null for some records.
| Field | Type | Example |
|---|---|---|
| id | integer | 1 |
| country_code | string | "AD" |
| postal_code | string | "AD100" |
| place_name | string | "Canillo" |
| admin1_name | string | "Canillo" |
| admin1_code | string | "02" |
| admin2_name | nullable | null |
| admin2_code | nullable | null |
| admin3_name | nullable | null |
| admin3_code | nullable | null |
| lat | number | 42.5833 |
| lng | number | 1.6667 |
| accuracy | integer | 6 |
Filters and paging
Query parameters accepted by GET /v1/postal-codes. Full detail, including the single-record route, is in the endpoint reference.
| Parameter | Type | Rules |
|---|---|---|
| page | integer | min 1 · default 1 |
| limit | integer | 1 to 200 · default 50 |
| country | string | ISO 3166-1 alpha-2 |
| q | string | 2 to 100 chars |
| postal_code | string | None |
Coverage by country
124 countries and territories have records in the 28 Nov 2026 snapshot. Each one has its own page with filters and counts.
- AXÅland Islands37
- ALAlbania494
- DZAlgeria15,951
- ASAmerican Samoa1
- ADAndorra7
- AIAnguilla1
- ARArgentina20,260
- AMArmenia772
- AUAustralia18,566
- ATAustria19,225
- AZAzerbaijan1,186
- BDBangladesh1,349
- BYBelarus3,133
- BEBelgium2,785
- BMBermuda133
- BRBrazil5,525
- IOBritish Indian Ocean Territory1
- BGBulgaria5,304
- CACanada1,657
- CLChile346
- CNChina2,352
- CXChristmas Island1
- CCCocos (Keeling) Islands1
- COColombia3,681
- CRCosta Rica473
- HRCroatia6,774
- CYCyprus1,127
- CZCzechia15,507
- DKDenmark1,159
- DODominican Republic544
- ECEcuador1,225
- EEEstonia5,398
- FKFalkland Islands1
- FOFaroe Islands130
- FIFinland3,576
- FRFrance51,611
- GFFrench Guiana77
- PFFrench Polynesia207
- DEGermany23,296
- GIGibraltar1
- GLGreenland33
- GPGuadeloupe105
- GUGuam21
- GTGuatemala548
- GGGuernsey14
- HTHaiti236
- HMHeard & McDonald Islands1
- HNHonduras38
- HKHong Kong SAR China1
- HUHungary3,571
- ISIceland195
- INIndia155,570
- IDIndonesia81,058
- IEIreland139
- IMIsle of Man87
- ITItaly18,415
- JPJapan146,883
- JEJersey5
- KEKenya890
- LVLatvia6,101
- LILiechtenstein13
- LTLithuania21,869
- LULuxembourg4,519
- MOMacao SAR China1
- MWMalawi491
- MYMalaysia2,818
- MTMalta73
- MHMarshall Islands2
- MQMartinique100
- YTMayotte21
- MXMexico144,655
- FMMicronesia4
- MDMoldova1,753
- MCMonaco29
- MNMongolia354
- MAMorocco1,325
- NRNauru1
- NLNetherlands4,334
- NCNew Caledonia52
- NZNew Zealand1,738
- NUNiue1
- NFNorfolk Island1
- MKNorth Macedonia220
- MPNorthern Mariana Islands3
- NONorway5,132
- PKPakistan2,563
- PWPalau1
- PAPanama729
- PYParaguay8,644
- PEPeru96,943
- PHPhilippines2,317
- PNPitcairn Islands1
- PLPoland72,899
- PTPortugal206,942
- PRPuerto Rico177
- RERéunion152
- RORomania37,915
- RURussia43,538
- WSSamoa1
- SMSan Marino26
- RSSerbia1,155
- SGSingapore121,154
- SKSlovakia5,233
- SISlovenia556
- ZASouth Africa3,920
- GSSouth Georgia & South Sandwich Islands1
- KRSouth Korea35,583
- ESSpain37,867
- LKSri Lanka1,837
- PMSt. Pierre & Miquelon2
- SJSvalbard & Jan Mayen8
- SESweden18,887
- CHSwitzerland4,528
- THThailand903
- TRTürkiye36,307
- TCTurks & Caicos Islands1
- VIU.S. Virgin Islands16
- UAUkraine29,571
- AEUnited Arab Emirates178,171
- GBUnited Kingdom27,450
- USUnited States41,490
- UYUruguay1,964
- VAVatican City1
- WFWallis & Futuna3