---
title: AI Text Sentiment Analysis API
slug: analyze-text-sentiment
url: https://apyverse.com/apyhub/service/analyze-text-sentiment
provider: ApyHub
categories: [Artificial Intelligence]
auth: api_key
---

# AI Text Sentiment Analysis API

Analyze a text string and return provider-specific sentiment results from Azure, Google, or ApyHub for feedback triage and text classification.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `ai/text/sentiment/analysis` | What it does Analyzes the sentiment of the supplied text and returns a JSON object whose data field… | 500 |

## About

## What it does
Text Sentiment Analyzer evaluates the sentiment of a text string and returns provider-specific analysis data from the selected service.

Send a `body` object with `text` as the required input. You can also include `encoding`, `language`, and `requested_service` to choose between `azure`, `google`, or `apyhub`. If you need to authenticate against a provider directly, the request supports optional `azure` credentials (`key`, `region`, `endpoint`, `account_id`, `access_token`) and optional `google` settings (`google_language`, `google_credential_json`).

The response contains a top-level `data` object with one of three possible branches: `azure`, `google`, or `apyhub`. Each branch holds the sentiment analysis response from that provider. That makes it useful when you want to compare provider output, route analysis through a specific NLP stack, or keep one endpoint in front of multiple sentiment engines.

Use Text Sentiment Analyzer when you need to score user feedback, triage support messages, or classify short reviews by tone before storing them, routing them, or displaying them in a dashboard.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/analyze-text-sentiment
