Contract Data Extraction API

Turn contract PDFs into structured JSON — parties, dates, terms summary, key obligations, value — in one API call. An AI summary to scan contracts fast, not a legal opinion.

Get Free API Key → API Docs
95%+ accuracy
<2s avg parse
10 free docs/mo

AI-generated summary for fast review — not a substitute for a lawyer’s reading of the contract.

What gets extracted from a contract

Returned as clean JSON, with a confidence score, in one API call.

✓

parties

Array of the parties named in the contract.

✓

effective_date / expiry_date

When the contract starts and ends.

✓

contract_type

What kind of agreement it is.

✓

terms_summary

A plain-language AI summary of the terms.

✓

key_obligations

The main obligations the AI identified.

✓

total_value / currency

The contract’s stated value, when there is one.

One API call

No SDK required — plain REST, works from any language.

bash
# Parse a contract PDF
curl -X POST https://ai2json.com/api/v1/parse/document \
  -H "Authorization: Bearer $TOKEN" \
  -F "[email protected]"

# {"doc_type":"contract","confidence":0.93,"fields":{
#   "parties":["Acme Corp","Beta Services LLC"],
#   "effective_date":"2026-01-15","expiry_date":"2027-01-14",
#   "contract_type":"Service Agreement",
#   "terms_summary":"12-month service agreement for ongoing support...",
#   "key_obligations":["Monthly service delivery","Net-30 payment terms"],
#   "total_value":48000,"currency":"USD"}}

Simple, transparent pricing

Start free. Upgrade when you need more.

Free

$0/mo
10 docs/month
  • All document types
  • Structured JSON output
  • API key access
Get Started

Pro

$29/mo
2,000 docs/month
  • Everything in Starter
  • Batch processing
  • Custom AI prompts
Subscribe

Business

$99/mo
10,000 docs/month
  • Everything in Pro
  • Dedicated support
Subscribe

Frequently Asked Questions

Parties involved, effective date, expiry date, contract type, a plain-language terms summary, key obligations, and total value with currency when the contract states one.
No. These are an AI-generated summary of what the document says, meant to help you scan a contract quickly — not a substitute for review by a qualified lawyer, especially for anything you intend to rely on legally.
Files up to 10MB are accepted and multi-page PDFs are read in full for text extraction. Very long or text-dense contracts may have the text sent to the AI model truncated — this matters more for long legal contracts than for a typical invoice or receipt, so for lengthy agreements, check the returned confidence score and raw_summary against the source.
The API processes whatever text is in the PDF's text layer, so non-English contracts are read too; extraction quality depends on how clearly the source text maps to the fields above.

Ready to try it on your own documents?

Get your API key and parse your first document in under a minute.

Get Free API Key →