---
title: Analytics Query
---

[Skip to content](#%5Ftop) 

[API Reference](https://developers.cloudflare.com/api)

Copy Markdown

Open in **Claude**

Open in **ChatGPT**

Open in **Cursor**

---

**Copy Markdown**

**View as Markdown**

# Analytics Query

##### [Query analytics summary](https://developers.cloudflare.com/api/resources/analytics%5Fquery/methods/summary)

POST/accounts/{account\_id}/analytics/query/{dataset}/summary

##### [Query analytics timeseries](https://developers.cloudflare.com/api/resources/analytics%5Fquery/methods/timeseries)

POST/accounts/{account\_id}/analytics/query/{dataset}/timeseries

##### [Query analytics top-N](https://developers.cloudflare.com/api/resources/analytics%5Fquery/methods/top%5Fn)

POST/accounts/{account\_id}/analytics/query/{dataset}/top-n

##### ModelsExpand Collapse 

AnalyticsQuerySummaryResponse object { currentTotal, previousTotal } 

currentTotal: array of map\[unknown\]

Aggregated stats for the requested time range.

previousTotal: array of map\[unknown\]

Aggregated stats for the equivalent preceding time range, for trend comparison.

AnalyticsQueryTimeseriesResponse object { resolution, slots } 

resolution: string

The resolution used for time bucketing.

slots: array of map\[unknown\]

Time-bucketed result rows. Each slot contains a `time_bucket` field plus the requested stats and group-by dimensions.

AnalyticsQueryTopNResponse \= map\[unknown\]

Maps field names to values. Keys represent stat names and group-by column names. Values depend on the dataset (strings, numbers, booleans).

#### Analytics QueryData Security

#### Analytics QueryData SecurityContent Findings

##### [Top integrations by content findings](https://developers.cloudflare.com/api/resources/analytics%5Fquery/subresources/data%5Fsecurity/subresources/content%5Ffindings/methods/top%5Fn)

POST/accounts/{account\_id}/analytics/query/data-security/content-findings/top-n

##### ModelsExpand Collapse 

ContentFindingTopNResponse \= map\[unknown\]

Maps field names to values. Keys represent stat names and group-by column names. Values depend on the dataset (strings, numbers, booleans).

#### Analytics QueryData SecurityFindings

##### [Data security findings summary](https://developers.cloudflare.com/api/resources/analytics%5Fquery/subresources/data%5Fsecurity/subresources/findings/methods/summary)

POST/accounts/{account\_id}/analytics/query/data-security/findings/summary

##### [Data security findings timeseries](https://developers.cloudflare.com/api/resources/analytics%5Fquery/subresources/data%5Fsecurity/subresources/findings/methods/timeseries)

POST/accounts/{account\_id}/analytics/query/data-security/findings/timeseries

##### ModelsExpand Collapse 

FindingSummaryResponse object { currentTotal, previousTotal } 

currentTotal: array of map\[unknown\]

Aggregated stats for the requested time range.

previousTotal: array of map\[unknown\]

Aggregated stats for the equivalent preceding time range, for trend comparison.

FindingTimeseriesResponse object { slots, resolution } 

Merged CASB and CDE findings timeseries result.

slots: array of map\[unknown\]

Contains time-bucketed result rows. Each slot includes a `timestamp` plus `content` and `posture` maps with `cloud` and `saas` keys.

resolution: optional string

Always null for this endpoint.