Arabic OCR API for Bilingual Documents, Tables & GCC IDs
Turn scanned Arabic and bilingual Arabic–English PDFs, invoices, tables, Istimara, Mulkiya, and regional IDs into deterministic JSON, UTF-8 CSV, and Excel—with automatic Arabic-Indic numeral normalization and zero model training.
curl -X POST "https://api.structocr.com/v1/invoice" \
-H "x-api-key: YOUR_API_KEY" \
-F "file=@./riyadh-bilingual-invoice.pdf"{
"success": true,
"data": {
"type": "invoice",
"invoice_number": "INV-2026-4180",
"date": "2026-11-18",
"currency": "SAR",
"language": "ar",
"merchant": {
"name": "مؤسسة النور / Al Noor Industrial",
"tax_id": "310482910400003"
},
"financials": {
"subtotal": 4000,
"tax_amount": 592.5,
"total_amount": 4542.5,
"tax_inclusive": false
},
"gcc_compliance": {
"jurisdiction": "SAU",
"tax_id_type": "ksa_vat",
"tax_id_valid": true
}
}
}Need to test an Arabic PDF, invoice, or ID card in your browser without signing up?
Why Generic OCR Arabic Tools Break on Real GCC Business Documents
Free online OCR Arabic converters scramble right-to-left text next to English headers, struggle with handwritten form entries, shift multi-page tables, and drop numbers on watermarked cards. StructOCR returns typed JSON and Excel-ready tables built for engineering teams.
Native RTL & Bilingual Layout Parsing
Reads cursive Arabic typography alongside English labels, tabular columns, and watermarks without reversed text order or broken diacritics.
Deterministic JSON, CSV & Excel Output
Move beyond raw text dumps. Enforce strict custom JSON schemas on /v1/pdf-extract or tap dedicated GCC schemas for Istimara, Mulkiya, health cards, and invoices.
Zero Data Retention & Auto-Refund
Strict in-memory zero-retention processing on /v1/pdf-extract and /v1/health-card, zero model training on customer files, and automatic credit refunds on failed requests.
Inspect Real Bilingual Arabic & GCC JSON Outputs
Switch across four production StructOCR endpoints to see exact UTF-8 Arabic preservation, Western numeral normalization, and localized GCC structures.
{
"success": true,
"mode": "auto",
"document": {
"summary": {
"document_type": "supplier_quotation",
"title": "عرض أسعار توريد معدات / Equipment Supply Quotation",
"language": "ar"
},
"fields": {
"quotation_number": "QT-2026-0842",
"vendor": "شركة الخليج للتجهيزات / Gulf Technical Trading LLC",
"currency": "AED",
"total": 18900
},
"tables": [
{
"id": "table_1",
"title": "جدول الأصناف / Line Items",
"page_range": [1, 2],
"stitched": true,
"headers": ["Code", "Description", "Qty", "Amount (AED)"],
"rows": [
["GT-102", "وحدة تحكم صناعية / Industrial Controller", "6", "12000.00"],
["GT-215", "محول طاقة / Power Supply Module", "10", "6900.00"]
]
}
]
},
"usage": { "page_count": 2, "pages_succeeded": 2, "credits_charged": 4 }
}End-to-End Document Coverage Across UAE, Saudi Arabia & MENA
Use flexible schema extraction for arbitrary Arabic PDFs and pair it with specialized check-digit endpoints for finance, healthcare, KYC, and fleet onboarding.
POST /v1/pdf-extract
Arabic PDFs, Tables & Custom Schemas
Extract scanned Arabic & bilingual PDFs up to 10 MB into stitched multi-page tables (UTF-8 CSV / Excel .xlsx) or custom JSON schemas (up to 50 fields).
POST /v1/invoice
Bilingual GCC & ZATCA Tax Invoices
Parse single- and multi-page Arabic–English invoices (up to 5 pages) with KSA 15-digit VAT / UAE TRN checks, ZATCA Phase 1/2 TLV QR cross-checking, and line items.
POST /v1/health-card
KSA & UAE Health Insurance Cards
Returns raw Arabic + normalized English fields for Bupa Arabia, Tawuniya, Daman, Thiqa & Nextcare with code-validated 10-digit Iqama and 15-digit Emirates IDs.
POST /v1/vehicle-registration
Saudi Istimara & UAE Mulkiya Cards
Dedicated regional nodes isolate Saudi 9-digit TGA sequence numbers from plate letters and extract UAE Mulkiya engine numbers, classes, and VINs.
POST /v1/national-id
Emirates ID, Saudi Iqama & MENA IDs
Formats 15-digit UAE Emirates IDs (784-...), validates 10-digit Saudi National IDs (1...) & Iqamas (2...), converts Hijri dates to Gregorian, and parses Egypt 14-digit IDs.
POST /v1/license-plate
Arabic License Plates & GCC Logistics
Read bilingual Arabic–Latin license plates, GCC compliance plate VINs, and Saudi/UAE port container codes for fleet, tolling, and customs ops.
Test Arabic & Bilingual PDF Extraction Right Now
Upload any bilingual Arabic–English PDF (up to 10 MB) or try a built-in sample with zero registration required. Export directly to JSON, UTF-8 CSV, or Excel (.xlsx).
Drop Into Python, Node.js, or n8n Pipelines
Authenticate with a single x-api-key header across every StructOCR endpoint. No heavy SDK lock-in, no layout training sets, and no Base64 bloat on PDFs.
- Up to 10 MB binary uploads & 20 pages per call on
/v1/pdf-extract - UTF-8 native Arabic strings + Western digits (0–9) in predictable JSON schemas
- Non-expiring pay-as-you-go packs starting at $5 (no recurring seat fees)
import os
import requests
# Extract stitched Arabic & English tables + custom JSON schema from a scanned PDF
with open("bilingual-document.pdf", "rb") as pdf_file:
response = requests.post(
"https://api.structocr.com/v1/pdf-extract",
headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
files={"file": ("bilingual-document.pdf", pdf_file, "application/pdf")},
data={
"mode": "auto",
"pages": "1-5",
"stitch_tables": "true",
"schema": '["vendor_name","document_number","currency","total_amount"]',
},
timeout=60,
)
payload = response.json()
print("Summary:", payload["document"]["summary"])
print("Custom JSON:", payload["custom_data"])
for table in payload["document"]["tables"]:
print(table["title"], "rows:", len(table["rows"]))Explore Country-Specific GCC Guides & Code Tutorials
Jump straight to regional schemas, carrier guides, and backend tutorials for Saudi Arabia, UAE, and Egypt workflows.
Saudi Arabia (KSA) & UAE Vehicle & Fleet OCR
Production schemas for Istimara, Mulkiya, Arabic plates, driving licences, and GCC VIN plates.
KSA & UAE Health Insurance Card OCR
Zero-retention bilingual medical card extraction with deterministic Iqama and Emirates ID validation.
MENA Identity, Egypt & Port Logistics
Arabic-Indic numeral normalization for Egyptian IDs, vehicle licenses, and GCC maritime terminals.
Middle East Developer & n8n Tutorials
Copy-ready Python, Node.js, and n8n automation workflows for UAE, Saudi Arabia, and Egypt documents.
- ZATCA Invoice Scanner & GCC VAT OCR API (KSA)
- UAE VAT & 15-Digit TRN Invoice OCR API (Dubai / FTA)
- Why Tesseract & PyPDF2 Reverse Arabic RTL PDFs (UTF-8 JSON Guide)
- Arabic PDF Table to Excel (RTL & Eastern Numerals Guide)
- Automate Image to Excel & Google Sheets in n8n
- Image to Excel OCR API (JPG/PNG Table Photos)
- UAE Emirates National ID OCR in Python
- Saudi Arabia National ID / Iqama OCR in Python
- Egypt National ID OCR in Python
- Saudi Istimara OCR Automation with n8n
- Saudi National ID & Iqama OCR with n8n
- UAE Vehicle Registration (Mulkiya) OCR in Python
- Arabic & Middle East (GCC) OCR API Comparison (2026)
- Vehicle Registration & Saudi Istimara OCR API Comparison
Arabic OCR API Frequently Asked Questions
Ready to Build with StructOCR?
Get your API key in under a minute. New users receive 200 free credits to test Passport, VIN, License Plate, Container, Receipt, HIN, Driver License, ID Card, Vehicle Registration, Weighbridge Ticket, ATM Cassette and Invoice OCR APIs.
✓ No credit card required · ✓ Instant API key · ✓ Full API access