Extract Specific Fields from PDFs with AI

Use our API to pull structured data like names, dates, amounts, and custom fields from any PDF.

API Overview

Extract specific fields from PDFs using AI-powered prompts. Pull data points like invoice numbers, dates, amounts, and more.

POSThttps://pdf.ai/v2/extract
import requests
    
schema = {
    "type": "object",
    "properties": {
        "invoice_number": {"type": "string"},
        "date": {"type": "string"},
        "total_amount": {"type": "string"},
        "vendor_name": {"type": "string"}
    }
}

response = requests.post(
    "https://pdf.ai/api/v2/extract",
    headers={"X-API-Key": "YOUR_API_KEY"},
    data={
        "schema": json.dumps(schema),
        "docId": "your-document-id"
    }
)

data = response.json()

Response Example

{
  "success": true,
  "data": {
    "result": { /* extracted data matching your schema */ },
    "citations": [
      {
        "content": "string",
        "pageNumber": number,
        "schemaLink": "string" // e.g. result.people[2].name
      }
    ]
  }
}

Extract Structured Data

πŸ“‹

Form Digitization

Extract data from invoices, receipts, contracts, and forms automatically.

🏷️

Metadata Tagging

Automatically extract and tag documents with relevant metadata for search and organization.

πŸ“Š

Content Classification

Classify documents by type and extract key information for business intelligence.

Smart Field Extraction

🎯
Custom Prompts
Define what to extract
πŸ€–
AI-Powered
Smart field detection
πŸ“‹
Structured Output
JSON format
⚑
Fast Processing
Quick extraction
πŸ”’
Secure
Private processing
πŸ›‘οΈ
Uptime Guarantee
SLA‑backed 99.9% availability

Simple, Transparent Pricing

Start free with 200 credits/month. Scale as you grow.

🎁 Free Plan

Start with 200 free credits/month

Perfect for testing and hobby projects. Access all APIs with no credit card required.

Starter

$49/month
3,000 credits
$0.016/credit

Pro

$99/month
10,000 credits
$0.010/credit
Most Popular

Scale

$249/month
30,000 credits
$0.008/credit

Growth

$599/month
100,000 credits
$0.006/credit
View All Plans on PDF.ai

All plans include access to Parse, Extract, and Split APIs

Frequently asked questions

Credits are charged per page based on the operation type and mode you select.

Parsing

  • β€’Standard (OCR): 1 credit/page
  • β€’Advanced (VLM): 2 credits/page
+ extra credits if images need LLM analysis

Extraction

  • β€’Standard: 2 credits/page
  • β€’Advanced: 4 credits/page
+ parsing credits if no cached result exists

Split

  • β€’2 credits/page
+ parsing credits if no cached result exists

Ready to Build with Our APIs?

Get started with PDF APIs, power AI API tools. Transform how you extract and work with documents using our AI-powered document processing capabilities.