About this endpoint
What it does
Classifies the provided text using the requested service and returns a JSON object containing a data wrapper with service-specific output. For this schema, the only supported requested service is google, and the corresponding result is returned under data.google when applicable.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| text | String | Yes | The text to classify. |
| requested_service | ENUM | Yes | Must be google. |
| Object | No | Google-specific configuration object. See schema for nested fields. | |
| google.key | String | No | Google API key. |
| google.google_language | String | No | Google language code. |
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 | Wrapper object for the classification result. |
| data.google | Object | No | Present when requested_service is google. The schema allows additional properties within this object. |