ckanext-statsapi
Statistics API extension for CKAN.
Developed as part of the ROUTE-TO-PA (Raising Open and User-friendly Transparency-Enabling Technologies for Public Administrations) EU project. Provides RESTful API endpoints for accessing dataset, resource, and usage statistics.
Features
- REST API endpoints for statistics data
- Dataset statistics retrieval
- Resource download counts
- Organization-level usage statistics
- Integration with CKAN tracking features
Requirements
Installation
To install ckanext-statsapi:
- Activate your CKAN virtual environment.
- Clone the source and install it:
git clone https://github.com/routetopa/ckanext-statsapi.git
cd ckanext-statsapi
pip install -e .
- Add
statsapi to the ckan.plugins setting in your CKAN config file.
- Restart CKAN.
License
AGPL-3.0