Get database analytics

GET/v1/databases/{databaseId}/analytics

Retrieve database usage and volume analytics for the selected time period.

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
NameLocationTypeRequiredDescription
periodqueryday | week | monthNoAnalytics window. Day data uses hourly buckets; week and month data use daily buckets.

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.periodday | week | monthNo—
analytics.summaryobjectNo—
analytics.summary.totalCollectionsintegerNo—
analytics.summary.totalDocumentsintegerNo—
analytics.summary.readsintegerNoReads in the selected period.
analytics.summary.writesintegerNoWrites in the selected period.
analytics.summary.deletesintegerNoDeletes in the selected period.
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.operationsobject[]NoOperation buckets for the selected period.
analytics.charts.operations[].timestampstringNo—
analytics.charts.operations[].readsintegerNo—
analytics.charts.operations[].writesintegerNo—
analytics.charts.operations[].deletesintegerNo—
analytics.charts.volumeobject[]NoVolume buckets for the selected period.
analytics.charts.volume[].timestampstringNo—
analytics.charts.volume[].collectionsintegerNo—
analytics.charts.volume[].documentsintegerNo—
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