Skip to main content

pytrends alternative

Managed Google Trends client for Python. Drop-in mindset for archived pytrends: history, growth, and 30+ other sources via the Trends API.

License: MIT PyPI

Key: trendsapi.ai/#get-key. Full contract: trendsapi-ai/trendsapi.

JS: pytrends-alternative.

Install

pip install pytrends-alternative
from pytrends_alternative import TrendsAPI

client = TrendsAPI()  # TRENDSAPI_KEY
series = client.get_time_series("electric vehicle")
growth = client.get_growth("electric vehicle", percent_growth=["12M"])
hot = client.get_live(limit=10)

Keyword helpers default to source: "google search". Override source= for any other platform. Official full client: trendsapi.

Mapping

pytrends Here
TrendReq(...) + build_payload(...) Not needed. One client call
interest_over_time() get_time_series("term")
DataFrame pct_change get_growth("term", percent_growth=["3M","12M"])
trending_searches() get_live() or get_top_trends(type="Google Trends")
interest_by_region() No equivalent
related_queries() / related_topics() No equivalent
proxies=, cookies, User-Agent Remove

Call

Field Value
Endpoint POST https://api.trendsapi.ai/api
Auth Authorization: Bearer $TRENDSAPI_KEY
History source: google search with get_time_series or get_growth
Keyword Any phrase
Live type Google Trends
curl -sS -X POST https://api.trendsapi.ai/api \
  -H "Authorization: Bearer $TRENDSAPI_KEY" \
  -H "Content-Type: application/json" \
  -d '{"mode":"get_time_series","source":"google search","keyword":"electric vehicle"}'

One keyword per request. Five terms in kw_list become five calls.

404 means no series for that spelling. Do not retry 404s.

Indexes will not match an old pytrends CSV cell-for-cell. Compare shape and direction, not exact 0-100 values.

Site: https://trendsapi.ai/trends/pytrends-alternative. GitHub: trendsapi-ai/pytrends-alternative.

License

MIT. See LICENSE.

Download files

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

Source Distribution

pytrends_alternative-1.0.1.tar.gz (3.7 kB view details)

Uploaded Source

Built Distribution

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

pytrends_alternative-1.0.1-py3-none-any.whl (4.2 kB view details)

Uploaded Python 3

File details

Details for the file pytrends_alternative-1.0.1.tar.gz.

File metadata

  • Download URL: pytrends_alternative-1.0.1.tar.gz
  • Upload date:
  • Size: 3.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/7.0.0 CPython/3.14.2

File hashes

Hashes for pytrends_alternative-1.0.1.tar.gz
Algorithm Hash digest
SHA256 a3fe12e57f36321d65f082dbd0d1fd6b86b3f83ba600e559dfc8e3ad353a1278
MD5 076530bf6f9dc6daa1c76607f431f1ac
BLAKE2b-256 a761635b6b07b09c9589f760536084ad35cc5561862b7e87b9242d799a59e900

See more details on using hashes here.

File details

Details for the file pytrends_alternative-1.0.1-py3-none-any.whl.

File metadata

File hashes

Hashes for pytrends_alternative-1.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 f28ae60f2fb1e40c4c0a641df03abe6a9996b359523d467a02cb3214d3fa69b3
MD5 c359ee2b13a500f8e786b4f7ba7dd520
BLAKE2b-256 accff9ec914370ac8c1fc861582cacf9305107ab8278945b21298c761c763ea6

See more details on using hashes here.

Supported by

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