Skip to main content
GET
/
responses
/
sentiment-distribution
Sentiment Distribution
curl --request GET \
  --url https://server.promptwatch.com/api/v1/responses/sentiment-distribution \
  --header 'X-API-Key: <api-key>'
[
  {
    "sentiment": "<string>",
    "count": 123,
    "percentage": 123
  }
]

Authorizations

X-API-Key
string
header
required

API key for authentication. Get yours from the Promptwatch dashboard under Settings > API Keys.

Query Parameters

startDate
string<date>

Start date for data (YYYY-MM-DD)

endDate
string<date>

End date for data (YYYY-MM-DD)

Response

Default Response

sentiment
string
required

Sentiment category (POSITIVE, NEGATIVE, NEUTRAL)

count
number
required

Number of responses with this sentiment

percentage
number
required

Percentage of total responses