cURL
curl --request POST \ --url https://www.datalab.to/api/v1/ocr \ --header 'Content-Type: multipart/form-data' \ --header 'X-API-Key: <api-key>' \ --form max_pages=123 \ --form 'page_range=<string>' \ --form 'langs=<string>' \ --form skip_cache=false \ --form file=@example-file
{ "success": true, "error": "<string>", "request_id": "<string>", "request_check_url": "<string>", "versions": {} }
This endpoint is used to submit a PDF or image for OCR. The OCR text lines will be returned, along with their bbox and polygon coordinates.
Successful Response
The response is of type object.
object
Was this page helpful?