Get CKAN Portal Statistics
ckan_catalog_statsGet a statistical overview of a CKAN portal: total datasets, and breakdowns by category, format, and organization with a single API call.
Instructions
Get a statistical overview of a CKAN portal: total dataset count and breakdown by category, format, and organization.
Single CKAN call (package_search with rows=0 and facets). No query needed.
Args:
server_url (string): Base URL of the CKAN server
facet_limit (number): Max entries per facet section (default 20)
response_format ('markdown' | 'json'): Output format
Returns: Total dataset count, categories ranked by count, file formats ranked by count, organizations ranked by count.
Typical workflow: ckan_catalog_stats (understand the portal) → ckan_package_search (query specific data)
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| server_url | Yes | Base URL of the CKAN server (e.g., https://dati.comune.messina.it) | |
| facet_limit | No | Max entries per facet section (default 20) | |
| response_format | No | Output format: 'markdown' for human-readable or 'json' for machine-readable | markdown |