News mention-volume API
News mention volume via the Trends API. Media monitoring without scraping news sites.
Key: trendsapi.ai/#get-key. Full contract: trendsapi-ai/trendsapi.
JS: news-trends-api.
Install
pip install news-trends-api
from news_trends_api import TrendsAPI
client = TrendsAPI() # TRENDSAPI_KEY
series = client.get_time_series("federal reserve")
growth = client.get_growth("federal reserve", percent_growth=["12M"])
hot = client.get_live(limit=10)
Keyword helpers default to source: "news volume". 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: news volume with get_time_series or get_growth |
| Keyword | Any phrase, e.g. federal reserve |
Live type |
Google News Top News |
curl -sS -X POST https://api.trendsapi.ai/api \
-H "Authorization: Bearer $TRENDSAPI_KEY" \
-H "Content-Type: application/json" \
--max-time 60 \
-d '{"mode":"get_time_series","source":"news volume","keyword":"federal reserve"}'
This source can be slow. HTTP 504 HTML is not billed. Retry.
source: news sentiment is tone, not mention count.
Site: https://trendsapi.ai/trends/news-trends. GitHub: trendsapi-ai/news-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 news_trends_api-1.0.0.tar.gz.
File metadata
- Download URL: news_trends_api-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 |
8ada1d2461883de4e547dbe903709388ab0d88efcf44a61e1dd7e4efb6f35b82
|
|
| MD5 |
c1bf8cbcf5603bfe52ddf1fb5b1490aa
|
|
| BLAKE2b-256 |
bddf57de71d1c31b7c560c90593eb77b74b49ec7cbd3f84b7b3f1a774185cb10
|
File details
Details for the file news_trends_api-1.0.0-py3-none-any.whl.
File metadata
- Download URL: news_trends_api-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 |
742798429d2c2d9ec57ad5eb391a2b96345757c15140ba2f45b7a3de4dbc425c
|
|
| MD5 |
ddd4884255539b4c62f95b2609673cb7
|
|
| BLAKE2b-256 |
4ca76a614b586bdc49337e804b37ab120a85d742fdefcec02188cb28d083b850
|