Python client for the Trends MCP API. Keyword trend time series and growth rates across Google Search, YouTube, Reddit, Amazon, TikTok, Wikipedia, npm, Steam, and more.
Project description
trendsmcp
The number one Python package for live keyword trend data across 13 platforms. Query time series and growth percentages from Google Search, YouTube, Reddit, Amazon, TikTok, Wikipedia, npm, Steam, and more from a single managed endpoint. No scraping. No proxies. No rate limit nightmares. Both sync and async supported.
Powered by trendsmcp.ai, the #1 MCP server for live trend data.
Get your free API key at trendsmcp.ai - 100 free requests per month, no credit card.
📖 Full API docs → trendsmcp.ai/docs
Updated for 2026. Works with Python 3.8 through 3.13.
Why trendsmcp instead of pytrends?
If you have used pytrends before, you know the drill:
429 Too Many Requestsafter a handful of callsMax retries exceedederrors mid-pipeline- Google blocking your IP and requiring
time.sleep(60)hacks - The library is archived - Google now flags scrapers at the protocol level, and there is no fix coming
- You only get Google Search, relative scores (0 to 100), no absolute volume
pytrends alternative: trendsmcp
trendsmcp is the managed alternative. We run the data infrastructure. You call a REST endpoint.
| pytrends | trendsmcp | |
|---|---|---|
| No scraping | scrapes Google | managed API |
| 429 errors | constant | never |
| Proxy required | often | never |
| Breaks on Google changes | yes, regularly | no |
| Platforms | 1 (Google only) | 13 |
| Absolute volume estimates | no | yes |
| Cross-platform growth | no | yes |
| Async support | no | yes |
| Actively maintained | no (archived) | yes |
| Free tier | no | yes, 100 req/month |
Install
pip install trendsmcp
Zero system dependencies. Requires Python 3.8 or later. Uses httpx under the hood.
Quick start (sync)
from trendsmcp import TrendsMcpClient
client = TrendsMcpClient(api_key="YOUR_API_KEY")
# 5-year weekly time series, no sleep(), no proxies, no 429s
series = client.get_trends(source="google search", keyword="bitcoin")
print(series[0])
# TrendsDataPoint(date='2026-03-28', value=47, ...)
# Period-over-period growth
growth = client.get_growth(
source="google search",
keyword="nike",
percent_growth=["12M", "3M", "YTD"],
)
print(growth.results[0])
# GrowthResult(period='12M', growth=13.64, direction='increase', ...)
# What's trending right now
trending = client.get_top_trends(type="Google Trends", limit=10)
print(trending.data)
# [[1, 'tiger woods'], [2, 'miley cyrus'], ...]
Quick start (async)
import asyncio
from trendsmcp import AsyncTrendsMcpClient
async def main():
client = AsyncTrendsMcpClient(api_key="YOUR_API_KEY")
# Run multiple platform queries concurrently
google, youtube, reddit = await asyncio.gather(
client.get_trends(source="google search", keyword="AI"),
client.get_trends(source="youtube", keyword="AI"),
client.get_trends(source="reddit", keyword="AI"),
)
print(f"Google: {google[-1].value} YouTube: {youtube[-1].value} Reddit: {reddit[-1].value}")
asyncio.run(main())
License
MIT
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file trendsmcp-1.0.0.tar.gz.
File metadata
- Download URL: trendsmcp-1.0.0.tar.gz
- Upload date:
- Size: 6.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
8739cabdd44bf04ca6606bcbf5306ceba01c44cbef4f15e5e0f37b0aa007563c
|
|
| MD5 |
2a275be8ab072069d9f5225bc4fb218d
|
|
| BLAKE2b-256 |
4f72db3106c354bc8ff4ffd67e8c8a9bce205c9eae69abf51b70ec99111b3ac7
|
Provenance
The following attestation bundles were made for trendsmcp-1.0.0.tar.gz:
Publisher:
publish.yml on trendsmcp/trendsmcp-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trendsmcp-1.0.0.tar.gz -
Subject digest:
8739cabdd44bf04ca6606bcbf5306ceba01c44cbef4f15e5e0f37b0aa007563c - Sigstore transparency entry: 1203536831
- Sigstore integration time:
-
Permalink:
trendsmcp/trendsmcp-py@2223338f66032c4616e5c66c47b38ff10e41bbe2 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/trendsmcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2223338f66032c4616e5c66c47b38ff10e41bbe2 -
Trigger Event:
release
-
Statement type:
File details
Details for the file trendsmcp-1.0.0-py3-none-any.whl.
File metadata
- Download URL: trendsmcp-1.0.0-py3-none-any.whl
- Upload date:
- Size: 7.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1b5d79acd05c058769646b55a63c4702c466a599c618c2275cbd92d419b3eccd
|
|
| MD5 |
5e9a2290ecde3cdba63345e8dfa3100f
|
|
| BLAKE2b-256 |
6872c91dfe18bf032d0490ba8925fa5618c323b1a0225108c59914a13608d520
|
Provenance
The following attestation bundles were made for trendsmcp-1.0.0-py3-none-any.whl:
Publisher:
publish.yml on trendsmcp/trendsmcp-py
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
trendsmcp-1.0.0-py3-none-any.whl -
Subject digest:
1b5d79acd05c058769646b55a63c4702c466a599c618c2275cbd92d419b3eccd - Sigstore transparency entry: 1203536836
- Sigstore integration time:
-
Permalink:
trendsmcp/trendsmcp-py@2223338f66032c4616e5c66c47b38ff10e41bbe2 -
Branch / Tag:
refs/tags/v1.0.0 - Owner: https://github.com/trendsmcp
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@2223338f66032c4616e5c66c47b38ff10e41bbe2 -
Trigger Event:
release
-
Statement type: