About this endpoint
What it does
Analyzes the sentiment of entities in the text you send in the request body. The response is a JSON object with a data object that includes a google object when requested_service is google.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | The input text to analyze. |
| requested_service | ENUM | Yes | Service to use for the analysis. Allowed value: google. |
| Object | No | Google-specific configuration object. Contains optional key and google_language fields. | |
| google.key | String | No | Google API key. |
| google.google_language | String | No | Language code for Google processing. |
| encoding | String | No | Text encoding. |
| language | String | No | Language code for the input text. |
Response
Returns a JSON object with a required data object field. The data object may include a google object when requested_service is google.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response container object. May include google when requested_service is google. |
| data.google | Object | No | Present when requested_service is google. The schema does not define its internal fields. |