Request a demo

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 · Wikimedia · US · Sizes measured November 23, 2026

28tables
27.9 TiBin the tables below
647,743,675,978rows
$174.51to scan every column once, on-demand

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.

TableRowsSizeFull scanLayout
pageviews_2025
Hourly pageviews for the year.
64,635,119,0922.7 TiB$16.91Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2024
Hourly pageviews for the year.
58,731,276,4242.4 TiB$15.09Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2019
Hourly pageviews for the year.
57,010,621,0482.3 TiB$14.44Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2023
Hourly pageviews for the year.
55,624,014,1992.3 TiB$14.14Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2020
Hourly pageviews for the year.
55,917,037,3332.3 TiB$14.09Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2018
Hourly pageviews for the year.
55,571,590,7052.2 TiB$14.05Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2017
Hourly pageviews for the year.
54,489,222,9922.2 TiB$13.73Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2021
Hourly pageviews for the year.
53,288,623,3502.1 TiB$13.42Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2016
Hourly pageviews for the year.
53,314,598,0932.1 TiB$13.37Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2022
Hourly pageviews for the year.
52,686,252,9692.1 TiB$13.34Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
pageviews_2026
Hourly pageviews for the current year, still growing.
49,515,666,0522.1 TiB$12.87Partitioned: by day on datehour, partition filter required · Clustered: wiki, title
wikidata
Wikidata entities with labels, sitelinks and common properties.
90,722,3471.6 TiB$9.70Partitioned: by day on fake_date · Clustered: numeric_id
pageviews_2015
Hourly pageviews for the year.
36,868,931,3741.5 TiB$9.36Partitioned: by day on datehour, partition filter required · Clustered: wiki, title

Full scan = every column of the table at the on-demand list price of $6.25 per TiB, before your free TiB each month. Selecting fewer columns costs proportionally less. See BigQuery pricing.

Example queries

Most viewed English Wikipedia articles on one day

Scans 822 MiB · under $0.01 on-demand

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

Scans 17.5 GiB · $0.11 on-demand

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)

Scans 210 GiB · $1.28 on-demand

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

Scans 8.8 GiB · $0.05 on-demand

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 on datehour. 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 datehour itself, for example DATE(datehour) = '2026-11-01' or a datehour range. 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 wiki and title filters to benefit from clustering.
  • The dump files use separate project codes for the mobile site (such as en.m), so wiki = 'en' covers desktop views only. Add the mobile code to count both.
  • wikidata is 1.6 TiB because of its repeated fields. Select named columns such as en_label and en_description rather 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.

All public datasets · BigQuery cost queries · Pricing calculator

Cut BigQuery spend without guessing

Masthead attributes compute and storage cost to every project, user, pipeline and table, finds unused and dead-end tables, and shows where editions or on-demand pricing is cheaper. Mnemonic cut its BigQuery compute cost by 20% within 24 hours of onboarding.