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.
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
Simple, Transparent Pricing
Start free with 200 credits/month. Scale as you grow.
Start with 200 free credits/month
Perfect for testing and hobby projects. Access all APIs with no credit card required.
Starter
Pro
Scale
Growth
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
Extraction
- β’Standard: 2 credits/page
- β’Advanced: 4 credits/page
Split
- β’2 credits/page
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.