Menu

pytrends keeps failing with 429? How I get Google Trends data in Python now
📰

pytrends keeps failing with 429? How I get Google Trends data in Python now

DEV Community: api·Data Xplorer·1 day ago
#FgmKa112
#devtoapi#devto#dev#google#trends
Long article (898 words) — no AI summary yet.
Reading 0:00
15s threshold

If you have used pytrends , you know the moment: the script worked yesterday, today it only returns TooManyRequestsError: 429 . You add sleeps, rotate user agents, try a proxy, and it works for a while. The library is no longer maintained, and Google keeps tightening the limits.

Google announced an official Trends API in 2025, but it is in alpha with access on request. So for most of us the options are the website, an unofficial library, or a hosted scraper that deals with the rate limits for you.

This post shows the third option in Python, with real output. I built the tool it uses, a Google Trends Scraper on Apify, so take this as a field report from the author.

Setup

pip install apify-client export APIFY_TOKEN = "your_apify_token" # free account, Settings > API & Integrations

Enter fullscreen mode

Exit fullscreen mode

Interest over time, by region, and related queries

One call per keyword:

import os from apify_client import ApifyClient

client = ApifyClient ( os .…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.