Skip to main content

News mention-volume API

News mention volume via the Trends API. Media monitoring without scraping news sites.

License: MIT PyPI

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

news_trends_api-1.0.0.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

news_trends_api-1.0.0-py3-none-any.whl (3.8 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