Hanzo
OpenapiCloudflare

Reads a zone's Cloudflare traffic dashboard — requests, bandwidth, threats and…

Reads a zone's Cloudflare traffic dashboard — requests, bandwidth, threats and pageviews over the since/until window. Any org member may read.

GET /v1/cloudflare/zones/{zone}/analytics

Addresshttps://api.hanzo.ai/v1/cloudflare/zones/{zone}/analytics
MethodGET
Operationget_cloudflare_zones_by_zone_analytics
AuthAuthorization: Bearer $HANZO_API_KEY

Reads a zone's Cloudflare traffic dashboard — requests, bandwidth, threats and pageviews over the since/until window. Any org member may read.

A zone whose Cloudflare plan does not serve this endpoint yields Cloudflare's OWN error, never a fabricated success.

Request

4 fields.

FieldInTypeRequiredDescription
zonepathstringyesZone is the 32-hex Cloudflare zone id.
sincequerystringSince and Until bound the window, in the form Cloudflare accepts — an RFC 3339 time or a negative number of minutes from now ("-1440" is the last day).
untilquerystring
continuousquerystringContinuous asks Cloudflare for only fully-aggregated buckets.

Response

StatusBodyMeaning
200ok

200 body — 1 field.

FieldInTypeAlwaysDescription
(body)bodyanyyes

Failure carries the platform error shape — see Errors.

Examples

hanzo cloudflare zones analytics <zone>

Cloudflare API · All Hanzo APIs · Interactive reference

How is this guide?

On this page