Google Trends API in Python
Interest over time, by region and rising related queries for up to 5 keywords, as JSON.
Steps
- Get an API token. Apify Console → Settings → API & Integrations. Export it as
APIFY_TOKEN. - Install the client.
pip install apify-client - Write the comparison. Comma-separated terms in one string share one 0–100 scale, up to 5.
- Run the actor. Call
tidewell/google-trends-api; one row per term comes back. - Load into pandas. Each row's
interestOverTimeis a list of dated points.
Input
Run it
Output
Run on 9 November 2026: 2 search terms, $0.006 at list price.
Options
Use it from Claude or ChatGPT
FAQ
Does Google Trends have an API?
Not one that's generally available. An official Trends API has been in limited alpha since 2025. The actor reads the same public data the Trends website shows.
Will the numbers match trends.google.com?
Usually. Google samples its data, so values can move a few points between requests. Each row has an exploreUrl for the same view.
Pricing
Pay per event, from the actor's live pricing on 9 November 2026.