DocExtract

Upload an invoice, receipt, or bill. Get clean, structured JSON back in seconds. Powered by AI.

Try the API

How It Works

1. Upload

Send any PDF, image, or text file of an invoice or receipt to our API endpoint.

2. Extract

Our AI reads and understands the document, extracting vendor info, line items, totals, dates, and more.

3. Get JSON

Receive a clean, structured JSON response ready to feed into your accounting, ERP, or automation pipeline.

What Gets Extracted

Vendor & Customer

Names, full addresses, and contact information for both parties.

Line Items

Each item with description, quantity, unit price, and line total.

Financials

Subtotal, tax rate, tax amount, discounts, total, and amount due.

Metadata

Invoice number, dates (issued & due), payment terms, currency, and document type.

Pricing

$0.25
per document
Get Started

Quick Start

Get your API key and start extracting in under a minute.

# 1. Sign up and get your API key
curl -X POST https://docextract.onrender.com/billing/signup \
  -H "Content-Type: application/json" \
  -d '{"email": "you@example.com"}'

# 2. Extract data from an invoice
curl -X POST https://docextract.onrender.com/extract \
  -H "x-api-key: YOUR_API_KEY" \
  -F "file=@invoice.pdf"

# Response
{
  "success": true,
  "data": {
    "document_type": "invoice",
    "vendor_name": "Acme Corp",
    "invoice_number": "INV-2026-0042",
    "total": 9765.00,
    "currency": "USD",
    "line_items": [...],
    "confidence": 0.95
  }
}

API Reference

POST /extract

Upload a document and receive extracted data.

Header x-api-key: YOUR_API_KEY
Body multipart/form-data with a file field
Formats PDF, PNG, JPEG, GIF, WEBP, plain text
Max size 10 MB

POST /billing/signup

Create an account and get an API key.

Body {"email": "you@example.com"}
Returns Your API key (save it — shown only once)

GET /billing/usage

Check your usage and estimated charges.

curl -H "x-api-key: YOUR_API_KEY" https://docextract.onrender.com/billing/usage

GET /health

Health check endpoint.

curl https://docextract.onrender.com/health
# {"status": "ok"}