Geocoding — entry 006 of 80
adresse.data.gouv.fr
The Base Adresse Nationale's API Adresse geocodes and reverse-geocodes French addresses for free with no API key, backed by Etalab and IGN's data.geopf.fr infrastructure (the older api-adresse.data.gouv.fr host still answers directly and does not redirect). Requests and responses use the GeoJSON FeatureCollection format, with each result scored for match confidence and enriched with INSEE city codes, postcodes, and population. A live Origin-header probe confirms open CORS (Access-Control-Allow-Origin: *), so it works directly from browser JavaScript with no proxy.
GreatAPIs Score
Auth quickstart
- No key needed — call it now.
Your key is stored only in this browser (localStorage) and sent directly to the API — never to greatapis.
Endpoints
getCapabilities1
Découverte du service
GET/getCapabilitiesDécouvrir le service
| Status | Description | Schema |
|---|---|---|
200 | successful operation | Getcapabilities |
404 | Not found | — |
search2
Géocodage direct (recherche)
GET/searchRecherche par géocodage direct
| Name | In | Required | Type |
|---|---|---|---|
q | query | no | string |
autocomplete | query | no | string |
index | query | no | — |
limit | query | no | integer |
lat | query | no | number |
lon | query | no | number |
returntruegeometry | query | no | boolean |
postcode | query | no | — |
citycode | query | no | — |
depcode | query | no | — |
type | query | no | string |
city | query | no | string |
category | query | no | — |
departmentcode | query | no | string |
municipalitycode | query | no | string |
oldmunicipalitycode | query | no | string |
districtcode | query | no | string |
section | query | no | string |
number | query | no | string |
sheet | query | no | string |
| Status | Description | Schema |
|---|---|---|
200 | successful operation | — |
400 | Parse query failed | — |
POST/search/csvGéocodage direct en masse d’un fichier CSV
multipart/form-data (required)
| Status | Description | Schema |
|---|---|---|
200 | Géocodage réussi | GeocodeCsvResponse |
400 | Échec du géocodage suite à une erreur dans la requête ou dans le fichier CSV | — |
reverse2
Géocodage inverse
GET/reverseRecherche par géocodage inverse
| Name | In | Required | Type |
|---|---|---|---|
searchgeom | query | no | string |
lon | query | no | number |
lat | query | no | number |
index | query | no | — |
limit | query | no | integer |
returntruegeometry | query | no | boolean |
postcode | query | no | — |
citycode | query | no | — |
type | query | no | string |
city | query | no | string |
category | query | no | — |
departmentcode | query | no | string |
municipalitycode | query | no | string |
oldmunicipalitycode | query | no | string |
districtcode | query | no | string |
section | query | no | string |
number | query | no | string |
sheet | query | no | string |
| Status | Description | Schema |
|---|---|---|
200 | successful operation | — |
400 | Parse query failed | — |
POST/reverse/csvGéocodage inversé en masse d’un fichier CSV
multipart/form-data (required)
| Status | Description | Schema |
|---|---|---|
200 | Géocodage réussi | GeocodeCsvResponse |
400 | Échec du géocodage suite à une erreur dans la requête ou dans le fichier CSV | — |
batch-async10
Géocodage par lot asynchrone
POST/async/projectsCréer un nouveau projet
| Name | In | Required | Type |
|---|---|---|---|
X-Community | header | no | string |
| Status | Description | Schema |
|---|---|---|
201 | Projet créé avec succès | Project |
401 | Authentification incorrecte | — |
403 | Droits insuffisants | — |
GET/async/projects/{projectId}Récupérer les informations
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
| Status | Description | Schema |
|---|---|---|
200 | Métadonnées du projet | Project |
401 | Non autorisé | — |
404 | Projet introuvable | — |
DELETE/async/projects/{projectId}Supprimer un projet
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
| Status | Description | Schema |
|---|---|---|
204 | Projet supprimé avec succès | — |
401 | Non autorisé | — |
403 | Action interdite (le projet est en cours de traitement) | — |
404 | Projet introuvable | — |
POST/async/projects/{projectId}/abortAnnuler un géocodage en attente ou en cours
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
| Status | Description | Schema |
|---|---|---|
200 | Annulation prise en compte | Project |
401 | Non autorisé | — |
403 | Action interdite (le projet n'est pas en cours ou en attente) | — |
404 | Projet introuvable | — |
PUT/async/projects/{projectId}/input-fileUploader un fichier d'entrée pour un projet
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
Content-Length | header | no | integer |
Content-Disposition | header | no | string |
application/octet-stream
| Status | Description | Schema |
|---|---|---|
200 | Fichier d'entrée uploadé avec succès | Project |
400 | Fichier invalide (taille excessive ou incorrecte) | — |
401 | Non autorisé | — |
403 | Action interdite (le projet est en cours de traitement ou terminé) | — |
404 | Projet introuvable | — |
GET/async/projects/{projectId}/input-file/{token}Télécharger le fichier source du projet
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
token | path | yes | string |
| Status | Description | Schema |
|---|---|---|
200 | Fichier téléchargé avec succès | GeocodeCsvResponse |
GET/async/projects/{projectId}/output-file/{token}Télécharger le fichier résultat du projet
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
token | path | yes | string |
| Status | Description | Schema |
|---|---|---|
200 | Fichier téléchargé avec succès | — |
PUT/async/projects/{projectId}/pipelineDéfinir les paramètres du traitement
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
application/json — Pipeline
| Status | Description | Schema |
|---|---|---|
200 | Pipeline défini avec succès | Project |
400 | Paramètres invalides | — |
401 | Non autorisé | — |
403 | Action interdite (le projet est en cours de traitement ou terminé) | — |
404 | Projet introuvable | — |
POST/async/projects/{projectId}/resetRé-initialise un géocodage terminé ou en erreur
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
| Status | Description | Schema |
|---|---|---|
200 | Ré-initialisation prise en compte | Project |
401 | Non autorisé | — |
403 | Action interdite (le projet n'est pas terminé ou en erreur) | — |
404 | Projet introuvable | — |
POST/async/projects/{projectId}/startDémander le démarrage du géocodage
| Name | In | Required | Type |
|---|---|---|---|
projectId | path | yes | string |
| Status | Description | Schema |
|---|---|---|
200 | Projet mis en attente de géocodage | Project |
401 | Non autorisé | — |
403 | Action interdite (le projet est en cours de traitement ou terminé ou des éléments sont manquants) | — |
404 | Projet introuvable | — |
Try it
Developer reference
https://data.geopf.fr/geocodage50 requests/second per IP
- GET/search
- GET/reverse
Availability
Changelog
- gained an OpenAPI spec