Zip2Geo

API Documentation

Zip2Geo offers a simple and fast way to convert postal codes into geographic coordinates. To use the API, send a GET request to the following endpoint:

GET https://zip2geo.dev/api/lookup

Required Query Parameters

Authentication

You can authenticate using one of the following methods:

Example Request

curl -H "Authorization: Bearer YOUR_API_KEY" \
  "https://zip2geo.dev/api/lookup?country=DE&zip_code=10115"

Example Response

[
  {
    "zip_code": "10435",
    "country": "DE",
    "latitude": 52.5378,
    "longitude": 13.4112,
    "name": "Berlin",
    "state": "Berlin"
  }
]

Error Handling

Supported Countries

Below is a list of all ISO 3166-1 alpha-2 country codes currently supported by the Zip2Geo API:

Country ISO Code
๐Ÿ‡ฆ๐Ÿ‡ฉ Andorra AD
๐Ÿ‡ฆ๐Ÿ‡ช United Arab Emirates AE
๐Ÿ‡ฆ๐Ÿ‡ฎ Anguilla AI
๐Ÿ‡ฆ๐Ÿ‡ฑ Albania AL
๐Ÿ‡ฆ๐Ÿ‡ท Argentina AR
๐Ÿ‡ฆ๐Ÿ‡ธ American Samoa AS
๐Ÿ‡ฆ๐Ÿ‡น Austria AT
๐Ÿ‡ฆ๐Ÿ‡บ Australia AU
๐Ÿ‡ฆ๐Ÿ‡ฝ ร…land Islands AX
๐Ÿ‡ฆ๐Ÿ‡ฟ Azerbaijan AZ
๐Ÿ‡ง๐Ÿ‡ฉ Bangladesh BD
๐Ÿ‡ง๐Ÿ‡ช Belgium BE
๐Ÿ‡ง๐Ÿ‡ฌ Bulgaria BG
๐Ÿ‡ง๐Ÿ‡ฒ Bermuda BM
๐Ÿ‡ง๐Ÿ‡ท Brazil BR
๐Ÿ‡ง๐Ÿ‡พ Belarus BY
๐Ÿ‡จ๐Ÿ‡ฆ Canada CA
๐Ÿ‡จ๐Ÿ‡จ Cocos (Keeling) Islands CC
๐Ÿ‡จ๐Ÿ‡ญ Switzerland CH
๐Ÿ‡จ๐Ÿ‡ฑ Chile CL
๐Ÿ‡จ๐Ÿ‡ณ China CN
๐Ÿ‡จ๐Ÿ‡ด Colombia CO
๐Ÿ‡จ๐Ÿ‡ท Costa Rica CR
๐Ÿ‡จ๐Ÿ‡ฝ Christmas Island CX
๐Ÿ‡จ๐Ÿ‡พ Cyprus CY
๐Ÿ‡จ๐Ÿ‡ฟ Czech Republic CZ
๐Ÿ‡ฉ๐Ÿ‡ช Germany DE
๐Ÿ‡ฉ๐Ÿ‡ฐ Denmark DK
๐Ÿ‡ฉ๐Ÿ‡ด Dominican Republic DO
๐Ÿ‡ฉ๐Ÿ‡ฟ Algeria DZ
๐Ÿ‡ช๐Ÿ‡จ Ecuador EC
๐Ÿ‡ช๐Ÿ‡ช Estonia EE
๐Ÿ‡ช๐Ÿ‡ธ Spain ES
๐Ÿ‡ซ๐Ÿ‡ฎ Finland FI
๐Ÿ‡ซ๐Ÿ‡ฐ Falkland Islands FK
๐Ÿ‡ซ๐Ÿ‡ฒ Micronesia FM
๐Ÿ‡ซ๐Ÿ‡ด Faroe Islands FO
๐Ÿ‡ซ๐Ÿ‡ท France FR
๐Ÿ‡ฌ๐Ÿ‡ง United Kingdom GB
๐Ÿ‡ฌ๐Ÿ‡ซ French Guiana GF
๐Ÿ‡ฌ๐Ÿ‡ฌ Guernsey GG
๐Ÿ‡ฌ๐Ÿ‡ฎ Gibraltar GI
๐Ÿ‡ฌ๐Ÿ‡ฑ Greenland GL
๐Ÿ‡ฌ๐Ÿ‡ต Guadeloupe GP
๐Ÿ‡ฌ๐Ÿ‡ธ South Georgia and South Sandwich Islands GS
๐Ÿ‡ฌ๐Ÿ‡น Guatemala GT
๐Ÿ‡ฌ๐Ÿ‡บ Guam GU
๐Ÿ‡ญ๐Ÿ‡ฐ Hong Kong HK
๐Ÿ‡ญ๐Ÿ‡ฒ Heard Island and McDonald Islands HM
๐Ÿ‡ญ๐Ÿ‡ณ Honduras HN
๐Ÿ‡ญ๐Ÿ‡ท Croatia HR
๐Ÿ‡ญ๐Ÿ‡น Haiti HT
๐Ÿ‡ญ๐Ÿ‡บ Hungary HU
๐Ÿ‡ฎ๐Ÿ‡ฉ Indonesia ID
๐Ÿ‡ฎ๐Ÿ‡ช Ireland IE
๐Ÿ‡ฎ๐Ÿ‡ฒ Isle of Man IM
๐Ÿ‡ฎ๐Ÿ‡ณ India IN
๐Ÿ‡ฎ๐Ÿ‡ด British Indian Ocean Territory IO
๐Ÿ‡ฎ๐Ÿ‡ธ Iceland IS
๐Ÿ‡ฎ๐Ÿ‡น Italy IT
๐Ÿ‡ฏ๐Ÿ‡ช Jersey JE
๐Ÿ‡ฏ๐Ÿ‡ต Japan JP
๐Ÿ‡ฐ๐Ÿ‡ช Kenya KE
๐Ÿ‡ฐ๐Ÿ‡ท South Korea KR
๐Ÿ‡ฑ๐Ÿ‡ฎ Liechtenstein LI
๐Ÿ‡ฑ๐Ÿ‡ฐ Sri Lanka LK
๐Ÿ‡ฑ๐Ÿ‡น Lithuania LT
๐Ÿ‡ฑ๐Ÿ‡บ Luxembourg LU
๐Ÿ‡ฑ๐Ÿ‡ป Latvia LV
๐Ÿ‡ฒ๐Ÿ‡ฆ Morocco MA
๐Ÿ‡ฒ๐Ÿ‡จ Monaco MC
๐Ÿ‡ฒ๐Ÿ‡ฉ Moldova MD
๐Ÿ‡ฒ๐Ÿ‡ญ Marshall Islands MH
๐Ÿ‡ฒ๐Ÿ‡ฐ North Macedonia MK
๐Ÿ‡ฒ๐Ÿ‡ด Macao MO
๐Ÿ‡ฒ๐Ÿ‡ต Northern Mariana Islands MP
๐Ÿ‡ฒ๐Ÿ‡ถ Martinique MQ
๐Ÿ‡ฒ๐Ÿ‡น Malta MT
๐Ÿ‡ฒ๐Ÿ‡ผ Malawi MW
๐Ÿ‡ฒ๐Ÿ‡ฝ Mexico MX
๐Ÿ‡ฒ๐Ÿ‡พ Malaysia MY
๐Ÿ‡ณ๐Ÿ‡จ New Caledonia NC
๐Ÿ‡ณ๐Ÿ‡ซ Norfolk Island NF
๐Ÿ‡ณ๐Ÿ‡ฑ Netherlands NL
๐Ÿ‡ณ๐Ÿ‡ด Norway NO
๐Ÿ‡ณ๐Ÿ‡ท Nauru NR
๐Ÿ‡ณ๐Ÿ‡บ Niue NU
๐Ÿ‡ณ๐Ÿ‡ฟ New Zealand NZ
๐Ÿ‡ต๐Ÿ‡ฆ Panama PA
๐Ÿ‡ต๐Ÿ‡ช Peru PE
๐Ÿ‡ต๐Ÿ‡ซ French Polynesia PF
๐Ÿ‡ต๐Ÿ‡ญ Philippines PH
๐Ÿ‡ต๐Ÿ‡ฐ Pakistan PK
๐Ÿ‡ต๐Ÿ‡ฑ Poland PL
๐Ÿ‡ต๐Ÿ‡ฒ Saint Pierre and Miquelon PM
๐Ÿ‡ต๐Ÿ‡ณ Pitcairn PN
๐Ÿ‡ต๐Ÿ‡ท Puerto Rico PR
๐Ÿ‡ต๐Ÿ‡น Portugal PT
๐Ÿ‡ต๐Ÿ‡ผ Palau PW
๐Ÿ‡ท๐Ÿ‡ช Rรฉunion RE
๐Ÿ‡ท๐Ÿ‡ด Romania RO
๐Ÿ‡ท๐Ÿ‡ธ Serbia RS
๐Ÿ‡ท๐Ÿ‡บ Russia RU
๐Ÿ‡ธ๐Ÿ‡ช Sweden SE
๐Ÿ‡ธ๐Ÿ‡ฌ Singapore SG
๐Ÿ‡ธ๐Ÿ‡ฎ Slovenia SI
๐Ÿ‡ธ๐Ÿ‡ฏ Svalbard and Jan Mayen SJ
๐Ÿ‡ธ๐Ÿ‡ฐ Slovakia SK
๐Ÿ‡ธ๐Ÿ‡ฒ San Marino SM
๐Ÿ‡น๐Ÿ‡จ Turks and Caicos Islands TC
๐Ÿ‡น๐Ÿ‡ญ Thailand TH
๐Ÿ‡น๐Ÿ‡ท Turkey TR
๐Ÿ‡บ๐Ÿ‡ฆ Ukraine UA
๐Ÿ‡บ๐Ÿ‡ธ United States US
๐Ÿ‡บ๐Ÿ‡พ Uruguay UY
๐Ÿ‡ป๐Ÿ‡ฆ Vatican City VA
๐Ÿ‡ป๐Ÿ‡ฎ U.S. Virgin Islands VI
๐Ÿ‡ผ๐Ÿ‡ซ Wallis and Futuna WF
๐Ÿ‡ผ๐Ÿ‡ธ Samoa WS
๐Ÿ‡พ๐Ÿ‡น Mayotte YT
๐Ÿ‡ฟ๐Ÿ‡ฆ South Africa ZA

That's it. No registration hoops, no unnecessary complexity โ€” just zip-to-geo lookup, done right.