Visibility
get_sentiment
- Plan
- Grow and above
- Rate cost
- 1 unit
Try asking
“How do AI answers describe us this month?”
Visibility
Try asking
“How do AI answers describe us this month?”
Passed as the tool call's arguments.
project_idstringrequiredThe project to read, from list_projects.
rangeenum<string>default 30dHow far back to measure.
Values:7d30d90d
The same object as Get sentiment, returned as structured output.
rangestringThe window the numbers cover.
Values:7d30d90d
positivenumberShare of mentioning answers with a positive tone, 0–100.
neutralnumberShare with a neutral tone, 0–100.
negativenumberShare with a negative tone, 0–100. The three add up to about 100.
dominantstringnullableThe most common tone. Null with no mentions.
Values:positiveneutralnegative
net_scorenumberpositive minus negative, from −100 to 100.
net_score_deltanumbernullableChange in net_score against the previous window, in points. Null if either window has no mentions.
mentionsintegerAnswers in the window that mention the brand.
by_platformobject[]Per engine, for engines with at least one mention.
platform_labelstringEngine name.
dominantstringnullableMost common tone.
Values:positiveneutralnegative
net_scorenumber−100 to 100.
mentionsintegerMentioning answers.
trendobject[]Tone counts per day across the window.
datestringDay, as YYYY-MM-DD.
positiveintegerPositive answers.
neutralintegerNeutral answers.
negativeintegerNegative answers.
mentionsintegerAll mentioning answers.
| 404 not_found | The project or item doesn't exist in this workspace. A project from another workspace also returns 404, never 403. |
| 422 invalid_request | A parameter or body field is missing or has the wrong type or value. The message names the field. Also returned when a write would pass the plan's prompt limit. |
| 401 unauthorized | No key was sent, or the key is unknown, revoked or expired, or the member who created it has left the workspace or been deactivated. |
| 402 plan_required | The workspace's plan doesn't include API access. It's included on Grow, Scale and Custom. |
| 403 workspace_not_approved | The workspace is still waiting for approval, or wasn't approved. |
| 429 rate_limited | Too many requests this minute. Wait for the number of seconds in the `Retry-After` header, then retry. |
Every code, and what to retry, is in Errors.
Failures arrive as a tool error — isError: true with code: message as text. See Using the tools.