Back to feed
Dev.to
Dev.to
7/3/2026
Scrape Google Trends Without an API Key (Including the Scraper Flag Google Hands You)

Scrape Google Trends Without an API Key (Including the Scraper Flag Google Hands You)

Short summary

Google Trends has no official API, but its internal keyless JSON endpoints are publicly callable. Obtain an NID cookie from a 429 response on the explore page, then use widget tokens to access timeline, geographic, and search-query data. Google labels scraper sessions and blocks the related-topics widget, but other data streams work reliably at scale.

  • Google Trends API is undocumented but openly accessible via keyless JSON endpoints
  • Requires NID cookie obtained from a 429 response and widget tokens from the explore endpoint
  • Related-topics data blocked for scraper sessions; other data (timeline, regions, related queries) works reliably

Generated with AI, which can make mistakes.

Is this a good recommendation for you?

Comments

Failed to load comments. Please try again.

Explore more