Get database analytics

GET/v1/databases/{databaseId}/analytics

Retrieve database usage and volume analytics for the last 24 hours.

How to call this endpoint

Every ACP API request uses bearer authentication. The examples here show the actual request path, auth header, and body shape that the platform expects.

Path, query, and header parameters

These parameters control which ACP object the endpoint acts on and how the request is processed.

Path parameters
NameLocationTypeRequiredDescription
databaseIdpathstringYesDatabase ID
Query parameters
None.

Body schema

This endpoint does not require a request body.

None.

What the API returns

Each response code below includes the documented payload shape for the ACP API.

200Database analyticsapplication/json
FieldTypeRequiredDescription
analyticsobjectNo
analytics.summaryobjectNo
analytics.summary.totalCollectionsintegerNo
analytics.summary.totalDocumentsintegerNo
analytics.summary.reads24hintegerNo
analytics.summary.writes24hintegerNo
analytics.summary.deletes24hintegerNo
analytics.summary.locationstringNo
analytics.summary.updatedAtstringNoISO 8601 timestamp.
analytics.summary.largestCollectionobjectNo
analytics.summary.largestCollection.idstringNoUnique identifier.
analytics.summary.largestCollection.namestringNoHuman-readable name.
analytics.summary.largestCollection.documentCountintegerNo
analytics.chartsobjectNo
analytics.charts.operations24hobject[]No
analytics.charts.operations24h[].timestampstringNo
analytics.charts.operations24h[].readsintegerNo
analytics.charts.operations24h[].writesintegerNo
analytics.charts.operations24h[].deletesintegerNo
analytics.charts.volume24hobject[]No
analytics.charts.volume24h[].timestampstringNo
analytics.charts.volume24h[].collectionsintegerNo
analytics.charts.volume24h[].documentsintegerNo
Get database analytics
Loading...
Response 200
Loading...
See the ACP quickstart and SDK flow