Directory of Public Administration API — Geographic jurisdiction of local servicesAPI Annuaire de l’administration - compétence géographique des services locaux
API Annuaire de l’administration - compétence géographique des services locauxDirectory of Public Administration API — Geographic jurisdiction of local services
This API is part of the French government's directory of public administration (Annuaire de l'administration, Service-Public.gouv.fr), published under the responsibility of the DILA (Direction de l'information légale et administrative). It allows users to search for and retrieve local administrations and public services based on their geographic area of competence. The underlying data comes from the Base de données locales, a national reference dataset covering local public service providers across France. It is intended for identifying which local office or service is responsible for a given location or administrative area.### Contenu des données La Base de données locales est éditée et diffusée sous la responsabilité de la DILA. L’API Annuaire de l'administration : compétence géographique des services locaux - Service-Public.gouv.fr permet de rechercher et de consulter les administrations et services publics locau…
Trust score
How is this computed?Weighted across five axes. Tap a ring for what it measures.
Data schema (4 fields)
Click a field to see example values.
| Field | Type | Description |
|---|---|---|
| code_insee_communeINSEE commune code | text | INSEE code of the commune.code insee de la commune |
| nom_communeCommune name | text | Name of the commune.nom de la commune |
| id_service_localId service local | text | Identifier(s) of the local public service.identifiant du service |
| code_type_service_localCode type service local | text | Code for the type of local service (e.g. cpam, caf, mairie, france_services).code du type de service (exemple cpam, caf, mairie, france_services ...) |
Schema captured from opendatasoft 29 days ago.
Query the data
Pick columns and a sort, then fetch a live preview straight from the source. Choose an API-filterable column (marked ▾) under “Where” to pick from its list of values.
Sample data (5 records)
| code_insee_commune | nom_commune | id_service_local | code_type_service_local |
|---|---|---|---|
| 95612 | Le Thillay | ["a58561a8-2180-4441-b450-be9a0320e12e"] | dr_france_travail |
| 95612 | Le Thillay | ["214b2a17-8825-4e61-b4ba-2bf024baa622"] | dr_insee |
| 95612 | Le Thillay | ["2cbe4dcc-3e3f-44ed-9dc5-39d46328931b"] | drac |
| 95612 | Le Thillay | ["a21eb7af-5f5a-4381-afa0-f0724da1d2b8"] | draf |
| 95612 | Le Thillay | ["9ceba45e-c7e9-4c33-a4b8-ea99c873b727"] | drajes |
Live sample captured at profiling time — values may have changed upstream.
Verification Status
Using the API
Configuration
- Base URL
- https://api-lannuaire.service-public.gouv.fr/api/explore/v2.1
- Format
- openapi
Query examples
curl -s 'https://api-lannuaire.service-public.gouv.fr/api/explore/v2.1/catalog/datasets/api-lannuaire-administration-locale-competence-geographique/records?limit=20' -H 'Accept: application/json'First 20 records of the dataset as JSON.
Uses the Opendatasoft Explore v2.1 syntax — supports select, where, group_by and order_by.
Rate limits
Dataset
Volume & freshness
License
No license declared upstream.
Source: opendatasoft
Machine-readable & source
Embed this badge in a README or wiki — it always shows the latest verification state and quality tier.