Overview
L'API permet plusieurs choses : - récupérer des listes de bâtiments (par code insee, dans une bounding box, par statut du bâtiment) - accéder aux modifications du contenu de la base ayant eu lieu depuis une certaine date (endpoint de diff) - accès à des tuiles vectorielles pour afficher les données du RNB sur des cartes. - Permet à des acteurs identifiés d'enregistrer des ADS chez nous (autorisation de droit des sols)
API RNB is a government API from Référentiel National des Bâtiments. 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://rnb-api.beta.gouv.fr/
Make a first request
Replace the placeholders; the documentation says exactly where credentials go.
curl -X GET "https://rnb-api.beta.gouv.fr/" \
-H "Accept: application/json"const response = await fetch("https://rnb-api.beta.gouv.fr/", {
method: "GET",
headers: {
"Accept": "application/json",
},
});
const data = await response.json();
console.log(data);import requests
response = requests.request(
"GET",
"https://rnb-api.beta.gouv.fr/",
headers={
"Accept": "application/json",
},
timeout=30,
)
print(response.json())Questions
Does the API RNB API need an API key?
No. The API RNB API can be called without an API key or sign-up, which makes it handy for prototypes and front-end demos.
Does the API RNB API support HTTPS?
Yes, the API RNB API is served over HTTPS.
What are alternatives to the API RNB 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).