Sentiment Query Examples
Getting news with positive sentiment
This query retrieves news articles with positive sentiment.
python
params = {
"sentiment.overall.polarity": "positive",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?sentiment.overall.polarity=positive&api_key=YOUR_API_KEY"News with positive sentiment from a specific country
This query retrieves news articles with positive sentiment from Japan.
python
params = {
"sentiment.overall.polarity": "positive",
"source.country.code": "jp",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?sentiment.overall.polarity=positive&source.country.code=jp&api_key=YOUR_API_KEY"Positive news from a specific date
This query retrieves news articles with positive sentiment from a specific date.
python
params = {
"sentiment.overall.polarity": "positive",
"published_at.start": "2026-03-07",
"published_at.end": "2026-03-08",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?sentiment.overall.polarity=positive&published_at.start=2026-03-07&published_at.end=2026-03-08&api_key=YOUR_API_KEY"Articles with positive sentiment and a specific topic
This query retrieves articles with positive sentiment containing "technology" in the title.
python
params = {
"sentiment.overall.polarity": "positive",
"title": "technology",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?sentiment.overall.polarity=positive&title=technology&api_key=YOUR_API_KEY"Multidimensional sentiment analysis
This query analyzes articles with high positive sentiment about specific organizations and categories.
python
params = {
"sentiment.overall.polarity": "positive",
"category.id": "medtop:04000000",
"organization.name": "Google,Microsoft",
"sort.by": "sentiment.overall.score",
"sort.order": "desc",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?sentiment.overall.polarity=positive&category.id=medtop:04000000&organization.name=Google,Microsoft&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY"Comparative sentiment analysis across markets
This query analyzes negative sentiment in health news from different countries.
python
params = {
"sentiment.overall.polarity": "negative",
"source.country.code": "us,gb,de",
"category.id": "medtop:07000000",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?sentiment.overall.polarity=negative&source.country.code=us,gb,de&category.id=medtop:07000000&api_key=YOUR_API_KEY"Analysis of sentiment divergence by source types
This query analyzes differences in sentiment between different news sources on green energy.
python
params = {
"topic.id": "industry.green_energy_news",
"sort.by": "sentiment.overall.score",
"sort.order": "desc",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?topic.id=industry.green_energy_news&sort.by=sentiment.overall.score&sort.order=desc&api_key=YOUR_API_KEY"Sentiment analysis in product reviews
This query analyzes the emotional tone in Apple product reviews.
python
params = {
"title": "review",
"organization.name": "Apple",
"sort.by": "sentiment.overall.score",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?title=review&organization.name=Apple&sort.by=sentiment.overall.score&api_key=YOUR_API_KEY"Sentiment timeline analysis for market events
This query tracks sentiment evolution in financial market events.
python
params = {
"category.id": "medtop:04000000",
"title": "market,recession,financial",
"sort.by": "published_at,sentiment.overall.score",
"api_key": "YOUR_API_KEY"
}shell
curl -X GET "https://api.apitube.io/v1/news/everything?category.id=medtop:04000000&title=market,recession,financial&sort.by=published_at,sentiment.overall.score&api_key=YOUR_API_KEY"