Parameters
The unique identifier of the dataservice.This ID can be obtained from the
search_dataservices tool results or from a data.gouv.fr dataservice URL.Returns
Returns a formatted text response containing:- Dataservice title
- Dataservice ID
- Dataservice URL on data.gouv.fr
- Description (truncated to 500 characters)
- Base API URL - The root endpoint of the API
- OpenAPI/Swagger spec URL - URL to fetch the machine-readable API specification
- Organization name and ID
- Tags (up to 10)
- Creation date
- Last update date
- License information
- Number of related datasets
Usage notes
To use a dataservice: (1) Get its info with this tool, (2) Fetch the OpenAPI spec with
get_dataservice_openapi_spec, (3) Call the base API URL according to the spec.Key fields for API usage
Two fields are essential for using the API:- base_api_url: The root URL where the API is hosted
- machine_documentation_url: URL to the OpenAPI/Swagger specification
Understanding the response
- Base API URL tells you where to send requests
- OpenAPI spec URL tells you where to fetch the API documentation
- Related datasets shows how many datasets are associated with this API
Next steps
After getting dataservice information:- Use
get_dataservice_openapi_specto fetch and summarize the API specification - Review the available endpoints, parameters, and authentication requirements
- Call the API directly using the base URL and endpoint paths from the spec
Error handling
The tool handles the following error cases:- 404 Not Found: Returns a message indicating the dataservice ID was not found
- Other HTTP errors: Returns the HTTP status code and error details
- Unexpected errors: Returns the error message