StructureAI

Turn messy text into clean JSON with one API call.

by Avatrix LLC

API Access

$2

One-time payment. 100 requests included.

Secure payment via Stripe

Receipts

OCR text to line items, totals, dates

Invoices

Vendor, amounts, due dates, line items

Emails

Sender, subject, action items, sentiment

Resumes

Name, experience, skills, education

Contacts

Name, email, phone, company, title

Custom

Define your own fields — extract anything

Try It

curl -X POST https://api-service-wine.vercel.app/api/extract \
  -H "Content-Type: application/json" \
  -H "X-API-Key: YOUR_API_KEY" \
  -d '{
    "text": "Receipt from Whole Foods 03/15/2024\nApples $3.99\nMilk $5.49\nTotal: $9.48",
    "schema": "receipt"
  }'

// Response:
{
  "success": true,
  "data": {
    "date": "2024-03-15",
    "merchant": "Whole Foods",
    "items": [
      { "name": "Apples", "unit_price": 3.99 },
      { "name": "Milk", "unit_price": 5.49 }
    ],
    "total": 9.48
  },
  "confidence": 0.88
}

API Reference

POST /api/extract

ParameterTypeRequiredDescription
textstringYesThe unstructured text to extract from
schemastringYesreceipt, invoice, email, resume, contact, custom
custom_fieldsstring[]If customField names to extract when schema is "custom"

Header: X-API-Key: your_key

GET /api/health

Returns API status and version. No auth required.