Skip to main content

GET /news/topic

Get news from predefined topic categories. Supports 11 canonical topics with automatic translation into 40+ languages. You can combine two topics in a single request.

Request

URL

GET /news/topic

Headers

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

Query Parameters

ParameterTypeRequiredDefaultConstraintsDescription
topic1stringYes--See accepted valuesPrimary topic category
topic2stringNo--See accepted valuesSecondary topic category (combined with topic1)
quantityintegerNo201-100Maximum number of articles to return
languagestringNoen2-5 charactersLanguage code for translated topic names
geostringNo--2-5 charactersCountry/region code for localized results
timeframestringNoanytimeSee values belowTime filter for article recency

Accepted topic1 / topic2 values:

ValueDescriptionExample translations
worldInternational newses: "mundo", de: "welt", fr: "monde", ja: "world"
nationalDomestic newses: "nacional", de: "national", zh: "domestic"
businessBusiness and financees: "negocios", de: "wirtschaft", ja: "business"
technologyTech industryes: "tecnologia", de: "technologie", zh: "tech"
entertainmentEntertainment and culturees: "entretenimiento", de: "unterhaltung"
sportsSports newses: "deportes", de: "sport", ja: "sports"
scienceScientific researches: "ciencia", de: "wissenschaft", ja: "science"
healthHealth and medicinees: "salud", de: "gesundheit", ja: "health"
politicsPolitical newses: "politica", de: "politik", ja: "politics"
economyEconomic newses: "economia", de: "wirtschaft", ja: "economy"
environmentEnvironmental newses: "medio ambiente", de: "umwelt", ja: "environment"

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

Example Requests

# Single topic in English
curl -X GET "https://fast-news-with-previews.p.rapidapi.com/news/topic?topic1=technology&language=en" \
-H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
-H "x-rapidapi-host: fast-news-with-previews.p.rapidapi.com"

# Two topics combined
curl -X GET "https://fast-news-with-previews.p.rapidapi.com/news/topic?topic1=technology&topic2=business&language=en" \
-H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
-H "x-rapidapi-host: fast-news-with-previews.p.rapidapi.com"

# Topic in German
curl -X GET "https://fast-news-with-previews.p.rapidapi.com/news/topic?topic1=sports&language=de&quantity=15" \
-H "x-rapidapi-key: YOUR_RAPIDAPI_KEY" \
-H "x-rapidapi-host: fast-news-with-previews.p.rapidapi.com"

# With timeframe
curl -X GET "https://fast-news-with-previews.p.rapidapi.com/news/topic?topic1=politics&language=en&timeframe=last_7d" \
-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": 20,
"items": [
{
"title": "Made-up article about technology",
"source": "example-news.com",
"published_at": "2026-04-16T08:00:00Z",
"url": "https://example-news.com/articles/tech-topic",
"image_url": "https://cdn.example-news.com/thumb.jpg",
"preview": "Bla bla bla this is a sample preview of what a topic-based article excerpt looks like..."
}
]
}
FieldTypeDescription
topicstringAlways empty for topic-based requests
geostringGeographic filter applied
languagestringLanguage used for the search
countintegerNumber of articles returned
itemsarrayArray of article objects (same structure as /news)

Error Responses

400 Bad Request — invalid topic

{
"detail": "Key: 'TopicRequest.Topic1' Error:Field validation for 'Topic1' failed on the 'oneof' tag"
}

400 Bad Request — missing topic1

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

Notes

  • When topic2 is provided, both topic queries are combined with a space as a single search (e.g., topic1=technology + topic2=business searches for "technology business").
  • Topic names are automatically translated to the specified language. For example, topic1=world with language=es searches for "mundo" instead of "world".
  • The default quantity is 20 (higher than the default limit of 10 on /news).
  • The topic field in the response is always empty since topics are predefined categories, not user-specified search terms.
  • See the news endpoint documentation for article object field descriptions.