---
title: AI Text Entity Sentiment Analysis API
slug: entity-sentiment-analysis
url: https://apyhub.com/apyhub/service/entity-sentiment-analysis
provider: ApyHub
categories: [Model Kit]
tags: [sentiment-analysis, entity-sentiment, nlp, text-analysis]
auth: api_key
version: 1.0.0
service_type: sync
endpoints: 1
atoms: 500
mcp: true
alias: ai-text-entity-sentiment-analysis
---

# AI Text Entity Sentiment Analysis API

Analyze sentiment around each entity mentioned in a text. Send text with requested_service=google and receive a data.google result for NLP work.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| POST | `https://api.eu.apyhub.com/apyhub/entity-sentiment-analysis` | What it does Analyzes the sentiment of entities in the submitted text and returns a JSON object con… | 500 |

## Endpoint reference

### Entity Sentiment Analysis

`POST https://api.eu.apyhub.com/apyhub/entity-sentiment-analysis` · 500 atoms · accepts `application/json` · returns `application/json`

| Parameter | In | Type | Required | Description |
| --- | --- | --- | --- | --- |
| `text` | body | string | yes | Example: `I love R&B music. Marvin Gaye is the best. Whats Going On is one of my favorite…`. |
| `google.key` | body | string | no | Example: `AIzaSyExampleKey123456789`. |
| `google.google_language` | body | string | no | Example: `en`. |
| `encoding` | body | string | no | Example: `UTF8`. |
| `language` | body | string | no | Example: `en`. |
| `requested_service` | body | string | yes | One of: google. Example: `google`. |

#### Quickstart

Analyze the sentiment of a piece of text with the Google service.

```bash
curl -X POST "https://api.eu.apyhub.com/apyhub/entity-sentiment-analysis" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "text": "I love R&B music. Marvin Gaye is the best. Whats Going On is one of my favorite songs. It was so sad when Marvin Gaye died.",
    "requested_service": "google",
    "google": {
        "key": "your-google-key"
    }
  }'
```

#### What you'll get back

Returns a JSON object with a `data` object. When `requested_service` is `google`, `data.google` contains the Google sentiment analysis result.

```json
{
  "data": {
    "google": {}
  }
}
```

## About

## What it does
Entity Sentiment Analysis identifies sentiment for entities mentioned in a text input and returns the result under a `google` object when you request the Google service. Send plain text along with `requested_service` set to `google`, and include optional language settings if you need to guide the analysis.

Use it when you need to understand how people feel about specific brands, products, or public figures inside customer reviews, social posts, support tickets, or news coverage. The request schema also allows an optional `google` object with a `key` and `google_language`, plus optional `encoding` and `language` fields for text handling.

The response is intentionally compact: a top-level `data` object containing `google` when that service is requested. That makes it easy to plug into moderation flows, social listening dashboards, review analytics, or any pipeline that scores sentiment around named entities rather than whole documents.

If your application needs entity-level opinion signals without building your own NLP pipeline, Entity Sentiment Analysis gives you a focused interface for text-based sentiment analysis.

| Provider (requested_service) | Atoms |
|------------------------------|------:|
| Google                       |  500 |

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

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