Data source

Cloudflare Analytics data model: traffic, bot requests and security events as tables

A custom connector in OWOX Data Marts loads a Cloudflare zone's analytics, on any Cloudflare plan, into your data warehouse: exact traffic, daily splits, bot requests and security events.

  1. Open source. OWOX Data Marts is open source: you can read the code that loads and models your data, and run it yourself.
  2. You own the data. Cloudflare Analytics tables load into your data warehouse, under your account. If you leave OWOX, they stay where they are.
  3. MCP-ready. Once the data is in, Claude or ChatGPT can work from your Data Marts through OWOX MCP.

Hand this to your AI

Don't wire up Cloudflare Analytics by hand. Have your AI assistant load it into your data warehouse.

Your assistant sets up the Cloudflare Analytics connector with you and loads the tables you pick; OWOX keeps them in your data warehouse, ready to use.

The prompt

set up the Cloudflare Analytics connector in OWOX Data Marts, let me pick the tables I need, load them into my data warehouse and show me the first rows

The Cloudflare Analytics data model

The Cloudflare Analytics data model

9 tables61 fields9 joinsView on GitHub

Bot Requests by Page12 fields2 relationshipsDaily by Browser3 fields1 relationshipDaily by Content Type4 fields1 relationshipDaily by Country5 fields2 relationshipsDaily by IP Class3 fields1 relationshipDaily by Status3 fields2 relationshipsDaily Traffic9 fields6 relationshipsStart hereHourly Traffic8 fields2 relationshipsSecurity Events14 fields1 relationship

Daily Traffic is the anchor: one row per UTC day with the zone's totals, counted by Cloudflare's rollup and not sampled.

  1. Hourly Traffic and the daily splits by status, browser family, country, IP class and content type break those totals apart and join Daily Traffic on date; the status and country splits sum back to the day.
  2. Bot Requests by Page and Security Events come from Cloudflare's sampled datasets, so wherever sample_interval is above 1 their counts are estimates.
  3. Cloudflare's API reads only a limited window back, so each completed UTC day is loaded once and kept, and the tables become your history.
How the tables join (9)

Put the model in your data warehouse, BigQuery, Snowflake, Redshift, Athena or Databricks, or keep each table as a Data Mart with its joins.

Explore on canvas →Import this model

Use it in your tools

The same published Data Marts feed Google Sheets reports and answer questions in ChatGPT, Claude or any other MCP-compatible assistant through OWOX MCP.

Why OWOX

Cloudflare Analytics kept past the API's window

Cloudflare's GraphQL Analytics API answers only for a limited window back, set per plan and dataset. Loaded day by day into your data warehouse, the same numbers stay, and bot traffic, security events and totals sit in one place you can query.

  • Which AI crawlers read which pages. Bot Requests by Page holds requests whose user agent names a bot, plus every request Cloudflare verified as one, by path, user agent and verified-bot category such as AI Crawler. Keep status 200 and content type html or md to see the pages crawlers actually fetched.
  • Verified and claimed, told apart. An empty verified_bot_category means Cloudflare did not verify the bot. Unverified traffic, spoofed crawlers included, becomes a number per page.
  • Exact totals, sampled detail. The rollup tables are exact. In Bot Requests by Page, requests is already scaled up by Cloudflare; in Security Events one row can stand for several events, so count events as SUM(sample_interval).
  • History you keep. Each completed UTC day is loaded once and kept, so after Cloudflare's window has moved on, your tables are the only copy of those days.
  • Security events against traffic. Security Events joins Daily by Country on date and country. Count its events by sample_interval first, then read the requests blocked from one country against all of that country's traffic the same day.
  • One zone, one set of numbers. Spreadsheets, dashboards and AI assistants read the same tables, so a crawler report and a traffic report agree on the zone's requests.

Endpoints

Cloudflare Analytics Endpoints

Documentation

9 Cloudflare Analytics endpoints you can import. Each lands in its own table in your data warehouse.

Bot Requests by Page schema

Cloudflare Analytics Bot Requests by Page schema

12 fieldsTime seriescloudflare_bot_requests

Requests from bots and AI crawlers to one host, seen at Cloudflare's edge: one row per UTC hour, page path, method, user agent, status, content type and verified-bot category, with no IP addresses.

Questions this table answers

  • Which pages did verified AI crawlers fetch most last week, and which crawler read each one?
  • How many requests come from user agents that claim a known bot name but that Cloudflare did not verify?
  • Which missing pages do crawlers keep requesting?
Cloudflare Analytics Bot Requests by Page fields
FieldTypeDescription
dateDATEUTC day the row counts.
hostSTRINGHost the bot requests were sent to: the connector's Host parameter, one host per load.
hourDATETIMEStart of the UTC hour.
pathSTRINGRequest path without the query string.
methodSTRINGHTTP method of the request, e.g. GET or HEAD.
statusINTEGERHTTP status Cloudflare returned.
row_keyPKSTRINGHour|host|method|path|status|content type|verified category|user agent. Unique per row. A re-run of a loaded day overwrites only the keys that come back, so delete the day's rows before reloading it.
requestsINTEGERRequests. An estimate when sample_interval > 1.
user_agentSTRINGUser agent string the bot sent; the bot's claimed name, which only verified_bot_category confirms.
content_typeSTRINGhtml, md, empty (redirects), js, css, gif…
sample_intervalFLOATCloudflare adaptive sampling: 1 = every request counted; above 1, requests is scaled up from a sample. Delete a loaded day's rows before reloading it: rows of the first load whose keys do not come back stay, and the day is counted twice.
verified_bot_categorySTRINGCloudflare's verified-bot category, e.g. AI Crawler, AI Search, AI Assistant, Search Engine Crawler. Empty when Cloudflare did not verify the bot: spoofed, unknown, or not on Cloudflare's list.

Daily by Browser schema

Cloudflare Analytics Daily by Browser schema

3 fieldsTime seriescloudflare_daily_by_browser

The zone's exact daily page views by browser family, as Cloudflare reads the user agent.

Questions this table answers

  • Which browser families bring the most page views?
  • How many page views a day come from bot families rather than browsers?
Cloudflare Analytics Daily by Browser fields
FieldTypeDescription
datePKDATEUTC day the row counts.
page_viewsINTEGERPage views of that browser family that day.
browser_familyPKSTRINGBrowser family Cloudflare derives from the user agent, e.g. Chrome, Safari, BingBot.

Daily by Content Type schema

Cloudflare Analytics Daily by Content Type schema

4 fieldsTime seriescloudflare_daily_by_content_type

The zone's exact daily requests and bytes by response content type: html, md, js, css, images, and empty for redirects.

Questions this table answers

  • How many HTML and Markdown pages does the zone serve a day, against assets?
  • Which content types carry most of the bytes?
Cloudflare Analytics Daily by Content Type fields
FieldTypeDescription
datePKDATEUTC day the row counts.
bytesINTEGERBytes Cloudflare sent to clients in the row's period and split.
requestsINTEGERRequests Cloudflare served in the row's period and split, people and bots together.
content_typePKSTRINGContent type of the response as Cloudflare names it: html, md, js, css, gif, empty for redirects.

Daily by Country schema

Cloudflare Analytics Daily by Country schema

5 fieldsTime seriescloudflare_daily_by_country

The zone's exact daily requests, bytes and threats by client country.

Questions this table answers

  • Which countries send the most requests and the most threats?
  • Did traffic from one country jump on a given day?
Cloudflare Analytics Daily by Country fields
FieldTypeDescription
datePKDATEUTC day the row counts.
bytesINTEGERBytes Cloudflare sent to clients in the row's period and split.
countryPKSTRINGClient country as Cloudflare reports it: a two-letter code; XX when unknown.
threatsINTEGERRequests Cloudflare counted as threats in the row's period and split.
requestsINTEGERRequests Cloudflare served in the row's period and split, people and bots together.

Daily by IP Class schema

Cloudflare Analytics Daily by IP Class schema

3 fieldsTime seriescloudflare_daily_by_ip_class

The zone's exact daily requests by Cloudflare's IP class: searchEngine, badHost, tor, allowlist, monitoringService, unknown and others.

Questions this table answers

  • How many requests a day come from search-engine IPs, and how many from bad hosts or Tor?
  • Is monitoring traffic a visible share of requests?
Cloudflare Analytics Daily by IP Class fields
FieldTypeDescription
datePKDATEUTC day the row counts.
ip_classPKSTRINGCloudflare's class of the client IP, e.g. searchEngine, badHost, tor, monitoringService, unknown.
requestsINTEGERRequests Cloudflare served in the row's period and split, people and bots together.

Daily by Status schema

Cloudflare Analytics Daily by Status schema

3 fieldsTime seriescloudflare_daily_by_status

The zone's exact daily requests by HTTP status code, from the daily rollup.

Questions this table answers

  • How many 404 and 5xx responses did the zone return per day, and is the share growing?
  • What share of requests are redirects?
Cloudflare Analytics Daily by Status fields
FieldTypeDescription
datePKDATEUTC day the row counts.
statusPKINTEGERHTTP status Cloudflare returned.
requestsINTEGERRequests Cloudflare served in the row's period and split, people and bots together.

Daily Traffic schema

Cloudflare Analytics Daily Traffic schema

9 fieldsTime seriescloudflare_daily_traffic

The zone's exact daily totals from Cloudflare's daily rollup: requests, page views, unique client IPs, bytes, cached requests and bytes, threats and encrypted requests.

Questions this table answers

  • How did requests, page views and unique IPs change week over week?
  • What share of requests and bytes does the cache serve each day?
Cloudflare Analytics Daily Traffic fields
FieldTypeDescription
datePKDATEUTC day the row counts.
bytesINTEGERBytes Cloudflare sent to clients for the zone that day.
threatsINTEGERRequests Cloudflare counted as threats that day.
uniquesINTEGERUnique client IPs that day.
requestsINTEGERRequests Cloudflare served for the zone that day, people and bots together.
page_viewsINTEGERCloudflare page views: successful HTML responses, bots included.
cached_bytesINTEGERBytes served from Cloudflare's cache that day.
cached_requestsINTEGERRequests served from Cloudflare's cache that day.
encrypted_requestsINTEGERRequests that day sent over an encrypted (HTTPS) connection.

Hourly Traffic schema

Cloudflare Analytics Hourly Traffic schema

8 fieldsTime seriescloudflare_hourly_traffic

The zone's exact hourly totals from Cloudflare's hourly rollup: requests, page views, unique client IPs, bytes, cached requests and threats.

Questions this table answers

  • At which hours of the day does traffic peak, and does the cache keep up?
  • Which hours had a burst of threats?
Cloudflare Analytics Hourly Traffic fields
FieldTypeDescription
dateDATEUTC day the row counts.
hourPKDATETIMEStart of the UTC hour.
bytesINTEGERBytes Cloudflare sent to clients in the row's period and split.
threatsINTEGERRequests Cloudflare counted as threats in the row's period and split.
uniquesINTEGERUnique client IPs in that hour; the same IP in two hours counts in both, so hours do not add up to the day.
requestsINTEGERRequests Cloudflare served in the row's period and split, people and bots together.
page_viewsINTEGERCloudflare page views in the row's period: successful HTML responses, bots included.
cached_requestsINTEGERRequests Cloudflare served from its cache in the row's period.

Security Events schema

Cloudflare Analytics Security Events schema

14 fieldsTime seriescloudflare_security_events

Requests Cloudflare blocked, challenged or logged under a security rule: WAF managed rules, the browser integrity check, the security level and others.

Questions this table answers

  • Which rules block the most requests, and on which paths?
  • Which countries do blocked requests come from, against all their traffic that day?
  • Are challenges hitting real user agents on normal pages?
Cloudflare Analytics Security Events fields
FieldTypeDescription
dateDATEUTC day the row counts.
hostSTRINGHost name the request was sent to.
pathSTRINGRequest path without the query string.
actionSTRINGWhat Cloudflare did with the request, e.g. block, managed_challenge, js_challenge or log.
methodSTRINGHTTP method of the request.
sourceSTRINGWhich Cloudflare security feature acted, e.g. firewallManaged (WAF managed rules), bic (browser integrity check), securitylevel.
statusINTEGERHTTP status Cloudflare returned.
countrySTRINGClient country as Cloudflare reports it: a two-letter code; XX when unknown.
rule_idSTRINGID of the rule that fired; read it together with source.
ray_namePKSTRINGCloudflare Ray ID of the request.
event_timeDATETIMETime of the event (UTC).
user_agentSTRINGUser agent string the client sent.
descriptionSTRINGCloudflare's description of the rule that fired.
sample_intervalFLOATCloudflare adaptive sampling: 1 = every event is a row; above 1, one row stands for that many events.

What Cloudflare Analytics data answers

What Cloudflare Analytics data answers

Across the tables

  • Which pages do AI crawlers read most, and which crawlers does Cloudflare verify and which only claim a bot name?
  • Did 404s or security events grow this month, and from which countries and rules?
  • What share of the zone's daily requests is served from cache, and how does it change by hour?

Recent updates

Other data sources

Trust

The Data Partner You Can Trust

users

166K Source: Internal OWOX data as of 2026-11-15

Executives and data analysts across 20+ industries

G2 rating

4.9★2

“A trusted data analytics partner” — verified review

npm installs

171K3

In Open Source We Trust

Customers