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 grouped by theme. Each theme shows positive, neutral, and negative mention counts with period-over-period change.
Parameters
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).
Filter by a single prompt ID.
Filter by multiple prompt IDs. Maximum 10 values.
Response
Returns 200 OK with an array of theme sentiment objects.
Array of theme sentiment objects.Show theme sentiment object
Unique identifier for the theme.
Positive mention count for the theme.
Change in positive sentiment compared to the previous period.
Change in neutral sentiment compared to the previous period.
Change in negative sentiment compared to the previous period.
Number of keywords associated with the theme.
Example
curl -s "https://api.slatehq.ai/ai-analytics-service/api/public/v1/sentiment/theme/mentions?dateRange=30&topicId=42" \
-H "Authorization: Bearer slat_YOUR_TOKEN"
Response
[
{
"themeId": "theme-abc-123",
"positiveSentiment": 45,
"neutralSentiment": 30,
"negativeSentiment": 5,
"positiveSentimentDelta": 3,
"neutralSentimentDelta": -1,
"negativeSentimentDelta": 0,
"totalKeywords": 12
},
{
"themeId": "theme-def-456",
"positiveSentiment": 28,
"neutralSentiment": 42,
"negativeSentiment": 10,
"positiveSentimentDelta": -2,
"neutralSentimentDelta": 5,
"negativeSentimentDelta": 1,
"totalKeywords": 8
}
]
Delta values compare the current period to the previous period of equal length.
Status codes
| Status | Description |
|---|
200 | Theme 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