Lyzr AI

OCR API Documentation
Want to automate ? Use our OCR API

Endpoint

POST https://lyzr-ocr.lyzr.app/extract

Summary: Extract Pdf

Parameters

  • api_key (query, required): Api Key (string)

🔑 Click here to get your API key

Request Body

  • Content Type: multipart/form-data
  • Required: Yes
{ "file": "<binary file>" }

Responses

  • 200 OK
    • Description: Successful Response
    • Content Type: application/json
{ "status": "success", "data" : { "1" : { "page" : 1, "content" : "string" } }, "total_actions" : number }
  • 422 Unprocessable Entity
    • Description: Validation Error
    • Content Type: application/json
{ "detail": [ { "loc": ["string", 0], "msg": "string", "type": "string" } ] }