Language Query Examples
Excluding articles in a specific language and from a specific country
This query retrieves news articles, excluding those in French and from France.
python
params = {
"ignore.source.country.code": "fr",
"ignore.language.code": "fr",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?ignore.source.country.code=fr&ignore.language.code=fr&api_key=YOUR_API_KEY"
Getting articles in multiple languages
This query retrieves news articles in English and French.
python
params = {
"language.code": "en,fr",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=en,fr&api_key=YOUR_API_KEY"
Multilingual analysis with source filtering
This query analyzes news in English, Japanese, and German from high-ranking sources.
python
params = {
"language.code": "en,ja,de",
"source.rank.opr.min": "0.7",
"sort.by": "published_at",
"sort.order": "desc",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=en,ja,de&source.rank.opr.min=0.7&sort.by=published_at&sort.order=desc&api_key=YOUR_API_KEY"
Business news in specific languages
This query retrieves business news in Chinese and Korean.
python
params = {
"language.code": "zh,ko",
"category.id": "2",
"published_at.start": "2023-01-01",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=zh,ko&category.id=2&published_at.start=2023-01-01&api_key=YOUR_API_KEY"
Multilingual brand sentiment analysis
This query analyzes positive coverage of Netflix in different languages.
python
params = {
"language.code": "en,fr,de,ja",
"brand.name": "Netflix",
"sentiment.overall.polarity": "positive",
"published_at.start": "2023-01-01",
"sort.by": "published_at",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=en,fr,de,ja&brand.name=Netflix&sentiment.overall.polarity=positive&published_at.start=2023-01-01&sort.by=published_at&api_key=YOUR_API_KEY"
Comparing regional news in different languages
This query compares news in Arabic and Hebrew, sorted by emotional tone.
python
params = {
"language.code": "ar,he",
"category.id": "3",
"published_at.start": "2023-01-01",
"sort.by": "sentiment.overall.score",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=ar,he&category.id=3&published_at.start=2023-01-01&sort.by=sentiment.overall.score&api_key=YOUR_API_KEY"
Cross-language technology coverage comparison
This query analyzes how AI developments are covered across European and Asian languages.
python
params = {
"language.code": "en,fr,de,zh,ja,ko",
"topic.id": "artificial_intelligence",
"published_at.start": "2023-01-01",
"published_at.end": "2023-12-31",
"sort.by": "language.code",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=en,fr,de,zh,ja,ko&topic.id=artificial_intelligence&published_at.start=2023-01-01&published_at.end=2023-12-31&sort.by=language.code&api_key=YOUR_API_KEY"
Language-specific medical news analysis
This query focuses on COVID-19 coverage in multiple languages, filtered by source reliability.
python
params = {
"language.code": "en,es,pt,it",
"title": "COVID,coronavirus,pandemic",
"source.rank.opr.min": "0.8",
"category.id": "11",
"published_at.start": "2023-01-01",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=en,es,pt,it&title=COVID,coronavirus,pandemic&source.rank.opr.min=0.8&category.id=11&published_at.start=2023-01-01&api_key=YOUR_API_KEY"
Multilingual financial market sentiment tracking
This query monitors financial market sentiment across major global financial centers in their native languages.
python
params = {
"language.code": "en,ja,de,zh",
"category.id": "2",
"title": "stock market,financial crisis,recession,economic growth",
"published_at.start": "2023-01-01",
"sort.by": "sentiment.overall.score",
"sort.order": "asc",
"api_key": "YOUR_API_KEY"
}
shell
curl -X GET "https://api.apitube.io/v1/news/everything?language.code=en,ja,de,zh&category.id=2&title=stock%20market,financial%20crisis,recession,economic%20growth&published_at.start=2023-01-01&sort.by=sentiment.overall.score&sort.order=asc&api_key=YOUR_API_KEY"