Skip to main content

Query PDF Results

Mathpix allows customers to search their results from posts to /v3/pdf with a GET request on /v3/pdf-results?search-parameters. The search request must contain a valid app_key header to identify the group owning the results to search.

Request parameters

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'
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

Query result object

{
"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": {}
},
{
"id": "9ad69e94346e65047215d25709760f29",
"input_file": "https://s3.amazonaws.com/mathpix-ocr-examples/1457.pdf",
"status": "completed",
"created_at": "2020-06-27T03:08:23.827Z",
"modified_at": "2020-06-27T03:08:27.827Z",
"num_pages": 1,
"num_pages_completed": 1,
"request_args": {}
}
]
}
id string

ID of the processed PDF

input_file string

The URL or the filename of the processed PDF

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