Skip to content

API RNB API

by Référentiel National des Bâtiments

No authHTTPSGovernment
Open documentation ↗

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
curl -X GET "https://rnb-api.beta.gouv.fr/" \
  -H "Accept: application/json"
JavaScript
const response = await fetch("https://rnb-api.beta.gouv.fr/", {
  method: "GET",
  headers: {
    "Accept": "application/json",
  },
});
const data = await response.json();
console.log(data);
Python
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.

Compare alternatives →

Listed from data.gouv.fr (Licence Ouverte).