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

Parameters: get_sentiment_report
NameTypeDescription
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
curl https://cotlet.dev/api/v1/okendo/sentiment-report \
  -H "Authorization: Bearer $COTLET_API_KEY"
Python
result = client.call("okendo", "get_sentiment_report")
Node.js
const result = await cotlet.call('okendo', 'get_sentiment_report');
CLI
cotlet call okendo get_sentiment_report

Example response

JSON

{
  "range": "Last 4 weeks",
  "positive": 84,
  "negative": 12,
  "mixed": 6,
  "neutral": 18,
  "total": 120
}

Sign in once. Your agent does the rest.

Sign up and add the apps you need. Free 7-day trial with 2,000 credits, no card needed.