Skip to content
getgeolens.com

Get Catalog Stats

GET
/admin/stats/
curl --request GET \
--url https://example.com/api/admin/stats/ \
--header 'Authorization: Bearer <token>'

Return catalog statistics: counts, storage, breakdowns (admin only).

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
total_storage_bytes
required
Any of:
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
0
Example
{
"users_by_status": {},
"total_users": 0
}