Key-value pair extraction API

Automatically identify and extract key values without manual supervision or templates. Integrate a KVP API to extract specific data like credit cards, addresses, and emails from unstructured documents.

Template-free, ML-driven extraction

Identify key-value pairs from documents such as invoices, forms, and IDs without defining rules or templates. Our API adapts intelligently using machine learning.

Automate with Zapier

Automatically extract key-value pairs from images in Google Drive and save them as JSON using our Zapier integration. Automate your document workflows to save time and centralize data.

Works with complex layouts

Extract information from documents with varying formats, irregular spacing, and inconsistent structure with high accuracy.

Used by Lufthansa, Disney, Autodesk, UBS, Dropbox, IBM
Lufthansa
Disney
Autodesk
UBS
Dropbox
IBM

Try it out

This example will extract key-value pairs from an input file and return it as a JSON file.


Try it out in three steps

  1. Add an image named invoice.webp to your project folder.
  2. Run the code from the same folder.
  3. Open result.json to see the output.
curl -X POST https://api.nutrient.io/build \
-H "Authorization: Bearer your_api_key_here" \
-o result.json \
--fail \
-F invoice=@invoice.webp \
-F instructions='{
"parts": [
{
"file": "invoice"
}
],
"output": {
"type": "json-content",
"keyValuePairs": true
}
}'

Data Extraction API

Extract specific fields from any document

Define a schema and get back typed JSON with confidence scores and source context for every value.

Start free:

    • 5,000 credits per month
    • No credit card required
    • Schema generator in Studio

Security is our top priority

SOC 2 Type 2 audited

Nutrient’s infrastructure is SOC 2 Type 2 audited and GDPR-compliant. See our privacy policy and security documentation for details on data handling.

HTTPS encryption

All communication between your application and Nutrient is done via HTTPS to ensure your data is encrypted when it’s sent to us.

Safe payment processing

All payments are handled by Paddle. Nutrient DWS Processor API never has direct access to any of your payment data.


Frequently asked questions

How do I extract key-value pairs from forms via API?

Send a document to the Build endpoint with the key-value pair extraction action and receive the detected fields back as JSON — no templates or rules to maintain. The getting started guide covers API key setup and your first request.

What types of documents does key-value pair extraction support?

It works on invoices, forms, IDs, and other documents with varying layouts, irregular spacing, and inconsistent structure. For structured tabular rows, pair it with table extraction.

How is key-value pair extraction different from full data extraction?

Key-value pair extraction detects field-and-value pairs like dates, IDs, and emails. The broader Data Extraction API spans key-value, table, and text extraction in a single workflow.

Which programming languages can call the API?

Any language that makes HTTP requests. Nutrient provides examples for JavaScript, Python, Java, C# (.NET), and PHP, plus curl and a Postman collection.

Is the key-value pair extraction API SOC 2 compliant?

Yes. The API is backed by Nutrient’s SOC 2 Type 2-audited infrastructure — built for use in business-critical and regulated workflows.

How is the key-value pair extraction API priced?

The API runs on credits, with a specific credit cost per action. See Processor API pricing; new accounts include free monthly credits.

Ready to try it?

Create an account to get your DWS Processor API key and start making API calls.