How to Get Sentiment Toward a Company or Person
Select tone toward a named company, person or brand
Written by Tasha Tatum
June 26, 2026
Updated October 16, 2026
How to get sentiment toward a specific company or person
Combine an entity filter with entity.sentiment.polarity or entity score bounds. This selects tone toward the matching company, person or brand rather than the article as a whole:
curl "https://api.apitube.io/v1/news/everything?organization.name=Tesla&entity.sentiment.polarity=negative&api_key=YOUR_API_KEY"
For each result, inspect the matching entity in entities to read its score and mention counts.
What is entity-level sentiment versus article sentiment?
An article can be positive overall while describing one company negatively. Use sentiment.overall.polarity for the whole article, or entity.sentiment.polarity with an entity selector for the named subject.
See article sentiment for overall, title and body filters.
Which parameters set entity sentiment?
entity.sentiment.polarity: positive, neutral or negative; invalid values returnER0290.entity.sentiment.score.min: an inclusive minimum from -1 to 1; invalid values returnER0291.entity.sentiment.score.max: an inclusive maximum from -1 to 1; invalid values returnER0292.
Combine polarity and bounds, or use either alone:
curl "https://api.apitube.io/v1/news/everything?organization.name=Apple&entity.sentiment.score.min=-1&entity.sentiment.score.max=-0.3&api_key=YOUR_API_KEY"
The example selects entity scores between -1 and -0.3. Validation errors return 400.
How to pick which entity the sentiment applies to
Use an entity selector: organization.name, person.name, brand.name or numeric entity.id.
curl "https://api.apitube.io/v1/news/everything?person.name=Elon%20Musk&entity.sentiment.polarity=negative&api_key=YOUR_API_KEY"
Name selectors accept up to three values. Unknown names return errors, such as ER0220 for an organization. Look up the recognized spelling or ID if needed.
An entity selector is required. Without one, entity sentiment conditions return 400 ER0293.
How does entity sentiment appear in the response?
Read each entity’s sentiment block:
{
"entities": [
{
"id": 12345,
"name": "Tesla",
"type": "organization",
"sentiment": {
"score": -0.62,
"polarity": "negative",
"mentions": { "positive": 1, "neutral": 2, "negative": 5 }
}
}
]
}
score runs from -1 to 1, polarity gives the label, and mentions counts positive, neutral and negative references. Check the entity ID as well as the sentiment when an article mentions several subjects.
Common Questions
- Can I combine entity sentiment with other filters?
- What is the difference from sentiment.overall.polarity?
- Why did my request return an error instead of results?
Can I combine entity sentiment with other filters?
Yes. Add language, dates, category or other supported conditions. Different parameters combine with AND.
What is the difference from sentiment.overall.polarity?
Overall polarity describes the whole article; entity polarity describes a matching entity. Use both if both conditions must hold.
Why did my request return an error instead of results?
Read the response code and message. Check polarity, score values and recognized names. See the parameter reference.