How APITube handles languages and translation
Read original-language articles and English headline translations
Written by Tasha Tatum
July 2, 2026
Updated October 16, 2026
How APITube handles languages and translation
Read an article’s language code in language. The headline, description, and body remain in their original language. For supported non-English articles, translations.en also provides an English headline and description.
Use language.code to choose article languages. That filter does not translate the original text.
How does APITube detect an article’s language?
The response identifies the article’s language with a two-letter code such as en, fr, de, ja, or zh. If no language is available, the value is un for undetermined.
See the language-code list for supported values.
Where do I see an article’s language in the response?
Look for language on each article:
{
"id": 123456789,
"title": "…",
"language": "fr"
}
This field is included alongside entities, sentiment, and categories. See what NLP enrichment is applied to each article.
How do I get news in specific languages?
Add language.code. This example requests English or Spanish articles, newest first:
curl "https://api.apitube.io/v1/news/everything?language.code=en,es&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY"
- Use up to three comma-separated codes. An article can match any listed language.
- Codes must be one or two characters and are case-insensitive:
ENandenare equivalent. usis accepted as an alias foren.
Use ignore.language.code to exclude languages:
curl "https://api.apitube.io/v1/news/everything?ignore.language.code=fr&api_key=YOUR_API_KEY"
See how to filter news by language for more examples.
Does the News API translate articles?
It provides English translations of the headline and description for supported source languages:
{
"language": "de",
"title": "Kanzler kündigt neuen Haushalt an",
"translations": {
"en": {
"title": "Chancellor announces new budget",
"description": "The government presented the budget for the next year."
}
}
}
The main rules are:
- The body is not translated.
bodystays in the source language. - No extra request or fee is needed. The
translationsobject is part of the response. - Original fields stay unchanged. Your app can choose whether to display
titleor its English translation. - English articles have
nulltranslation values. - Translations are machine-generated. They can help you understand the gist, but may need editing before publication.
Translation supports 48 source languages. Articles in other supported languages, such as Macedonian, can still be returned and filtered, while translations.en values remain null.
How do I read the English translation of a non-English article?
Use the English headline when available, otherwise keep the original:
const headline = article.translations?.en?.title ?? article.title;
If you only need translated headlines and descriptions, request those fields:
curl "https://api.apitube.io/v1/news/everything?language.code=de&fl=id,language,translations.en.title,translations.en.description&api_key=YOUR_API_KEY"
Translations also appear under <translations> in XML, a Translations column in CSV, TSV, and XLSX, a translations column in Parquet, and the article object in JSONL. RSS keeps only the original title, link, and description.
Translated fields remain complete on Free. Body text is the part shortened for preview.
Which languages does APITube support?
The supported language list contains 59 languages plus un, for 60 codes in total. Use a code from that list; an unknown value returns an error.
Common Questions
- What does the language field contain if detection fails?
- Can I request more than three languages at once?
- What error means a language code is invalid?
- Does language.code change the language of the returned text?
- Can I search or filter by the translated text?
- Can I get translations into a language other than English?
What does the language field contain if detection fails?
un, meaning undetermined.
Can I request more than three languages at once?
No. Include and exclude filters apply only the first three codes. For example, language.code=en,fr,de,es uses en,fr,de and ignores es.
What error means a language code is invalid?
An invalid length returns 400 ER0061, or ER0063 for the ignore filter. An unknown code returns 400 ER0237, or ER0239 for the ignore filter, with a message such as language with code 'xx' not found.
Does language.code change the language of the returned text?
No. It chooses articles by original language. English translations stay separate in translations.en.
Can I search or filter by the translated text?
No. title searches original headlines. For a German article, use a German term such as Bundeskanzler. You can also fetch articles with language.code and check translations.en.title in your own app.
Can I get translations into a language other than English?
No. English is the only translation target currently returned, under translations.en.