API Découpage Administratif - (API Geo) API
by Direction interministérielle du numérique
Overview
L' **API Découpage Administratif** fait partie de la boîte-à-outils API Géo. Elle permet d'interroger facilement les référentiels géographique nationaux. ### A quoi sert l'API Découpage Administratif ? En intégrant l'API dans votre système d'information, vous pouvez notamment : - rechercher une commune par nom, code postal ou coordonnées géographiques - rechercher un département par son nom - rechercher une région par son nom ### Données disponibles | Nom | Description | | ----------- | ------------------------------------------------------------------------------------------------------------------------ | | Commune | Le nom, la population, le code INSEE, le code postal, la géolocalisation (latitude, longitude) et le contour (GeoJSON), localisation de la mairie | | Département | Le nom, le code INSEE du département, et la région de rattachement | | Région | La liste des régions et leur code INSEE | | EPCI | Le nom, le département et la région de rattachement, le contour des Etablissements publics de coopération intercommunale | ### Couverture du territoire France métropolitaine, [DROM](https://fr.wikipedia.org/wiki/D%C3%A9partement_et_r%C3%A9gion_d%27outre-mer) et [COM](https://fr.wikipedia.org/wiki/Collectivit%C3%A9_d%27outre-mer). ### Coordonnées géographiques Cette API utilise exclusivement des coordonnées géographiques [WGS-84](https://fr.wikipedia.org/wiki/WGS_84). Elle peut renvoyer des données au format JSON ou [GeoJSON](http://geojson.org). ### Données source [Toutes
API Découpage Administratif - (API Geo) is a government API from Direction interministérielle du numérique. It needs no API key. It is served over HTTPS.
At a glance
- Authentication
- No auth
- HTTPS
- Yes
- CORS
- Unknown
- Category
- Government
- Base URL
https://geo.api.gouv.fr
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://geo.api.gouv.fr" \
-H "Accept: application/json"const response = await fetch("https://geo.api.gouv.fr", {
method: "GET",
headers: {
"Accept": "application/json",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://geo.api.gouv.fr",
headers={
"Accept": "application/json",
},
timeout=30,
)
print(response.json())Questions
Does the API Découpage Administratif - (API Geo) API need an API key?
No. The API Découpage Administratif - (API Geo) API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.
Does the API Découpage Administratif - (API Geo) API support HTTPS?
Yes, the API Découpage Administratif - (API Geo) API is served over HTTPS.
What are alternatives to the API Découpage Administratif - (API Geo) API?
Other Government APIs include EPA, UK Companies House, Open Government, Canada, Federal Register, Census.gov.
Similar government APIs
Compare alternatives →EPA
GovernmentWeb services and data sets from the US Environmental Protection Agency
UK Companies House
GovernmentUK Companies House Data from the UK government
Open Government, Canada
GovernmentCanadian Government Open Data
Federal Register
GovernmentThe Daily Journal of the United States Government
Census.gov
GovernmentThe US Census Bureau provides various APIs and data sets on demographics and businesses
Colorado Information Marketplace
GovernmentColorado State Government Open Data
Listed from data.gouv.fr (Licence Ouverte).