Skip to main content

GET /news/trending

Get localized trending headlines. This endpoint automatically translates the "top headlines" query into 40+ languages and supports regional variants (e.g., "titulares Argentina" for Spanish in Argentina).

Request

URL

GET /news/trending

Headers

HeaderValueRequired
x-rapidapi-keyYour RapidAPI API keyYes
x-rapidapi-hostfast-news-with-previews.p.rapidapi.comYes

Query Parameters

ParameterTypeRequiredDefaultConstraintsDescription
languagestringYes--2-5 charactersLanguage code (e.g., en, es, de, ja)
geostringNo--2-5 charactersCountry/region code (e.g., US, GB, AR)
limitintegerNo101-100Maximum number of articles to return
timeframestringNoanytimeSee values belowTime filter for article recency

Accepted timeframe values: last_1h, last_24h, last_48h, last_7d, last_30d, anytime

Example Requests

# English trending headlines
curl -X GET "https://fast-news-with-previews.p.rapidapi.com/news/trending?language=en" \
-H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
-H "x-rapidapi-host: fast-news-with-previews.p.rapidapi.com"

# German trending headlines with region
curl -X GET "https://fast-news-with-previews.p.rapidapi.com/news/trending?language=de&geo=AT&limit=15" \
-H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
-H "x-rapidapi-host: fast-news-with-previews.p.rapidapi.com"

# Japanese trending from the last 24 hours
curl -X GET "https://fast-news-with-previews.p.rapidapi.com/news/trending?language=ja&timeframe=last_24h" \
-H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
-H "x-rapidapi-host: fast-news-with-previews.p.rapidapi.com"

Response

200 OK

{
"topic": "",
"geo": "all",
"language": "en",
"count": 10,
"items": [
{
"title": "Made-up trending headline",
"source": "example-news.com",
"published_at": "2026-04-16T09:00:00Z",
"url": "https://example-news.com/articles/trending",
"image_url": "https://cdn.example-news.com/thumb.jpg",
"preview": "Bla bla bla this is a sample preview of what a trending article excerpt looks like..."
}
]
}
FieldTypeDescription
topicstringAlways empty for trending (no user-specified topic)
geostringGeographic filter applied (omitted if not specified)
languagestringLanguage used for the search
countintegerNumber of articles returned
itemsarrayArray of article objects (same structure as /news)

Error Responses

400 Bad Request — missing language

{
"detail": "Key: 'TrendingRequest.Language' Error:Field validation for 'Language' failed on the 'required' tag"
}

503 Service Unavailable

{
"detail": "News service temporarily unavailable"
}

Supported Languages

The trending endpoint supports localized queries for 40+ languages. Some examples:

LanguageCodeTrending Query
English (US)en / en-US"top headlines"
English (UK)en-GB"top headlines UK"
Spanish (Spain)es / es-ES"titulares"
Spanish (Mexico)es-MX"titulares Mexico"
Germande / de-DE"aktuelle schlagzeilen"
Frenchfr / fr-FR"actualites"
Japaneseja / ja-JP"top headline"
Koreanko / ko-KR"headline"
Chinese (Simplified)zh / zh-CNHeadline news
Arabicar"Headlines of news"

For unsupported language codes, the query defaults to English ("top headlines").

Notes

  • The topic field in the response is always empty since trending headlines are not tied to a user-specified topic.
  • When both language and geo are provided, the API maps them to a locale-specific query (e.g., language=es + geo=AR produces "titulares Argentina").
  • See the news endpoint documentation for article object field descriptions.