Skip to content
Browse all functions

Extract Data from PDF

files/extractpdfdata

Extracts the fields you name (e.g. invoice number, total, date) from a PDF – also scanned – as structured JSON. Name the fields with a short description; missing values come back as null. Works with scanned documents, photos, tables and handwriting. Processed in the EU by Mistral AI (no training on your data). Charged per page (13 credits), at most 8 pages per call.

Endpoint

POSThttps://api.1001fx.com/files/extractpdfdata
Header
X-API-KEY: YOURSECRETAPIKEY How to
Content type
application/json (no body)

Parameters

This function has no parameters.

Examples

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"}]}'

Try extractpdfdata now

Run it in your browser or create a free account and get 100 credits every month.

Changelog

  • 1.0.001.11.2026created