What are dataservices?
Dataservices represent external APIs such as:- Adresse API: Geocoding and address search
- Sirene API: French business registry
- API Entreprise: Company information
- And many more third-party APIs
Dataservices are distinct from data.gouv.fr’s internal APIs (Main API, Tabular API, Metrics API) that power the MCP server itself.
Understanding the workflow
Working with dataservices follows a clear progression:Searching for dataservices
Thesearch_dataservices tool helps you discover available APIs.
Query optimization
Like dataset searches, dataservice searches use AND logic. The server automatically removes common stop words:- Generic terms: “données”, “fichier”, “tableau”
- Format names: “csv”, “excel”, “json”
- Use specific API names (e.g., “adresse”, “sirene”, “entreprise”)
- Search by service type (e.g., “geocoding”, “business registry”)
- Use organization names
Search parameters
Example searches
Search results include
- Dataservice ID
- Title and description
- Organization name
- Base API URL
- Tags
- Dataservice page URL
Getting dataservice information
Useget_dataservice_info to retrieve complete metadata for a specific API.
Metadata includes
- Title and description: What the API does
- Base API URL: The root endpoint for API calls
- OpenAPI/Swagger spec URL: Machine-readable API documentation
- Organization: Who provides the API
- Tags: Categorization keywords
- License: Usage terms
- Dates: Creation and last update timestamps
- Related datasets: Number of associated datasets
Understanding OpenAPI specifications
Theget_dataservice_openapi_spec tool fetches and summarizes the API’s OpenAPI/Swagger specification.
What you’ll get
The tool provides a concise summary of:- API information: Title, version, and description
- Base URLs/servers: Where to send requests
- Endpoints: Available paths and HTTP methods
- Parameters: Required and optional parameters for each endpoint
- Parameter name
- Location (query, path, header, etc.)
- Data type
- Whether it’s required
Specification formats
The tool supports both:- OpenAPI 3.x: Modern specification format with
serversarray - OpenAPI 2.0 (Swagger): Older format with
hostandbasePathfields
Example output structure
If a dataservice has no
machine_documentation_url, the tool will inform you and provide the base_api_url if available.Using dataservice APIs
After understanding the API specification, you can make requests to thebase_api_url.
Typical workflow
Example: Using an address API
Common use cases
Finding geolocation APIs
Exploring business data APIs
Checking API documentation
Related datasets
Many dataservices are associated with related datasets. Theget_dataservice_info tool shows the total number of related datasets.
- Static snapshots of the API data
- Reference documentation
- Example data files
- Historical archives
Next steps
Working with datasets
Learn how to search and explore static datasets
API Reference
View detailed API documentation