About this endpoint
What it does
Uploads an image file and extracts text from it. The response returns a data object containing OCR results for the supported extraction services.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| file | String | Yes | Binary image file to process. |
| language | String | No | BCP-47 language code of the text in the image. |
| azure_key | String | No | Azure key used for Azure-based extraction. |
| azure_region | String | No | Azure region. |
| azure_endpoint | String | No | Azure endpoint URL. |
| azure_account_id | String | No | Azure account ID. |
| requested_service | ENUM | No | Which service to use for extraction. Allowed values: azure, apyhub. Default: apyhub. |
| azure_access_token | String | No | Azure access token. |
Response
Returns a JSON object with a data object field. The data object can contain azure and apyhub object fields with text elements extracted by the corresponding OCR service.
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object | No | Wrapper object for OCR results. |
| data.azure | Object | No | Text elements extracted via Azure Vision Read API. |
| data.apyhub | Object | No | Text elements extracted via ApyHub OCR. |