// AI Platform Drift
Cloudflare SQL API beta enables direct SQL queries on analytics data
Cloudflare developer changelog · published 2026-10-21 22:47 UTC
WHAT CHANGEDCloudflare released a SQL API in beta on 2 October 2026. It provides a single HTTP endpoint for querying analytics and observability data using SQL SELECT statements with filtering, aggregation, LIKE, CASE, BETWEEN, IS NULL, and ordering. Supported datasets include HTTP requests, security events, D1 storage, Workers logs, and Workers Analytics Engine. The API is available on all Cloudflare plans and can be called from Workers using a binding without an API token.
WHY IT MATTERSTeams currently exporting Cloudflare analytics to external databases or building custom aggregation pipelines can now query directly against Cloudflare's datasets using standard SQL. The Workers binding eliminates token management for in-Worker queries, and automatic sample weight application for COUNT, SUM, and AVG on sampled datasets removes manual correction logic.
WHAT TO DOReview the SQL API documentation for syntax, dataset schemas, and query limits. Identify existing analytics export or aggregation workflows that could be replaced with direct SQL queries. For Workers-based analytics, test the Workers binding to eliminate API token handling.
Model-reported confidence 85% (not measured accuracy)
Primary source ↗
written by anthropic/claude-sonnet-4.5
Show the reasoning — raw diff, triage verdict, confidence
RAW DIFF
+## Analytics - SQL API (Beta) +https://developers.cloudflare.com/changelog/post/2026-10-02-sql-api-beta/ +Fri, 02 Oct 2026 00:00:00 GMT + +The SQL API is now available in beta. It provides a single HTTP endpoint for querying Cloudflare analytics and observability data using SQL. Supported dataset types include event datasets (such as HTTP requests and security events), state datasets (such as D1 storage), log datasets (such as Workers logs), and Workers Analytics Engine datasets. +The SQL API supports SELECT queries with filtering, aggregation, LIKE, CASE, BETWEEN, IS NULL, and ordering. Adaptively sampled datasets apply sample weights automatically for COUNT, SUM, and AVG. You can also query from a Cloudflare Worker using the Workers binding without managing an API token. +The SQL API powers Monitors and is available for direct querying on all plans. +For syntax, datasets, and limits, refer to SQL API.
HOW IT WAS JUDGED
Triage signals below are model-reported assertions, preserved verbatim; they are not independent arithmetic verification.
| triage verdict | MATERIAL at 0.92, needed 0.5 |
|---|---|
| triage reasoning | New SQL API beta feature with broad plan availability and new integration patterns for developers. |
| signals | new API feature announced · beta availability · new query capability (SQL) · new authentication method (Workers binding) · available on all plans · new dataset types supported |
| suppression | — |
| triage model | anthropic/claude-haiku-4.5 ($0.00000) |
| writer model | anthropic/claude-sonnet-4.5 ($0.00000) |