# oxylabs/how-to-scrape-google-trends

Learn step-by-step how to scrape Google Trends data and make a result comparison using Python and Oxylabs SERP API. Extract keywords, their popularity, breakdown by region, related queries, and more.

Repository: https://github.com/oxylabs/how-to-scrape-google-trends
Canonical: https://ross.abutalabs.com/products/how-to-scrape-google-trends
Homepage: https://oxylabs.io/products/scraper-api/serp
Language: Python
License Family: other
Topics: google, google-trend, google-trend-api, google-trend-strategy, google-trends, google-trends-api, google-trends-crawler, google-trends-scraper, python, scraper, scraper-api, scraping, scraping-api, web-scraping
Last push: 2025-12-31T06:50:50+00:00

## Health v2 (maintenance only)
Score: 50/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 60, release rhythm 35, longevity 54
- inputs: {"age_days": 757, "days_push": 245, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: no_releases, no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 2853, forks 17 (observed 2026-08-28T04:07:25.780206+00:00)

## What it is
A step-by-step tutorial repository showing how to scrape Google Trends data (keywords, popularity, regional breakdown, related queries) using Python, Requests, Pandas, and Oxylabs' paid SERP Scraper API. It includes example scripts for sending requests, saving results to CSV, and comparing results.

## Use cases
- scrape google trends data with python
- extract keyword popularity from google trends
- compare google trends results by region
- get related queries from google trends
- keyword research for seo using trends data
- export google trends data to csv

## When to choose
- you want a guided walkthrough of scraping Google Trends via Oxylabs SERP API
- you already have or plan to buy an Oxylabs subscription and want working example code
- you need copy-paste Python scripts for trends data extraction and CSV comparison

## When to avoid
- you need a free, self-contained scraper without a paid API subscription
- you want a production library or CLI tool rather than tutorial code
- you prefer scraping Google Trends directly with pytrends or your own HTTP requests

## Facets
- artifact type: learning-resource
- maturity: active
- function: web-scraping, http-client, data-science
- domain: crawlers, analytics, tutorials, developer-tools
- platform: python, cli
- tags: google-trends, serp-api, keyword-research, tutorial, marketing, seo, pandas, paid-api-dependency

## Member repositories
- oxylabs/how-to-scrape-google-trends (main) score 50

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:07:25.780206+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T07:36:48.728343+00:00, confidence not recorded.
  - readme: https://github.com/oxylabs/how-to-scrape-google-trends (fetched 2026-08-28T04:07:25.780206+00:00, sha 8de7c85be392)
  - homepage: https://oxylabs.io/products/scraper-api/serp (fetched 2026-08-29T09:52:32.817707+00:00, sha fb17d5ca5301)
  - site_page: https://oxylabs.io/pricing/residential-proxy-pool (fetched 2026-08-29T09:52:32.827293+00:00, sha d8c3539d674c)
  - site_page: https://oxylabs.io/pricing/datacenter-proxies (fetched 2026-08-29T09:52:32.830573+00:00, sha a39ab34a07cb)
  - site_page: https://oxylabs.io/pricing/isp-proxies (fetched 2026-08-29T09:52:32.833025+00:00, sha 87b5f4f7021c)
  - site_page: https://oxylabs.io/pricing/dedicated-isp-proxies (fetched 2026-08-29T09:52:32.835102+00:00, sha 509c3990bb5b)
  - site_page: https://oxylabs.io/products/mobile-proxies/pricing (fetched 2026-08-29T09:52:32.837752+00:00, sha 664f4e0f92c0)
  - site_page: https://oxylabs.io/products/scraper-api/web/pricing (fetched 2026-08-29T09:52:32.839781+00:00, sha e1549cc41732)
  - site_page: https://oxylabs.io/pricing/headless-browser (fetched 2026-08-29T09:52:32.841652+00:00, sha 9e91f81ccdea)
  - site_page: https://oxylabs.io/products/web-unblocker/pricing (fetched 2026-08-29T09:52:32.843382+00:00, sha 156416b731b5)
- Data as of 2026-08-30T08:39:29.467469+00:00.
