PDF data extraction API Your fields from every PDF, as JSON

Upload 1 to 5 samples of a document you receive often. AI suggests the fields and their values, you correct them, and AI sets up the extraction. It goes live only when it returns every expected value on every sample. Then every document of that kind comes back as your fields, in milliseconds a page.

POST /v1/document-types/42/extract
curl https://api.100sands.com/v1/document-types/42/extract \
  -H "Authorization: Bearer $SANDS_API_KEY" \
  -F [email protected]

{
  "id": "ext_8Kq2Vd",
  "documentType": { "id": 42, "name": "Company registry extract" },
  "version": 2,
  "fileName": "company-extract.pdf",
  "pages": 3,
  "createdAt": "2026-12-04T09:12:44Z",
  "fields": {
    "companyName": "Harbor Lane Logistics Ltd",
    "companyNumber": "51-482913-6",
    "status": "Active",
    "registeredOn": "2019-03-14",
    "shareCapital": 1250.5,
    "directors": ["Dana Levi", "Omar Haddad"],
    "charges": [
      { "chargeNumber": "1", "holder": "Harbor Credit Ltd", "status": "Active" },
      { "chargeNumber": "2", "holder": "Quay Street Bank", "status": "Released" }
    ],
    "liquidator": null
  }
}

What you get

  • Checked before it goes live

    The extraction is tested on every sample you gave it, and goes live only when every expected value comes back on every one.

  • Empty, never guessed

    When a value isn't in a document, its field comes back null, or an empty list. You never get a made-up value.

  • Copied exactly

    Every value is copied character for character from the file's own text.

  • Lists and tables

    Besides text, numbers, dates and yes/no, a field can hold a list of values or a table of rows with columns.

  • No AI per document

    AI helps only during setup. Extraction runs by fixed rules, in milliseconds a page, the same way every time.

  • Versions you control

    Each change is a new version, checked on every sample. You choose when it goes live, and can pin a version in your calls.

How it works

  1. Upload 1 to 5 sample PDF or HTML files of one kind of document.
  2. AI suggests the fields and fills in each sample's values.
  3. Check the values and correct anything that's wrong.
  4. AI sets up the extraction and tests it on every sample. It goes live when every value matches.
  5. POST any document of that kind to your document type and get the fields as JSON.

Field types

Text
Copied as it is written, such as a name or a reference number.
Number
Returned as a JSON number, ready to add up.
Date
Returned as YYYY-MM-DD when the date format is known.
Yes/no
Returned as true or false.
List
Many values, such as every director named in a registry extract.
Table
Rows with up to 20 columns, such as the lines of an invoice.

Limits

  • 1 to 5 samples per document type, up to 10 MB each
  • Up to 40 fields per document type
  • Made for documents of one kind: the same form, the same supplier's invoices, the same registry extract
  • PDF and HTML files that contain text; scans are refused
  • 2 document types on Free, 20 on Starter, 100 on Pro

Price

Free: 100 documents and 10 AI setup runs a month. Starter: $20 a month for 20,000 documents. Pro: $79 a month for 100,000.

Compare the plans

Questions

How do I extract data from a PDF into JSON?

Set up a document type in the app from 1 to 5 samples, check the fields and values AI suggests, and let AI build the extraction. Once it is live, POST any document of that kind to /v1/document-types/{id}/extract and get the fields back as JSON.

What does it mean that it goes live only at 100%?

When AI builds the extraction, it is tested on every sample you gave it. If any expected value doesn't come back exactly, the build isn't ready and nothing goes live. You see which values matched.

What happens if a field isn't in the document?

The field comes back as null, or as an empty list for list and table fields. 100sands never fills a field with a guess.

Is AI used on every document?

No. AI is used only while you set up or change a document type. Extraction afterwards runs by fixed rules, so it is fast, costs no AI runs, and gives the same answer every time.

Which documents does it suit?

Documents you receive often in the same form: invoices from one supplier, registry extracts, statements, certificates. Set up one document type for each kind.

Blog

Try it on your own documents

100 documents a month free. No credit card.

Start free