How to Filter News by Language
Select the original article language without translating the text
Written by Tasha Tatum
June 26, 2026
Updated October 16, 2026
How to filter news by language
Add language.code with a supported language code, such as en for English. Up to three comma-separated codes match with OR. This selects the article language rather than translating the text.
curl "https://api.apitube.io/v1/news/everything?language.code=en&api_key=YOUR_API_KEY"
Send your key through api_key or X-API-Key. Without a language condition, the search can return any detected language.
What is the language.code parameter?
Use supported language codes, such as en, fr, de, es, ja or zh. The value is case-insensitive and limited to one or two characters.
The alias us selects English, like en. This is a specific alias, rather than a general rule for converting country codes to languages.
How to request a single language
Pass one code:
curl "https://api.apitube.io/v1/news/everything?language.code=fr&api_key=YOUR_API_KEY"
Check the returned language field:
{
"id": 123456789,
"title": "…",
"language": "fr"
}
How to request multiple languages at once
Separate up to three codes with commas:
curl "https://api.apitube.io/v1/news/everything?language.code=en,ja,de&api_key=YOUR_API_KEY"
Only the first three values are used; extras are dropped.
How to exclude a language with ignore.language.code
Use the exclusion parameter:
curl "https://api.apitube.io/v1/news/everything?ignore.language.code=fr&api_key=YOUR_API_KEY"
Language and publisher country are separate conditions. To exclude both, set both filters:
curl "https://api.apitube.io/v1/news/everything?ignore.source.country.code=fr&ignore.language.code=fr&api_key=YOUR_API_KEY"
See country and location filters.
Which endpoints support language filtering?
Use language conditions on Everything, Top Headlines, Story and category, topic, industry or entity news. Combine them with sorting or source conditions:
curl "https://api.apitube.io/v1/news/everything?language.code=en,ja,de&source.rank.opr.min=6&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY"
Common Questions
- What language codes does APITube accept?
- How many languages can I request at once?
- What error do I get for an invalid language code?
- Does language.code translate articles?
What language codes does APITube accept?
Use a recognized code from the language list. Case does not matter; us is an alias for English.
How many languages can I request at once?
Three per inclusion or exclusion parameter. Extra codes are ignored.
What error do I get for an invalid language code?
Invalid length returns 400 ER0061, or ER0063 for exclusion. An unknown code returns ER0237, or ER0239 for exclusion.
Does language.code translate articles?
No. It selects original article language. English title and description translations, where available, appear separately in translations.en. See languages and translation.