Skip to main content
GET
/
api
/
v1
/
layout
/
{request_id}
Layout Result Check
curl --request GET \
  --url https://www.datalab.to/api/v1/layout/{request_id} \
  --header 'X-API-Key: <api-key>'
{
  "status": "<string>",
  "pages": [
    {}
  ],
  "success": true,
  "error": "<string>",
  "page_count": 123,
  "total_cost": 123,
  "versions": {}
}

Authorizations

X-API-Key
string
header
required

Path Parameters

request_id
string
required

Cookies

access_token
string

Response

Successful Response

status
string
required

The status of the request. Should be 'complete' when the request is done.

pages
Pages · object[] | null

The detected layout bboxes and reading order. Each item in the list represents all the bboxes in a page, in order. Images have only a single page.

success
boolean | null

Whether the conversion was successful.

error
string | null

If the conversion was not successful, this will contain an error message.

page_count
integer | null

The number of pages that had layout run on them.

total_cost
integer | null

The total cost of the conversion.

versions

A dictionary of the versions of the libraries used in the request.