How to Discover Trending Topics and Entities
Find the most-covered subjects and compare their momentum
Written by Tasha Tatum
August 22, 2026
Updated October 16, 2026
How to discover trending topics and entities
Call /v1/news/trends with field to rank entities, categories, topics, industries, or publishers by coverage. The response lists matching values and article counts, with the most-covered first by default.
This requests the ten leading entities in technology coverage:
curl "https://api.apitube.io/v1/news/trends?field=entity.id&per_page=10&title=technology&api_key=YOUR_API_KEY"
Use GET parameters or a POST JSON body, with your key in api_key or X-API-Key. A paid plan is required. Free returns 403 ER0706 without a charge.
Which fields can you trend on?
Choose up to five comma-separated fields:
entity.id: named subjects, with names, types, and Wikidata IDs.category.id: IPTC categories, with names and taxonomy.topic.id: topics.industry.id: business sectors.source.id: publishers, with names and domains.
For example, use field=entity.id,category.id. A missing or invalid field returns ER0350.
How to narrow trends to a topic, language or date
Add your usual search filters, such as title, language.code, source.domain, published_at.start, and published_at.end:
curl "https://api.apitube.io/v1/news/trends?field=category.id&language.code=en&published_at.start=NOW-7DAYS&api_key=YOUR_API_KEY"
Without dates, trends covers the last 30 days. A date range longer than 30 days returns ER0353. See Searching & Filtering News and date filters.
What does the trends response look like?
A single-field request returns a trends list:
{
"status": "ok",
"field": "entity.id",
"per_page": 10,
"offset": 0,
"total_count": 842,
"total_articles": 15730,
"sort": "count",
"order": "desc",
"mincount": 1,
"trends": [
{
"value": { "id": 1599, "name": "OpenAI", "type_id": 3, "wikidata_id": "Q21708200" },
"count": 412,
"percentage": 2.62,
"growth_rate": 5.1
}
],
"request_id": "5e9c3a17-8b2d-4f61-9a04-7d1e6c8b3f92"
}
For each value:
count: matching articles that mention it.percentage: its share of all matching articles.growth_rate: publication speed in articles per hour between its first and last matching article.
total_count counts distinct values; total_articles counts articles in the filtered set.
How to control the ranking and size
per_page: results per field, default 10, maximum 100.offset: results to skip, default 0.sort:count,value, orgrowth_rate; defaultcount.order:descorasc; defaultdesc.mincount: minimum article count, default 1, maximum 10,000.
How to measure what is rising, not just popular
Add trending=true for trending_score and daily trending_history. The score compares a recent two-day average with a 14-day average by default: above 1 indicates rising coverage; below 1 indicates declining coverage.
Set trending_days from 7 to 30, default 14, to change the history window:
curl "https://api.apitube.io/v1/news/trends?field=entity.id&trending=true&trending_days=14&api_key=YOUR_API_KEY"
A plain trending request remains ordered by count. To sort by trending_score, also use compare=true and a compare_window.
To compare periods, set compare=true&compare_window=7DAYS, for example. The response adds previous_count, change_absolute, and change_percent. sort=change ranks percentage changes. A missing comparison window returns ER0352.
How much does a trends request cost?
One credit, regardless of fields or matching article volume. Test keys return the structure and counts but replace trend values with [Upgrade subscription plan]. Use a live key for the actual named values.
Common Questions
- Can I get trends for several fields at once?
- Why is per_page capped at 100?
- How far back can trends look?
- What errors can the trends endpoint return?
Can I get trends for several fields at once?
Yes. Include up to five fields. The response uses a trends object keyed by field name, with a ranked list for each.
Why is per_page capped at 100?
Trends returns a ranking rather than raw articles. Fetch up to 100 values per field and increase offset for more.
How far back can trends look?
A requested window can be at most 30 days. Select dates for that window, or omit them for the last 30 days. Split longer studies into separate windows.
What errors can the trends endpoint return?
Common errors are 401 ER0201/ER0202 for keys, 403 ER0706 for Free, 402 ER0176 for no credits, and 429 ER0203 for request limits. Most paid plans allow 50 requests per minute; Corporate allows 200 and test keys allow 15. Repeated violations can return ER0204. Keep request_id for support.