Skip to main content

Sentiment Topics

Entity›Datastore›Datastore.SentimentTopic

Sentiment topics define the topics being tracked for sentiment analysis.

Use the Datastore_SentimentTopic endpoint to query sentiment topics.

Endpoints​

List Sentiment Topics​

GET/v1/odata/Datastore_SentimentTopic

Single Sentiment Topic​

GET/v1/odata/Datastore_SentimentTopic({id})

Fields​

Datastore Fields (inherited)​

FieldTypeDescription
NameStringDisplay name
CodeStringUnique code identifier
LocalizedNameStringLocalized display name
IsDefaultBooleanWhether this is the default value

Relationships​

RelationshipTarget EntityCardinalityDescription
AggregatedSentimentTopicMeasurementAggregatedSentimentTopicMeasurement1:NAggregatedSentimentTopicMeasurement
SentimentTopicMeasurementSentimentTopicMeasurement1:NSentimentTopicMeasurement

Expanding Relationships​

GET/v1/odata/Datastore_SentimentTopic({id})?$expand=AggregatedSentimentTopicMeasurement
GET/v1/odata/Datastore_SentimentTopic({id})/AggregatedSentimentTopicMeasurement

Filtering Examples​

GET/v1/odata/Datastore_SentimentTopic?$filter=Name eq '{Name}'&$top={top}
GET/v1/odata/Datastore_SentimentTopic?$filter=contains(Name, '{Name}')&$top={top}
GET/v1/odata/Datastore_SentimentTopic?$filter=Code eq '{Code}'&$top={top}
GET/v1/odata/Datastore_SentimentTopic?$filter=IsDefault eq {IsDefault}&$top={top}

Custom Query​

Build your own OData query against Datastore_SentimentTopic. Open Run and edit the whole request inline — swap the entity set, change the $filter, or add $expand, $select, $orderby, $top, $skip. Type $ for suggestions; use ↺ Reset to restore this example.

GET/v1/odata/Datastore_SentimentTopic?$top=10