Get sentiment report
How many reviews are positive, negative, mixed or neutral, from Reviews > Performance.
GET https://cotlet.dev/api/v1/okendo/sentiment-report
read
Reads the Sentiment tab of Reviews > Performance. It returns the number of reviews in each of positive, negative, mixed and neutral for the range you pick. Okendo takes sentiment from the language of each review, not from its stars.
Parameters
| Name | Type | Description |
|---|---|---|
| range enum | enum | Last 4 weeks, Last 30 days, Last 12 weeks, Last 90 days, Past year or All time. |
| group_by enum | enum | Day, Week, Month, Quarter or Year. The steps that fit depend on the range. |
Request
curl https://cotlet.dev/api/v1/okendo/sentiment-report \
-H "Authorization: Bearer $COTLET_API_KEY" result = client.call("okendo", "get_sentiment_report") const result = await cotlet.call('okendo', 'get_sentiment_report'); cotlet call okendo get_sentiment_report Example response
{
"range": "Last 4 weeks",
"positive": 84,
"negative": 12,
"mixed": 6,
"neutral": 18,
"total": 120
}