Skip to main content

Query PDF Results

Search and list results from previous v3/pdf requests.

GET v3/pdf-results

GET api.mathpix.com/v3/pdf-results

The search request must contain a valid app_key header to identify the group owning the results.

Example

# Example: Query PDF processing results with pagination and date filter
curl -X GET -H 'app_key: APP_KEY' \
'https://api.mathpix.com/v3/pdf-results?per_page=100&from_date=2020-06-26T03%3A08%3A22.827Z'
Example response
{
"pdfs": [
{
"id": "113cee229ab27b715b7cc24cfdbb2c33",
"input_file": "https://s3.amazonaws.com/mathpix-ocr-examples/authors_0.pdf",
"status": "completed",
"created_at": "2020-06-26T03:08:23.827Z",
"modified_at": "2020-06-26T03:08:27.827Z",
"num_pages": 1,
"num_pages_completed": 1,
"request_args": {}
}
]
}

Request parameters

page integer, default value is 1

First page of results to return

per_page integer, default value is 100

Number of results to return

from_date string (optional)

starting (included) ISO datetime

to_date string (optional)

ending (excluded) ISO datetime

app_id string (optional)

results for the given app_id

Response body

List of PdfResult objects

Type definitions

PdfResult object

id string

ID of the processed PDF

input_file string

The URL or the filename of the processed PDF

status string
ValueMeaning
receivedRequest accepted
loadedPDF downloaded onto our servers
splitPages split and sent for processing
completedProcessing finished successfully
errorA problem occurred during processing
created_at string

ISO timestamp of when the PDF was received

modified_at string

ISO timestamp of when the PDF finished processing

num_pages integer

Number of pages in the request PDF

num_pages_completed integer

Number of pages of the PDF that were processed

request_args object

Request body arguments