How to Scrape Google Trends Data Without an API Key Using Its Hidden JSON Endpoints
Google Trends has no official API, but its website runs on undocumented keyless JSON endpoints that return the same data shown in the UI. The process involves two calls — first to an 'explore' endpoint to retrieve signed widget tokens, then to widget-specific data endpoints using those tokens. A valid NID cookie is required and can be obtained from the initial explore page request, even when that request returns a 429 error. Google internally flags keyless sessions with a 'USER_TYPE_SCRAPER' label, which restricts the related topics widget to empty results, though related queries, timelines, and regional data remain fully accessible. Developers are advised to space out requests by a few seconds and refresh the cookie on 429 errors to keep the scraper running reliably without proxies.
This is an AI-generated summary. ShortSingh links to the original source for the complete article.

Discussion (0)
Log in to join the discussion and vote.
Log in