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 First page of results to return
per_page Number of results to return
from_date starting (included) ISO datetime
to_date ending (excluded) ISO datetime
app_id 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 ID of the processed PDF
input_file The URL or the filename of the processed PDF
created_at ISO timestamp of when the PDF was received
modified_at ISO timestamp of when the PDF finished processing
num_pages Number of pages in the request PDF
num_pages_completed Number of pages of the PDF that were processed
request_args Request body arguments