Public dataset · Web, code and analytics
Wikipedia Pageviews in BigQuery
The wikipedia dataset has hourly pageview counts for every Wikipedia article from 2015 on, one table per year at 1.5 to 2.7 TiB each, plus a 1.6 TiB Wikidata table. Pageview tables require a filter on datehour and are clustered by wiki and title, so one day of English pages reads under 1 GiB.
bigquery-public-data.wikipedia loads the Wikimedia pageview dumps into one table per year, pageviews_2015 to pageviews_2026. The table descriptions name the source (the pageview dumps at dumps.wikimedia.your.org) and the layout: partitioned by date, clustered by wiki and title. Each row is an article, a project and an hour, with four columns: datehour, wiki (the project code from the dump, en for English Wikipedia), title (with underscores instead of spaces) and views. The current year's table is updated as new dumps arrive; earlier years are closed.
wikidata holds Wikidata entities with English, Japanese, Spanish, French and German labels, descriptions and article links, plus repeated fields for sitelinks, aliases and common properties such as instance_of, country and occupation. It was last rebuilt in November 2026.
The dataset also has 15 table_* tables from 2021, topic subsets such as bands, writers and composers. Ten of them are empty, and none are listed below.
Tables and sizes
The dataset has 28 tables; the main ones are listed.
| Table | Rows | Size | Full scan | Layout |
|---|---|---|---|---|
pageviews_2025Hourly pageviews for the year. | 64,635,119,092 | 2.7 TiB | $16.91 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2024Hourly pageviews for the year. | 58,731,276,424 | 2.4 TiB | $15.09 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2019Hourly pageviews for the year. | 57,010,621,048 | 2.3 TiB | $14.44 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2023Hourly pageviews for the year. | 55,624,014,199 | 2.3 TiB | $14.14 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2020Hourly pageviews for the year. | 55,917,037,333 | 2.3 TiB | $14.09 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2018Hourly pageviews for the year. | 55,571,590,705 | 2.2 TiB | $14.05 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2017Hourly pageviews for the year. | 54,489,222,992 | 2.2 TiB | $13.73 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2021Hourly pageviews for the year. | 53,288,623,350 | 2.1 TiB | $13.42 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2016Hourly pageviews for the year. | 53,314,598,093 | 2.1 TiB | $13.37 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2022Hourly pageviews for the year. | 52,686,252,969 | 2.1 TiB | $13.34 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
pageviews_2026Hourly pageviews for the current year, still growing. | 49,515,666,052 | 2.1 TiB | $12.87 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
wikidataWikidata entities with labels, sitelinks and common properties. | 90,722,347 | 1.6 TiB | $9.70 | Partitioned: by day on fake_date · Clustered: numeric_id |
pageviews_2015Hourly pageviews for the year. | 36,868,931,374 | 1.5 TiB | $9.36 | Partitioned: by day on datehour, partition filter required · Clustered: wiki, title |
Example queries
Most viewed English Wikipedia articles on one day
The DATE(datehour) filter picks one daily partition, and wiki = 'en' lets BigQuery skip clustered blocks for other projects.
SELECT title, SUM(views) AS views
FROM `bigquery-public-data.wikipedia.pageviews_2026`
WHERE DATE(datehour) = '2026-11-01'
AND wiki = 'en'
AND title != 'Main_Page'
GROUP BY title
ORDER BY views DESC
LIMIT 20;Daily views of one article for a month
A month of partitions for a single title. On clustered tables the dry run is an upper bound: clustering on wiki and title can make the billed bytes lower when the query runs.
SELECT DATE(datehour) AS day, SUM(views) AS views
FROM `bigquery-public-data.wikipedia.pageviews_2026`
WHERE datehour >= '2026-10-01' AND datehour < '2026-11-01'
AND wiki = 'en'
AND title = 'BigQuery'
GROUP BY day
ORDER BY day;The same article over a full year (expensive)
Twelve times the partitions of the monthly query, against the 2025 table. If you track articles over time, aggregate each day once into your own table instead of rescanning.
SELECT DATE(datehour) AS day, SUM(views) AS views
FROM `bigquery-public-data.wikipedia.pageviews_2025`
WHERE datehour >= '2025-01-01' AND datehour < '2026-01-01'
AND wiki = 'en'
AND title = 'BigQuery'
GROUP BY day
ORDER BY day;Look up a Wikidata entity by English label
Reading only the English label columns. Selecting the repeated labels, sitelinks or aliases fields multiplies the bytes.
SELECT id, en_label, en_description, en_wiki
FROM `bigquery-public-data.wikipedia.wikidata`
WHERE en_label = 'BigQuery';Querying it cheaply
- Every
pageviews_*table requires a partition filter ondatehour. A query without one fails with cannot query without a filter over the partition column and is not billed. - The filter has to be on
datehouritself, for exampleDATE(datehour) = '2026-11-01'or adatehourrange. Filters on other columns do not prune partitions. - One year is a separate table of 1.5 to 2.7 TiB. A query over a whole year for one title still reads over 200 GiB, so narrow the date range first and add
wikiandtitlefilters to benefit from clustering. - The dump files use separate project codes for the mobile site (such as
en.m), sowiki = 'en'covers desktop views only. Add the mobile code to count both. wikidatais 1.6 TiB because of its repeated fields. Select named columns such asen_labelanden_descriptionrather than*.
FAQ
How much does it cost to query Wikipedia pageviews in BigQuery?
One day of English Wikipedia reads about 822 MiB. A month for one article reads about 17.5 GiB, and a full year about 210 GiB, around $1.28 at the $6.25 per TiB on-demand list price before the free TiB. An unfiltered query is not possible because a partition filter is required.
Is the Wikipedia dataset free to use?
Yes for storage: the table sits in the bigquery-public-data project and Google pays to store it. You pay for the queries you run from your own project. On-demand, the first 1 TiB scanned each month is free, then you pay per TiB scanned (see BigQuery pricing).
Why does my Wikipedia pageviews query fail with a partition filter error?
The pageviews_* tables have require_partition_filter set. Add a condition on datehour, such as datehour >= '2026-10-01' AND datehour < '2026-11-01'.
How up to date are the Wikipedia pageviews?
The current year's table, pageviews_2026, was last modified on the day these sizes were measured. Earlier yearly tables are complete and no longer change.
Related datasets
All public datasets · BigQuery cost queries · Pricing calculator
