API · Content analysis
GET /contentanalysis/sentiment
Sentiment breakdown of a keyword’s citations, overall and per platform. Metered.
| Request | GET /v1/contentanalysis/sentiment |
| Operation id | contentanalysis.sentiment.get |
| Cost | 20 credits, refunded if the call fails |
| Auth | API key: Authorization: Bearer <key> or x-api-key. |
Sentiment breakdown of a keyword’s citations, overall and per platform. Metered.
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | yes | The keyword or phrase. Example: notion. |
page_type | string | string[] | no | Kinds of source: posts, videos, forum, pins, code (default all). |
platforms | string | string[] | no | Platforms to search (default the social, video and forum ones). |
filters | string | no | JSON object of filters: platform, language, sentiment (positive|negative|neutral), min_likes, min_views, author (see contentanalysis/filters). |
positive_connotation_threshold | number | no | Default 1. |
Responses
| Status | Meaning | Schema |
|---|---|---|
200 | Sentiment overall and per platform. | |
400 | Invalid input. Nothing was charged. | Error |
401 | Missing or invalid API key. | Error |
402 | Not enough credits, a spend cap was reached, or payment is required. | Error |
403 | The target is private, or the account is suspended. | Error |
404 | No citation of that keyword was found. | Error |
429 | Too many requests. Wait for Retry-After seconds. | Error |
503 | Content analysis is temporarily unavailable. Retryable; nothing was charged. | Error |
Errors use one shape everywhere; see Errors for every code and what to do.