YouTube search-interest API
YouTube search interest trends via the Trends API. History, growth, and live YouTube trending.
Key: trendsapi.ai/#get-key. Full contract: trendsapi-ai/trendsapi.
JS: trendsapi-youtube.
Install
pip install trendsapi-youtube
from trendsapi_youtube import TrendsAPI
client = TrendsAPI() # TRENDSAPI_KEY
series = client.get_time_series("sourdough starter")
growth = client.get_growth("sourdough starter", percent_growth=["12M"])
hot = client.get_live(limit=10)
Keyword helpers default to source: "youtube". Override source= for any other platform. Official full client: trendsapi.
Call
| Field | Value |
|---|---|
| Endpoint | POST https://api.trendsapi.ai/api |
| Auth | Authorization: Bearer $TRENDSAPI_KEY |
| History | source: youtube with get_time_series or get_growth |
| Keyword | Search phrase, e.g. sourdough starter |
Live type |
YouTube Trending |
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":"youtube","keyword":"sourdough starter"}'
value is 0-100 for this term on YouTube only, not video metadata.
type is YouTube Trending, not youtube.
No regionCode on this endpoint.
Site: https://trendsapi.ai/trends/youtube-trends. GitHub: trendsapi-ai/youtube-trends-api.
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
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 trendsapi_youtube-1.0.0.tar.gz.
File metadata
- Download URL: trendsapi_youtube-1.0.0.tar.gz
- Upload date:
- Size: 3.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
70d00ed63c77e40b5807e97e0e7d736b4610a1a7793f40f3ebe41b9dbe7bac0e
|
|
| MD5 |
c93c38a14ac6a98336ba5794bad85de0
|
|
| BLAKE2b-256 |
ea8f32541484d76fe2998925a4685bb4175fd4a2eb7078ac0e047203c4f1c1f4
|
File details
Details for the file trendsapi_youtube-1.0.0-py3-none-any.whl.
File metadata
- Download URL: trendsapi_youtube-1.0.0-py3-none-any.whl
- Upload date:
- Size: 3.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via:
twine/7.0.0 CPython/3.14.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2fde930d9e5e5120de688b7cf33dc560e2ea96d8d446d511b85c7b12eacc3730
|
|
| MD5 |
7c0217dce893c163e655440ee11c8a1f
|
|
| BLAKE2b-256 |
4cdc63dc85be16157c684617e8842455b507a8085d592617456489ce320566a2
|