Skip to main content
Extract Feature - Extract structured data from receipts, invoices, forms, and documents

Overview

The Extract endpoint extracts structured data from images containing text, forms, receipts, invoices, and other documents. It can extract specific fields you define or use advanced schemas for complex nested structures.

How It Works

The Extract endpoint uses AI to identify and extract specific data points from images. You can define simple fields (text, numbers, arrays) or use advanced Pydantic schemas for complex nested data structures.

Key Benefits

  • Automation: Eliminate manual data entry by automatically extracting information from documents
  • Accuracy: Reduce transcription errors with AI-powered extraction
  • Speed: Process documents 95% faster than manual entry
  • Flexibility: Support both simple field extraction and complex nested schemas

Use Cases

Receipt Processing

Extract structured data from receipts, invoices, and forms. Automate expense tracking and accounting workflows. Example:
# Using image URL
curl -X POST https://api.viscribe.ai/v1/images/extract \
  -H "VISCRIBE-APIKEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_url": "https://example.com/receipt.jpg",
    "fields": [
      {"name": "merchant_name", "type": "text"},
      {"name": "total_amount", "type": "number"},
      {"name": "date", "type": "text"},
      {"name": "items", "type": "array_text"}
    ]
  }'

# Or using base64 encoded image
curl -X POST https://api.viscribe.ai/v1/images/extract \
  -H "VISCRIBE-APIKEY: YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "image_base64": "data:image/jpeg;base64,/9j/4AAQSkZJRg...",
    "fields": [
      {"name": "merchant_name", "type": "text"},
      {"name": "total_amount", "type": "number"},
      {"name": "date", "type": "text"},
      {"name": "items", "type": "array_text"}
    ]
  }'

Form Processing

Extract data from filled forms, applications, and surveys automatically.

Invoice Management

Process invoices and extract vendor information, amounts, dates, and line items for accounting systems.

API Reference

For detailed API documentation, see the Extract endpoint reference.