Google Cloud | Google Trends

Top 25 Google Search Terms, Now In BigQuery

Today we’re announcing preview availability of a new public dataset for Google Trends. For the first time we’re bringing Google-owned Search data into Google Cloud Datasets for convenient analysis in BigQuery, or through your favorite business intelligence tools. 

For over a decade, Google Trends has provided a sample of Google Search data. Continuing to lead with a privacy-first mindset, the data is anonymized, indexed, normalized, and aggregated prior to publication. Access to Google Trends data has been limited to the Google Trends website and requires manual processing to export the underlying dashboard data to derive additional analytical insights. Now, we’re streamlining access to this dataset by surfacing and allowing direct interaction with BigQuery in a safe, secure and private manner. 

This BigQuery dataset, also available soon in Analytics Hub, allows users to measure interest in a particular topic or search term across Google Search, from around the United States, down to the city-level. Whether you’re a marketer, an executive, or an operations manager, you can now easily ask what people are searching for to inform your analyses. Say you’re a merchandiser in retailing, and want to ensure your end-cap displays are relevant to your local audience, you can take signals from what people are looking for in your market area to inform what items to place. Or, imagine you’re in charge of your product’s R&D initiatives and want to understand what new features could be incorporated into an existing product based on what people are searching for. What’s popular and relevant might even inspire a new product line for your team. Terms that appear in these datasets could be an indicator of what you should be paying attention to.


“Google Search Trends data has always been an important tool for our WPP agency data teams. At WPP we believe that data variety is a superpower which is why we are excited to use the new Trends dataset availability within BigQuery, plus the launch of Analytics Hub. The best creativity in the world is informed by data insights, and influenced by what people search for, so the operational efficiencies we’ll gain via the Analytics Hub and the insights we can drive with Trends data are just phenomenal.”—Di Mayze Global Head of Data and AI, WPP

How the Google Trends dataset works

To remain true to Google’s mission to “organize the world’s information and make it universally accessible and useful,” we are sharing some of this data in a safe, private, and secure manner. In this initial preview, we will provide popular trending terms through Google Cloud Datasets. The dataset surfaces the Top 25 stories and Top 25 Rising queries for the United States in a BigQuery dataset, available to access from the Google Cloud Marketplace.

Google Trends dataset now available in the Google Cloud Marketplace

Top stories are indicative of the most searched topics for the day throughout the United States, whereas top rising provides a view of what search terms have surged in popularity over the past day. Each term will be segmented by Nielsen’s Designated Market Area® (DMA) and by the week, enriched with a historical backfill over a rolling five year period.

As a new set of top terms and top rising queries is generated daily, data will be inserted into a new partition of their respective table. Each set of top stories and top rising queries will persist and remain static until its expiration date of 30 days is reached (e.g. each table partition has a time-to-live of 30 days). Learn more about the schema of each table in the dataset listing.   

Getting started with the Google Trends dataset

For top and rising terms stored in the Google Trends dataset, users can obtain access without charges of up to 1TB/month in queries and up to 10GB/month in storage through BigQuery’s free tier. SQL queries above these thresholds are subject to regular BigQuery pricing. Users can also leverage the BigQuery sandbox to access BigQuery without the need to create a Google Cloud account or provide credit card information, subject to the sandbox’s limits and BigQuery’s free tier thresholds. 

To begin exploring these public dataset tables, simply query the top 25 and top 25 rising tables from the BigQuery SQL UI. To minimize the data scanned and processed, utilize the partition filter in your query:

SELECT * FROM `bigquery-public-data.google_trends.top_terms`<br>WHERE refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)

To compare and overlay the most popular search trends with the top rising, join the tables on refresh_date and week (we can exclude DMA in the join here because the same top rising set exists for all DMAs for a given refresh_date):

WITH rising AS (<br>  SELECT<br>    week,<br>    refresh_date,<br>    ARRAY_AGG(DISTINCT term) AS terms<br>  FROM `bigquery-public-data.google_trends.top_rising_terms`<br>  WHERE refresh_date = DATE_SUB(CURRENT_DATE(), INTERVAL 1 DAY)<br>  GROUP BY<br>    week,<br>    refresh_date)<br> <br>SELECT<br>  top.refresh_date,<br>  top.week,<br>  top.dma_name,<br>  top.dma_id,<br>  top.term AS top_term,<br>  top.score AS top_score,<br>  top.rank AS top_rank,<br>  rising.terms AS rising_terms,<br>FROM `bigquery-public-data.google_trends.top_terms` top<br>JOIN rising<br>ON<br>  top.refresh_date = rising.refresh_date<br>  AND top.week = rising.week<br>ORDER BY<br>  week desc, refresh_date desc;<br>

Outside of the BigQuery UI, you can also interact with this dataset from familiar BI tools like Looker, Data Studio or with solutions from our partner ecosystem. We’ve built an example Looker dashboard for you to see the current Top 25 Google Search terms, ranked by search volume (1 through 25) and with average search index score across the geographic areas (DMAs) in which it was searched. Have a look. What surprised you most? 

What’s next for Google Cloud Datasets?

This is just the beginning of our journey in making Google’s first-party data more accessible to organizations to enhance their analytics initiatives. Stay tuned for a future blog post on reference patterns and use cases with Google Trends data, as well as for updates on product roadmap and other dataset solutions offered through Google Cloud Datasets. In the meantime, explore the new Google Trends dataset in your own project, or if you’re new to BigQuery spin up a project using the BigQuery sandbox.

By: Maggy Hu (Product Manager and Customer Engineer) and Antonio Lobato (Software Engineering Manager)
Source: Google Cloud Blog

For enquiries, product placements, sponsorships, and collaborations, connect with us at We'd love to hear from you!

Our humans need coffee too! Your support is highly appreciated, thank you!

Previous Article

Cloud SQL For SQL Server: Database Administration Best Practices

Next Article

Free Your Business From Ransomware With Chrome OS

Related Posts