---
title: "Sentiment Analysis"
method: POST
path: "/sentiment"
tags: ["Text Analysis"]
---

# Sentiment Analysis

`POST /sentiment`

Evaluate the overall tonality of the text.

Supported Languages: [`ar`, `de` , `en`, `es`, `tr`, `zn`]

Returned labels:
* positive
* negative

## Query parameters

- `all` boolean

## Request body

- Post[]
  - `id` string — id of the post.
  - `text` string, required — the text to be analysed.
  - `language` string, required — language_code of the text.

## Response `200`

Successful Response

- PostPredicted[]
  - `id` string — id of the post.
  - `predictions` Prediction[], required — the list of predictions.
    - `prediction` string, required — the predicted label.
    - `probability` number, required — the probability of the predicted label.

## Other responses

- `422` — Validation Error

---

[API](https://skmtc.net/symanto/apis/psycholinguistic-text-analytics.md) · [All operations](https://skmtc.net/symanto/apis/psycholinguistic-text-analytics/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/symanto/psycholinguistic-text-analytics/versions/d74e31f8c7cc/schema)
