Get Catalog Stats
GET
/admin/stats/
const url = 'https://example.com/api/admin/stats/';const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request GET \ --url https://example.com/api/admin/stats/ \ --header 'Authorization: Bearer <token>'Return catalog statistics: counts, storage, breakdowns (admin only).
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response
Media type application/json
CatalogStatsResponse
object
total_datasets
required
Total Datasets
Total number of datasets in the catalog.
integer
recent_additions
required
Recent Additions
Number of datasets added in the last 30 days.
integer
datasets_by_geometry_type
required
Datasets By Geometry Type
Histogram of datasets keyed by geometry type (Point, MultiPolygon, etc.).
object
key
additional properties
integer
datasets_by_visibility
required
Datasets By Visibility
Histogram of datasets keyed by visibility level (private, internal, restricted, public).
object
key
additional properties
integer
users_by_status
Users By Status
Histogram of users keyed by status (active, deactivated, pending).
object
key
additional properties
integer
total_users
Total Users
Total number of users in the system.
integer
Example
{ "users_by_status": {}, "total_users": 0}