Request a demo

Public dataset · Health and life sciences

COVID-19 Open Data in BigQuery

Daily COVID-19 time series by country and region: cases, deaths, tests, vaccinations, hospitalisations, government response, mobility, weather, demographics and health indicators. One table of 22.8 million rows and 701 columns (11.7 GiB): select a few columns and a query drops from 11 GiB to about 0.6 GiB.

bigquery-public-data.covid19_open_data · Google COVID-19 Open Data project (aggregated public sources) · US · Sizes measured November 23, 2026

2tables
14.7 GiBlogical size
22,756,333rows
$0.09to scan every column once, on-demand

The dataset contains daily time-series data related to COVID-19 for countries and their subdivisions, as the dataset description says, compiled by the COVID-19 Open Data project on GitHub (GoogleCloudPlatform/covid-19-open-data), which lists the original sources.

covid19_open_data has one row per location_key and date. aggregation_level tells you the geography: 0 country, 1 first-level subdivision (state, province), 2 second-level (county). The 701 columns combine epidemiology (new_confirmed, cumulative_deceased, cumulative_tested), vaccinations, hospitalisations, government response indices (stringency_index, school_closing), mobility, weather, demographics (population, age bands), economy and health indicators, many repeated per row as static attributes.

compatibility_view reshapes the data into the column names of older COVID-19 datasets (province_state, country_region, confirmed, deaths). The table metadata shows it was last modified on 2025-06-23.

Tables and sizes

TableRowsSizeFull scanLayout
covid19_open_data
One row per location and date, 701 columns.
22,756,33311.7 GiB$0.07None
compatibility_view
Older column layout (province_state, country_region, confirmed, deaths). View: BigQuery reports no row count for views; size is the dry-run estimate for SELECT *.
03.0 GiB$0.02None

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

One country with SELECT * (expensive)

Scans 11.4 GiB · $0.07 on-demand

All 701 columns for the United Kingdom: 11.37 GiB, even though the filter keeps only one location's rows.

SELECT *
FROM `bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE location_key = 'GB';

One country, four columns (cheap)

Scans 649 MiB · under $0.01 on-demand

Same rows with date, new cases, new deaths and full vaccinations: 649 MiB, about 18 times less.

SELECT
  date,
  new_confirmed,
  new_deceased,
  cumulative_persons_fully_vaccinated
FROM `bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE location_key = 'GB'
ORDER BY date;

Countries with the highest COVID-19 death rate

Scans 662 MiB · under $0.01 on-demand

Country-level rows only (aggregation_level = 0), largest cumulative deaths over population.

SELECT
  country_name,
  MAX(cumulative_deceased) AS deaths,
  MAX(population) AS population,
  ROUND(MAX(cumulative_deceased) / MAX(population) * 100000, 1) AS deaths_per_100k
FROM `bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE aggregation_level = 0
  AND population >= 1000000
GROUP BY country_name
ORDER BY deaths_per_100k DESC
LIMIT 10;

US states by confirmed cases

Scans 616 MiB · under $0.01 on-demand

First-level subdivisions of the US (aggregation_level = 1).

SELECT
  subregion1_name AS state,
  MAX(cumulative_confirmed) AS confirmed
FROM `bigquery-public-data.covid19_open_data.covid19_open_data`
WHERE country_code = 'US'
  AND aggregation_level = 1
GROUP BY state
ORDER BY confirmed DESC
LIMIT 10;

Querying it cheaply

  • The table is neither partitioned nor clustered. WHERE location_key = 'GB' or a date range filters rows but still reads every value of each column you reference, so cost depends only on columns.
  • With 701 columns, SELECT * costs 11.37 GiB per query. Four or five columns cost about 0.6 GiB.
  • compatibility_view is not cheaper: a SELECT * on it scans 3.02 GiB, because the view groups the base table to work out the aggregation level.
  • If you chart the same few metrics repeatedly, save them once into your own small table and query that.

FAQ

How much does it cost to query the COVID-19 Open Data dataset?

A query that selects a handful of columns scans about 0.6 GiB. SELECT * scans 11.37 GiB. Both are within the 1 TiB monthly free tier, but SELECT * in a dashboard that refreshes often adds up quickly.

Is the covid19_open_data dataset free?

Google pays for storing public datasets, so you never pay storage for them. You pay only for the bytes your queries scan, billed to your own project at the on-demand rate, and the first 1 TiB scanned each month is free. See BigQuery pricing.

Is the COVID-19 Open Data table still updated?

The table was last modified on 2025-06-23 according to its metadata. Check MAX(date) per location, because many sources stopped reporting earlier than that.

Why do I get duplicate totals when I sum all rows for a country?

The table mixes geographic levels: a country row, its state rows and its county rows. Filter on aggregation_level (0 for country, 1 for states, 2 for counties) before you aggregate.

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.