Documentation Index
Fetch the complete documentation index at: https://slatehq.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Returns sentiment data for each keyword within a theme. Use this to identify which keywords drive positive or negative sentiment.
Parameters
Unique identifier for the theme.
Bearer token. Format: Bearer slat_<your-token>.
Number of days for the analysis window.
Start of date range. ISO 8601 format (e.g., 2026-02-01T00:00:00Z).
End of date range. ISO 8601 format.
Filter by one or more platforms: CHATGPT, PERPLEXITY, GOOGLE_AI_OVERVIEW, GOOGLE_AI_MODE, GEMINI, CLAUDE.
Filter by ISO country code for region.
Filter by sentiment label (e.g., positive, neutral, negative).
Page number for pagination.
Page size for pagination.
Filter by a single prompt ID.
Filter by multiple prompt IDs. Maximum 10 values.
Response
Returns 200 OK with an array of keyword sentiment objects.
Array of keyword sentiment objects.Show keyword sentiment object
Unique identifier for the keyword.
Example
curl -s "https://api.slatehq.ai/ai-analytics-service/api/public/v1/sentiment/theme/theme-abc-123/keyword/mentions?dateRange=30&topicId=42" \
-H "Authorization: Bearer slat_YOUR_TOKEN"
Response
[
{
"keywordId": "kw-001",
"keyword": "ease of use",
"positiveSentiment": 28,
"neutralSentiment": 12,
"negativeSentiment": 3
},
{
"keywordId": "kw-002",
"keyword": "pricing",
"positiveSentiment": 10,
"neutralSentiment": 15,
"negativeSentiment": 18
}
]
Status codes
| Status | Description |
|---|
200 | Keyword sentiment data returned. |
400 | promptIds exceeds maximum of 10 values. |
401 | Missing or invalid Bearer token. See Authentication. |
500 | Internal server error. |
What’s next