Get Catalog Stats
const url = 'https://example.com/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/admin/stats/ \ --header 'Authorization: Bearer <token>'Return catalog statistics: counts, storage, breakdowns (admin only).
Authorizations
Section titled “Authorizations ”Responses
Section titled “ Responses ”Successful Response
object
Total number of datasets in the catalog.
Number of datasets added in the last 30 days.
Histogram of datasets keyed by geometry type (Point, MultiPolygon, etc.).
object
Histogram of datasets keyed by visibility level (private, internal, restricted, public).
object
Histogram of users keyed by status (active, deactivated, pending).
object
Total number of users in the system.
Example
{ "users_by_status": {}, "total_users": 0}Bad request — invalid query parameters or payload
Unauthorized — missing or invalid credentials
Forbidden — caller lacks access to this resource
Not found
Validation error
Too many requests — retry after the advertised interval
Headers
Section titled “Headers ”Seconds until the request may be retried
Internal server error
Service unavailable — the database could not serve the request