About this endpoint
What it does
Analyzes the sentiment of entities in the submitted text and returns a JSON object containing a data object with a google result when requested_service is google.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | The text to analyze. |
| requested_service | ENUM | Yes | The service to use. Allowed value: google. |
| Object | No | Google-specific settings. See schema for nested fields. | |
| google.key | String | No | Google API key. |
| google.google_language | String | No | Google language code. |
| 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. When requested_service is google, data.google is present as an object; the schema allows additional properties inside it.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Wrapper object for the analysis result. |
| data.google | Object | No | Present when requested_service is google. The schema allows additional properties. |