---
title: "Sentiment Analysis"
method: GET
path: "/v1/data/x/ai/sentiment-analysis"
tags: ["X (Twitter): AI"]
---

# Sentiment Analysis

`GET /v1/data/x/ai/sentiment-analysis`

## Request

- Base URL: `https://api.superagnt.com`
- URL: `https://api.superagnt.com/v1/data/x/ai/sentiment-analysis`
- Auth: API key in header `Authorization`

Analyze text to determine if the emotional tone of the message is positive, negative, or neutral.

## Query parameters

- `text` string, required

## Response `200`

200

- object
  - `text` string
  - `hash` string
  - `trace_id` string
  - `sentiment` object
    - `value` string
    - `confidence` number
  - `elapsed_time` number

---

[API](https://skmtc.dev/superagnt/apis/superagnt-api.md) · [All operations](https://skmtc.dev/superagnt/apis/superagnt-api/llms.txt) · [OpenAPI document](https://skmtc.dev/superagnt/apis/superagnt-api/revisions/b2d8de30ccf0?raw)
