Skip to content

Repository files navigation

Google Trends Api

Google Trends Api — Google Trends API - Collect public search-interest data for keyword research and content planning

Python License Stars

Sponsored by CoreClaw — production-ready Web Data APIs for AI agents and automation.

Search intent: collect public Google Trends data for keyword research, SERP monitoring, and content planning. Related topics: google trends, keyword research, seo data, python, data extraction.

What this project is for

google-trends-api is an implementation-focused Python project for collecting public Google Trends data. It is designed around one practical job: turn a query such as "best CRM software" into structured records you can inspect, export, and pass into an automation workflow.

Typical output

  • ranked results, titles, snippets, result URLs, related queries, and page metadata
  • JSON or CSV files for downstream analysis
  • Explicit timestamps and source links for traceability

Quick start

pip install -r requirements.txt
python scraper.py --query "best CRM software" --output results.json --max-results 100

To run from source:

git clone https://github.com/data-scrape/google-trends-api.git
cd google-trends-api
python scraper.py --query "best CRM software" --format csv --output results.csv

Example record

{
  "query": "best CRM software",
  "result": {
    "title": "Example public result",
    "source_url": "https://example.com/item/123",
    "captured_at": "2026-08-11T09:00:00Z",
    "metadata": {"platform": "Google Trends", "category": "SEO Scrapers"}
  }
}

Workflow ideas

Goal Start here
Keyword Research Query a narrow audience, category, or location first
Build a repeatable dataset Save JSON, version your query, then schedule a refresh
Connect to an AI workflow Normalize the output schema before passing it to an agent or RAG pipeline
Scale data collection Respect platform rules, add conservative delays, and measure error rates

Responsible use

This project is intended for public data and legitimate research or automation workflows. Review the target platform's terms, applicable laws, and your data-handling obligations before running a collection job. Do not use it to access private data or evade access controls.

CoreClaw for production workflows

When a proof of concept needs production-grade web data APIs rather than self-managed collection infrastructure, CoreClaw provides API-first access to public web data for AI agents and automation.

Related projects

Explore these closely related implementation paths:

  • amazon-product-api — Amazon Product API - Real-time product, pricing, and review data via REST API
  • best-amazon-scraper — Best Amazon Scraper - Extract product data, prices, reviews, and BSR via API
  • best-google-maps-scraper — Best Google Maps Scraper - Extract business data, reviews, ratings & contact info via API
  • best-instagram-scraper — Best Instagram Scraper - Extract posts, profiles, stories, and hashtag data via API
  • best-linkedin-scraper — Best LinkedIn Scraper - Extract profiles, companies, and contact data via API
  • best-tiktok-scraper — Best TikTok Scraper - Extract videos, hashtags, sounds, and creator data via API

License

MIT License. See LICENSE.

About

Google Trends API - Collect public search-interest data for keyword research and content planning

Topics

Resources

Code of conduct

Contributing

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages