Skip to main content

google-trends-client

PyPI License: MIT

Google Trends API for Python - managed JSON, not a scraper

Presets source: "google search" for convenience. One API key → 30+ sources - override source= anytime. Quota is per key, not per package.

Get a free API key → · Docs →

Install

pip install google-trends-client

Quickstart

from google_trends_client import TrendsAPI

client = TrendsAPI()  # or TrendsAPI(api_key="...") / TRENDSAPI_KEY

series = client.get_time_series("air fryer")
print(series[-1].date, series[-1].value)

g = client.get_growth("air fryer", percent_growth=["12M"])
print(g.results[0].growth, g.results[0].direction)

Auth & quota

  1. Free key: trendsapi.ai/#get-key
  2. Pass api_key= or set TRENDSAPI_KEY
  3. Only successful 200 responses count

Links

License

MIT

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

google_trends_client-1.0.0.tar.gz (3.0 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

google_trends_client-1.0.0-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page