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
OCR text to line items, totals, dates
Vendor, amounts, due dates, line items
Sender, subject, action items, sentiment
Name, experience, skills, education
Name, email, phone, company, title
Define your own fields — extract anything
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
}POST /api/extract| Parameter | Type | Required | Description |
|---|---|---|---|
text | string | Yes | The unstructured text to extract from |
schema | string | Yes | receipt, invoice, email, resume, contact, custom |
custom_fields | string[] | If custom | Field names to extract when schema is "custom" |
Header: X-API-Key: your_key
GET /api/healthReturns API status and version. No auth required.