---
description: Query Cloudflare analytics and observability data using SQL over a single HTTP endpoint.
title: SQL API (Beta)
image: https://developers.cloudflare.com/changelog/post/2026-10-02-sql-api-beta/og.png?v=58184cd43be4b919
---

[Skip to content](#main-content)

[View RSS feeds](https://developers.cloudflare.com/fundamentals/new-features/available-rss-feeds/) [ Subscribe to RSS](https://developers.cloudflare.com/changelog/rss/index.xml)

[Back to all posts](https://developers.cloudflare.com/changelog)

October 2, 2026

## SQL API (Beta)

[Analytics](https://developers.cloudflare.com/analytics/)

Copy as Markdown| [View as Markdown](https://developers.cloudflare.com/changelog/post/2026-10-02-sql-api-beta/index.md)| [Agent setup](https://developers.cloudflare.com/agent-setup/)

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](https://developers.cloudflare.com/analytics/sql-api/workers-binding/) without managing an API token.

The SQL API powers [Monitors](https://developers.cloudflare.com/notifications/monitors/) and is available for direct querying on all plans.

For syntax, datasets, and limits, refer to [SQL API](https://developers.cloudflare.com/analytics/sql-api/).

```json
{"@context":"https://schema.org","@type":"BlogPosting","@id":"https://developers.cloudflare.com/changelog/post/2026-10-02-sql-api-beta/#page","headline":"SQL API (Beta)","description":"Query Cloudflare analytics and observability data using SQL over a single HTTP endpoint.","url":"https://developers.cloudflare.com/changelog/post/2026-10-02-sql-api-beta/","inLanguage":"en","image":"https://developers.cloudflare.com/changelog/post/2026-10-02-sql-api-beta/og.png?v=58184cd43be4b919","dateModified":"2026-10-02","datePublished":"2026-10-02","publisher":{"@type":"Organization","name":"Cloudflare","description":"One platform for your apps, agents, and workforce. Build, secure, and scale without managing infrastructure","url":"https://www.cloudflare.com/","sameAs":["https://github.com/cloudflare","https://www.linkedin.com/company/cloudflare","https://x.com/cloudflare"],"logo":{"@type":"ImageObject","url":"https://developers.cloudflare.com/logo.svg"},"address":{"@type":"PostalAddress","streetAddress":"101 Townsend St","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94107","addressCountry":"US"},"contactPoint":[{"@type":"ContactPoint","contactType":"Customer Support","url":"https://support.cloudflare.com/","availableLanguage":["English"]},{"@type":"ContactPoint","contactType":"Sales","url":"https://www.cloudflare.com/contact/","availableLanguage":["English"]}]},"isPartOf":{"@type":"WebSite","@id":"https://developers.cloudflare.com/#website","name":"Cloudflare Docs","url":"https://developers.cloudflare.com/"}}
```
