Skip to main content
GET
/
api
/
v1
/
table_rec
/
{request_id}
Table Rec Result Check
curl --request GET \
  --url https://www.datalab.to/api/v1/table_rec/{request_id} \
  --header 'X-API-Key: <api-key>'
{
  "status": "<string>",
  "output_format": "<string>",
  "json": {},
  "markdown": "<string>",
  "html": "<string>",
  "images": {},
  "metadata": {},
  "success": true,
  "error": "<string>",
  "page_count": 123,
  "total_cost": 123,
  "cost_breakdown": {},
  "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.

output_format
string

The format of the output. 'markdown' or 'json'.

json
Json · object

The JSON representation of the PDF if the output format is 'json'.

markdown
string | null

The markdown representation of the PDF if the output format is 'markdown'.

html
string | null

The HTML representation of the PDF if the output format is 'html'.

images
Images · object

A dictionary of the images in the PDF, where the key is the filename for the image, and the value is the base64 encoded image. Images should be stored in the same directory as the PDF.

metadata
Metadata · object

A dictionary of metadata about the PDF and the conversion process.

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 were converted.

total_cost
integer | null
deprecated

The total cost of the conversion.

cost_breakdown
Cost Breakdown · object

A dictionary of the cost breakdown of this request. Includes the list cost without discounts and final cost to clients after any discounts (e.g. for opting into model training).

versions

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