Guides2026-07-03 · 7 min read
Cloudflare GraphQL Analytics API: A Practical Guide
A practical guide to the Cloudflare GraphQL Analytics API: tokens, the endpoint, datasets, sampling, and ready-to-run queries for traffic and security data.
A practical guide to the Cloudflare GraphQL Analytics API: tokens, the endpoint, datasets, sampling, and ready-to-run queries for traffic and security data.
Cloudflare keeps Security Events for 24 hours on Free and Pro, 3 days on Business, and 30 days on Enterprise. How to keep your WAF history longer.
Cloudflare doesn't publish one retention table. Query the GraphQL settings node to see exactly how far back each analytics dataset goes on your plan.