Zip2Geo
Zip2Geo
Commencer
Zip2Geo

Documentation API

Zip2Geo offre un moyen simple et rapide de convertir les codes postaux en coordonnées géographiques. Pour utiliser l'API, envoyez une requête GET au point de terminaison suivant :

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

Paramètres de requête requis

Authentification

Vous pouvez vous authentifier en utilisant l'une des méthodes suivantes :

Exemple de requête

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

Exemple de réponse

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

Gestion des erreurs

Pays pris en charge

Voici une liste de tous les codes pays ISO 3166-1 alpha-2 actuellement pris en charge par l'API Zip2Geo :

Pays Code ISO
🇦🇩 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

C'est tout. Pas de complications d'inscription, pas de complexité inutile — juste une recherche zip-to-geo, bien faite.