About this endpoint
What it does
Classifies the supplied text using the requested service and returns a JSON object containing the result under data. In this schema, the supported requested_service value is google, and the corresponding result is returned in data.google when that service is requested.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | The text to classify. |
| Object | No | Google-specific configuration object. Contains the Google service settings. | |
| google.key | String | No | Google API key. |
| google.google_language | String | No | Google language code. |
| requested_service | ENUM | Yes | The service to use for classification. Allowed value: google. |
Response
Returns a JSON object with a data object field. The data object may include a google object, which is present when requested_service is google; the schema does not further constrain the shape of data.google.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | Yes | Response wrapper object. May include google when requested_service is google. |