---
title: "Emotion Analysis"
method: POST
path: "/ekman-emotion"
tags: ["Text Analysis"]
---

# Emotion Analysis

`POST /ekman-emotion`

Detect the emotions of the text based on Ekman.

Supported Langauges: [`en`, `de`, `es`]

Returned labels:
* anger
* disgust
* fear
* joy
* sadness
* surprise
* no-emotion

## 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)
