---
title: AI Text Sentiment Analysis API
slug: analyze-text-sentiment
url: https://apyhub.com/apyhub/service/analyze-text-sentiment
provider: ApyHub
tags: [sentiment-analysis, text-classification, nlp, customer-feedback, opinion-mining]
auth: api_key
---

# AI Text Sentiment Analysis API

What it does Text Sentiment Analyzer lets you send a text string and get sentiment analysis back from one of three providers: ApyHub, Azure, or Google. Use it when you need to classify customer feedback, scan reviews, or triage support messages by tone. The request body requires body.text. You can…

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/ai/text/sentiment/analysis` | What it does Analyzes the sentiment of the submitted text. The request body must include text, and… | 500 |

## About

## What it does
Text Sentiment Analyzer lets you send a text string and get sentiment analysis back from one of three providers: ApyHub, Azure, or Google. Use it when you need to classify customer feedback, scan reviews, or triage support messages by tone.

The request body requires `body.text`. You can also include `body.encoding`, `body.language`, and `body.requested_service` to choose the provider and describe the text. If you want to run it against your own cloud account, the schema also supports provider-specific credentials under `body.azure` or `body.google`.

The response returns a `data` object with a provider-specific result under `azure`, `apyhub`, or `google`, depending on which service you requested. The schema does not expose a fixed sentiment label or score here, so plan to handle the provider response structure directly.

Use Text Sentiment Analyzer for moderation workflows, survey analysis, or any pipeline where you need a machine-readable pass on opinionated text without building your own NLP layer.

| Provider (requested_service) | Atoms |
|------------------------------|------:|
| Azure                        |   500 |
| Google                       |  500 |
| ApyHub                       |  2000 |

## Usage

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