Extract Data from PDF
Three fields from a one-page document
Input
Expects multipart/form-data or a json body
{
"fileUrl": "https://api.1001fx.com/testdata/invoice.pdf",
"fields": [
{
"name": "number",
"type": "string",
"description": "Document number"
},
{
"name": "date",
"type": "date",
"description": "Document date"
},
{
"name": "total",
"type": "number",
"description": "Gross total"
}
]
}Output · HTTP 200
Response
{
"statusCode": 200
}Show curl command
curl -X POST 'https://api.1001fx.com/files/extractpdfdata' \
-H 'X-API-KEY: YOURSECRETAPIKEY' \
-H 'Content-Type: application/json' \
-d '{"fileUrl":"https://api.1001fx.com/testdata/invoice.pdf","fields":[{"name":"number","type":"string","description":"Document number"},{"name":"date","type":"date","description":"Document date"},{"name":"total","type":"number","description":"Gross total"}]}'