Request a demo

Public dataset · Web, code and analytics

Google Trends in BigQuery

The google_trends dataset publishes Google's top 25 and top 25 rising search terms each day, for US metro areas and for regions in other countries. Every table is partitioned by refresh_date: filtering on the latest refresh reads about 35 MiB, while skipping the filter reads 1.3 GiB for the same answer.

bigquery-public-data.google_trends · Google · US · Sizes measured November 23, 2026

4tables
38.8 GiBlogical size
492,350,873rows
$0.24to scan every column once, on-demand

bigquery-public-data.google_trends exposes anonymized, aggregated and indexed search data from Google Trends, so you can query top terms in SQL instead of through the Trends website. It is published by Google and refreshed daily; all four tables were last modified on the day these sizes were measured.

top_terms is described as the daily top 25 terms in the United States with score, ranking, time and designated market area (DMA). top_rising_terms is the same for the fastest-rising terms and adds percent_gain. international_top_terms and international_top_rising_terms cover other countries, by country_code and region.

Each daily refresh lands in its own refresh_date partition and contains weekly rankings (week) for many past weeks, so the same term and week repeat across refreshes. Within a refresh, a term has one row per DMA or region, which is why the examples use DISTINCT for national rankings.

Tables and sizes

TableRowsSizeFull scanLayout
international_top_rising_terms
Top rising terms by country and region.
210,717,71817.9 GiB$0.11Partitioned: by day on refresh_date
international_top_terms
Top 25 terms by country and region.
204,310,10515.4 GiB$0.09Partitioned: by day on refresh_date
top_rising_terms
Daily top rising terms in the US, with percent gain, by DMA.
39,842,2503.0 GiB$0.02Partitioned: by day on refresh_date
top_terms
Daily top 25 terms in the US, with score and rank, by DMA.
37,480,8002.6 GiB$0.02Partitioned: by day on refresh_date

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

Top 25 US search terms for the latest week

Scans 34.6 MiB · under $0.01 on-demand

refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY) is a constant expression, so BigQuery reads one partition. The subquery picks the newest week inside that refresh.

SELECT DISTINCT term, rank
FROM `bigquery-public-data.google_trends.top_terms`
WHERE refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
  AND week = (
    SELECT MAX(week)
    FROM `bigquery-public-data.google_trends.top_terms`
    WHERE refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
  )
ORDER BY rank;

The same list without a refresh_date filter (expensive)

Scans 1.3 GiB · under $0.01 on-demand

Every partition is read, and terms from older refreshes mix in. It costs about 38 times more than the filtered version.

SELECT DISTINCT term, rank
FROM `bigquery-public-data.google_trends.top_terms`
WHERE week = (SELECT MAX(week) FROM `bigquery-public-data.google_trends.top_terms`)
ORDER BY rank;

Fastest-rising US terms in the latest refresh

Scans 48.3 MiB · under $0.01 on-demand

SELECT term, MAX(percent_gain) AS percent_gain
FROM `bigquery-public-data.google_trends.top_rising_terms`
WHERE refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
GROUP BY term
ORDER BY percent_gain DESC
LIMIT 25;

The number one term in every US metro area

Scans 50.5 MiB · under $0.01 on-demand

SELECT dma_name, term, score
FROM `bigquery-public-data.google_trends.top_terms`
WHERE refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
  AND week = (
    SELECT MAX(week)
    FROM `bigquery-public-data.google_trends.top_terms`
    WHERE refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
  )
  AND rank = 1
ORDER BY dma_name;

Top terms in the United Kingdom

Scans 223 MiB · under $0.01 on-demand

The international tables are about six times larger than the US ones, so the refresh_date filter matters even more here.

SELECT DISTINCT term, rank
FROM `bigquery-public-data.google_trends.international_top_terms`
WHERE refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)
  AND country_code = 'GB'
ORDER BY rank
LIMIT 25;

Querying it cheaply

  • Always filter on refresh_date. It is the partitioning column of every table and the only filter that reduces bytes.
  • Use a constant date such as DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY). A filter like refresh_date = (SELECT MAX(refresh_date) FROM ...) is dynamic, and BigQuery reads all partitions to evaluate it.
  • Filters on country_code, dma_name or term return fewer rows but do not reduce bytes, because the tables are not clustered.
  • If today's refresh has not landed yet, yesterday's partition is the newest. Checking with a dry run costs nothing: an empty partition reports 0 bytes.

FAQ

How much does it cost to query Google Trends in BigQuery?

A query on one refresh of the US tables reads about 35 to 50 MiB, and one refresh of an international table a few hundred MiB. Without a refresh_date filter, the US top terms table reads 1.3 GiB per query. All of these fit in the free 1 TiB a month.

Is the Google Trends dataset free?

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).

How often is the Google Trends dataset updated?

Daily. Each update adds a new refresh_date partition, and all four tables were last modified on the day these sizes were measured.

Why do I get duplicate terms from google_trends.top_terms?

A term appears once per DMA in each refresh, and again in every later refresh. Filter on a single refresh_date and week, and use DISTINCT term, rank for the national list.

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.