Extract data with AI
Read a PDF or an image (invoice, ID, statement, form) and return the fields you ask for as JSON in output.data (also saved as a .json output file). Name the fields, or pass a JSON Schema. A field the document doesn't contain comes back null. Runs on MarqPDF's model or one of your own (model). Counts as one operation when it succeeds.
post/extract
Request
- Base URL: https://marqpdf.com/v1
- URL: https://marqpdf.com/v1/extract
- Auth: HTTP bearer
Request body
Example request
{
"file": "file_…",
"fields": [
"invoice_number",
{
"name": "total",
"type": "number"
},
{
"name": "due_date",
"type": "date"
}
],
"model": "anthropic/claude-opus-5-5"
}Response
Finished: the job with its output
Example response
{
"id": "job_3Fq…",
"output": {
"files": [
{
"id": "file_8rX2…"
}
]
}
}Changes
No recorded changes to this operation across all 1 revision of this API.