# StructOCR > Structured OCR REST API and Web Tools platform that converts identity documents, PDFs, tables, invoices, receipts, vehicles, and logistics records into schema-validated JSON and spreadsheets. Pay-as-you-go credits never expire, with 200 free credits on signup (no subscription required) and strict zero data retention on sensitive document endpoints. Key facts: - API Base URL: `https://api.structocr.com` - Authentication: `x-api-key: YOUR_API_KEY` header - Unified Credit Wallet: Web Tools and REST API share one non-expiring credit balance (200 free credits on signup; paid packs from $5 for 500 credits up to $99 for 17,000 credits; $0 monthly subscription; failed non-200 requests & failed PDF pages are automatically refunded). - Transparent Cost per 1,000 Scans (USD, Pro $99 pack – Mini $5 pack): 1-credit endpoints (Standard Receipt, VIN, Container, License Plate, HIN, ATM Cassette) = `$5.82–$10.00 / 1,000`; 2-credit endpoints (PDF Extract per page, Image to Excel, Passport, National ID, Driver License, PDF417, Health Card, Visa, Proof of Address, Vehicle Registration, Enhanced Receipt) = `$11.65–$20.00 / 1,000`; 3-credit endpoints (multi-page PDF Invoice up to 5 pages, Bill of Lading) = `$17.47–$30.00 / 1,000`; 4-credit Driver License Front + Back Verify = `$23.29–$40.00 / 1,000`. Crypto deposits (USDT/USDC) receive an automatic +10% credit bonus. - Strict Zero Data Retention (images and extracted payloads are never stored on disk or in database logs): `/v1/pdf-extract`, `/v1/image-to-excel`, `/v1/driver-license-pdf417`, `/v1/driver-license-verify`, `/v1/health-card`, `/v1/visa`, `/v1/proof-of-address`. - Standard Retention (at most 24 hours for quality diagnostics before automatic deletion): all other OCR endpoints. - Official SDKs: Python (`pip install structocr`) and Node.js (`npm install structocr`). ## Machine-Readable Specs & Documentation - [Full LLM Documentation (llms-full.txt)](https://structocr.com/llms-full.txt): Complete self-contained Markdown reference covering all 23 public REST endpoints, per-1,000 USD pricing, zero-retention guarantees, error codes, and SDK/cURL/n8n examples. - [OpenAPI 3.1 Specification (openapi.json)](https://structocr.com/openapi.json): Machine-readable OpenAPI 3.1.0 contract for all public /v1/* endpoints. - [Developer Documentation Hub](https://structocr.com/developers): Interactive endpoint index, authentication guide, and error reference. - [Pricing & Cost per 1,000 Scans](https://structocr.com/pricing): Transparent pay-as-you-go OCR API pricing from $5.82–$10.00 per 1,000 scans ($5 to $99 packs, $0 monthly subscription, +10% crypto bonus). ## Core REST API Endpoints - [Passport OCR (`POST /v1/passport`)](https://structocr.com/developers/passport-ocr): Extract structured passport bio-page fields and ICAO 9303 TD3 MRZ data with deterministic check-digit validation. Cost: 2 credits (per successful request). Privacy: Max 24h retention. - [National ID OCR (`POST /v1/national-id`)](https://structocr.com/developers/national-id-ocr): Extract structured fields from national ID cards worldwide including UAE Emirates ID, Saudi National ID / Iqama, Egypt National ID, EU eID / CIE, and TD1 MRZ cards. Cost: 2 credits (per successful request). Privacy: Max 24h retention. - [Driver License OCR (`POST /v1/driver-license`)](https://structocr.com/developers/driver-license-ocr): Extract visual front-side fields from global driver licenses across North America, Europe, UK, Australia, and GCC. Cost: 2 credits (per successful request). Privacy: Max 24h retention. - [Driver License PDF417 Barcode API (`POST /v1/driver-license-pdf417`)](https://structocr.com/developers/driver-license-pdf417): Deterministic AAMVA PDF417 2D barcode decoder for US and Canadian driver licenses and state IDs with native iPhone HEIC/HEIF support and strict zero data retention. Cost: 2 credits (per successful request). Privacy: Zero Data Retention. - [Driver License Front + Back Verification API (`POST /v1/driver-license-verify`)](https://structocr.com/developers/driver-license-verify): Cross-check North American driver license front visual OCR against back AAMVA PDF417 barcode in a single zero-retention API call. Cost: 4 credits (per verified request (full refund on 422 back-side failure)). Privacy: Zero Data Retention. - [Travel Visa OCR (`POST /v1/visa`)](https://structocr.com/developers/visa-ocr): Extract visa sticker and e-visa fields with ICAO 9303 MRV-A and MRV-B check-digit verification and strict zero data retention. Cost: 2 credits (per successful request). Privacy: Zero Data Retention. - [Proof of Address OCR (`POST /v1/proof-of-address`)](https://structocr.com/developers/proof-of-address-ocr): Extract resident name, issuer, document issue date, and normalized street address from utility bills, bank statements, and government letters for KYC onboarding. Cost: 2 credits (per successful request). Privacy: Zero Data Retention. - [Health Insurance Card OCR (`POST /v1/health-card`)](https://structocr.com/developers/health-card-ocr): Extract member ID, group number, payer name, RxBIN/PCN/RxGrp, and copay fields from medical and health insurance cards with strict zero data retention. Cost: 2 credits (per successful request). Privacy: Zero Data Retention. - [PDF Extract API (Tables, Key-Values & Custom JSON) (`POST /v1/pdf-extract`)](https://structocr.com/developers/pdf-extract): Zero-retention general-purpose PDF and scanned document extraction returning stitched multi-page tables, key-value fields, and optional custom JSON schema output. Cost: 2 credits (per succeeded page (failed pages automatically refunded)). Privacy: Zero Data Retention. - [Image to Excel OCR API (`POST /v1/image-to-excel`)](https://structocr.com/developers/image-to-excel): Zero-retention table extraction API optimized for converting photos, screenshots, and scanned documents into spreadsheet-ready structured tables (headers + rows). Cost: 2 credits (per succeeded image or PDF page (failed pages refunded)). Privacy: Zero Data Retention. - [Invoice OCR (`POST /v1/invoice`)](https://structocr.com/developers/invoice-ocr): Extract vendor/buyer tax IDs, invoice metadata, VAT/tax totals, line items, and GCC ZATCA / UAE FTA VAT fields from single images or multi-page PDF invoices. Cost: 3 credits (per successful request (single image or multi-page PDF up to 5 pages)). Privacy: Max 24h retention. - [Receipt OCR (`POST /v1/receipt`)](https://structocr.com/developers/receipt-ocr): Extract merchant, timestamp, subtotal, tax, tip, payment method, and line items from thermal and crumpled retail/restaurant receipts. Cost: 1 credit (1 credit (accuracy=standard) or 2 credits (accuracy=enhanced)). Privacy: Max 24h retention. - [ATM Cassette & Counter Slip OCR (`POST /v1/atm-cassette`)](https://structocr.com/developers/atm-cassette-ocr): Extract cassette counts, denominations, reject/purge totals, and terminal identifiers from ATM cash reconciliation slips and screens. Cost: 1 credit (per successful request). Privacy: Max 24h retention. - [VIN OCR (`POST /v1/vin`)](https://structocr.com/developers/vin-ocr): Read 17-character ISO 3779 Vehicle Identification Numbers from windshields, door-jamb stickers, and documents with check-digit validation. Cost: 1 credit (per successful request). Privacy: Max 24h retention. - [VIN Pro OCR (VIN + Vehicle Specs Decoding) (`POST /v1/vin-pro`)](https://structocr.com/developers/vin-pro-ocr): Extract the 17-character VIN from a photo and enrich it with decoded make, model, year, body class, engine, and trim specifications. Cost: 2 credits (per successful request). Privacy: Max 24h retention. - [Vehicle Registration OCR (Saudi Istimara, UAE Mulkiya, US DMV, Global) (`POST /v1/vehicle-registration`)](https://structocr.com/developers/vehicle-registration-ocr): Extract VIN, plate number, owner, make/model/year, and country-specific localized fields from global vehicle registration cards including Saudi Istimara (TGA details), UAE Mulkiya, US DMV, and India RC. Cost: 2 credits (per successful request). Privacy: Max 24h retention. - [Auto Insurance Card OCR (`POST /v1/auto-insurance`)](https://structocr.com/developers/auto-insurance-ocr): Extract policy number, insurer, NAIC code, effective/expiration dates, insured drivers, and covered vehicle VINs from auto insurance ID cards. Cost: 2 credits (per successful request). Privacy: Max 24h retention. - [License Plate OCR (`POST /v1/license-plate`)](https://structocr.com/developers/license-plate-ocr): Read vehicle license plates including US/EU plates and bilingual Arabic/English GCC plates (Saudi Arabia, UAE, Qatar, Kuwait). Cost: 1 credit (per successful request). Privacy: Max 24h retention. - [Shipping Container Code OCR (ISO 6346) (`POST /v1/container`)](https://structocr.com/developers/container-ocr): Extract ISO 6346 shipping container numbers (owner code, category, serial, check digit) and ISO size/type codes from horizontal or vertical container markings. Cost: 1 credit (per successful request). Privacy: Max 24h retention. - [Bill of Lading & Air Waybill OCR (`POST /v1/bill-of-lading`)](https://structocr.com/developers/bill-of-lading-ocr): Extract shipper, consignee, B/L or AWB number, vessel/voyage, ports, container numbers, cargo descriptions, and weights with ISO 6346 and IATA AWB validation. Cost: 3 credits (per successful request). Privacy: Max 24h retention. - [Weighbridge & Scale Ticket OCR (`POST /v1/weighbridge-ticket`)](https://structocr.com/developers/weighbridge-ticket-ocr): Extract ticket number, vehicle plate, gross/tare/net weights, unit, material, and timestamps from dot-matrix and thermal weighbridge scale tickets. Cost: 2 credits (per successful request). Privacy: Max 24h retention. - [Marine HIN OCR (Hull Identification Number) (`POST /v1/hin`)](https://structocr.com/developers/hin-ocr): Extract and parse 12-character USCG/ISO Hull Identification Numbers (MIC, serial number, manufacture month/year, model year) from boat transoms and titles. Cost: 1 credit (per successful request). Privacy: Max 24h retention. - [Account & API Key Credit Balance (`GET /v1/account/balance`)](https://structocr.com/developers/account-balance): Check remaining account credit balance, lifetime usage, and current-month account and API-key request metrics. Cost: 0 credits. Privacy: Zero Data Retention. ## Commercial Product Pages - [Passport OCR Product Overview](https://structocr.com/products/passport-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/passport`. - [National ID OCR Product Overview](https://structocr.com/products/national-id-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/national-id`. - [Driver License OCR Product Overview](https://structocr.com/products/driver-license-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/driver-license`. - [Travel Visa OCR Product Overview](https://structocr.com/products/visa-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/visa`. - [Proof of Address OCR Product Overview](https://structocr.com/products/proof-of-address-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/proof-of-address`. - [Health Insurance Card OCR Product Overview](https://structocr.com/products/health-card-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/health-card`. - [PDF Extract API (Tables, Key-Values & Custom JSON) Product Overview](https://structocr.com/products/pdf-data-extraction): Capabilities, supported countries/formats, and schema overview for `/v1/pdf-extract`. - [Image to Excel OCR API Product Overview](https://structocr.com/products/image-to-excel): Capabilities, supported countries/formats, and schema overview for `/v1/image-to-excel`. - [Invoice OCR Product Overview](https://structocr.com/products/invoice-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/invoice`. - [Receipt OCR Product Overview](https://structocr.com/products/receipt-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/receipt`. - [VIN OCR Product Overview](https://structocr.com/products/vin-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/vin`. - [Vehicle Registration OCR (Saudi Istimara, UAE Mulkiya, US DMV, Global) Product Overview](https://structocr.com/products/vehicle-registration-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/vehicle-registration`. - [Auto Insurance Card OCR Product Overview](https://structocr.com/products/auto-insurance-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/auto-insurance`. - [License Plate OCR Product Overview](https://structocr.com/products/license-plate-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/license-plate`. - [Shipping Container Code OCR (ISO 6346) Product Overview](https://structocr.com/products/container-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/container`. - [Bill of Lading & Air Waybill OCR Product Overview](https://structocr.com/products/bill-of-lading-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/bill-of-lading`. - [Weighbridge & Scale Ticket OCR Product Overview](https://structocr.com/products/weighbridge-ticket-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/weighbridge-ticket`. - [Marine HIN OCR (Hull Identification Number) Product Overview](https://structocr.com/products/hin-ocr): Capabilities, supported countries/formats, and schema overview for `/v1/hin`. ## Online Web Tools (Try in Browser) - [All Online OCR Tools](https://structocr.com/tools): Browser-based OCR workbench sharing your unified credit wallet. - [PDF OCR Online](https://structocr.com/tools/pdf-ocr): Zero-retention scanned PDF OCR and structured extraction. - [PDF Table Extractor](https://structocr.com/tools/pdf-table-extractor): Zero-retention multi-page PDF table extraction to Excel/CSV/JSON. - [PDF to JSON Converter](https://structocr.com/tools/pdf-to-json): Zero-retention PDF to structured JSON extraction. - [PDF to CSV Converter](https://structocr.com/tools/pdf-to-csv): Zero-retention PDF table to CSV export. - [Image to Excel Converter](https://structocr.com/tools/image-to-excel): Zero-retention photo/screenshot table extraction to Excel (.xlsx) and CSV. - [Driver License PDF417 Scanner](https://structocr.com/tools/driver-license-pdf417-scanner): Zero-retention AAMVA 2D barcode reader supporting JPG, PNG, WebP, and iPhone HEIC. - [Passport Scanner](https://structocr.com/tools/passport-scanner): Online passport bio-page and MRZ extractor. - [National ID Card Scanner](https://structocr.com/tools/id-card-scanner): Online national ID extractor for global and GCC cards. - [Vehicle Registration Scanner](https://structocr.com/tools/vehicle-registration-scanner): Online Saudi Istimara, UAE Mulkiya, and global registration card extractor. - [Invoice Scanner](https://structocr.com/tools/invoice-scanner): Multi-page PDF and image invoice extractor (up to 5 pages). - [ZATCA QR Code Scanner (Saudi Phase 1/2 TLV Decoder) (Free, 0 credits)](https://structocr.com/tools/zatca-qr-code-scanner): 100% browser-side, 0-credit Saudi ZATCA Base64 TLV QR code decoder for seller name, 15-digit VAT number, timestamp, invoice total, and VAT total. - [ISO 6346 Container Check Digit Calculator (Free, 0 credits)](https://structocr.com/tools/container-check-digit-calculator): 0-credit browser-side ISO 6346 shipping container check-digit validator and generator. - [VIN Barcode Generator (Free, 0 credits)](https://structocr.com/tools/vin-barcode-generator): 0-credit browser-side Code 39 / 2D VIN barcode generator for testing and labeling. ## Key Solutions & Regional Hubs - [Driver License Verification API (Front OCR + Back PDF417 Cross-Check)](https://structocr.com/solutions/driver-license-verification-api): Zero-retention North American driver license verification with live interactive dual-image demo. - [Arabic & Middle East OCR API Hub](https://structocr.com/solutions/arabic-ocr-api): Bilingual Arabic/English RTL OCR for GCC national IDs, Saudi Istimara, UAE Mulkiya, ZATCA invoices, and Arabic PDFs. - [Saudi ZATCA QR & VAT Invoice OCR API](https://structocr.com/solutions/zatca-qr-invoice-ocr-api): Extract Saudi ZATCA e-invoice fields, 15-digit VAT numbers, and bilingual line items into ERP-ready JSON. - [UAE VAT & TRN Invoice OCR API](https://structocr.com/solutions/uae-vat-trn-invoice-ocr-api): Extract UAE FTA 15-digit TRN numbers, 5% VAT breakdowns, and bilingual tax invoice line items. - [PDF Data Extraction Automation Hub](https://structocr.com/solutions/pdf-data-extraction-automation): Zero-retention multi-page PDF table extraction, PDF-to-JSON, and PDF-to-CSV automation. - [Saudi Istimara Full-Field OCR](https://structocr.com/solutions/saudi-istimara-full-ocr): Extract Saudi vehicle registration cards including localized TGA plate letters and sequence numbers. - [UAE Mulkiya Full-Field OCR](https://structocr.com/solutions/uae-mulkiya-full-ocr): Extract UAE RTA vehicle registration cards (TC number, plate, chassis/VIN, expiry, insurance). - [Fintech & KYC Identity Verification](https://structocr.com/solutions/fintech-identity-verification): Passport, national ID, driver license, and proof-of-address extraction for KYC onboarding. - [Travel & Hotel PMS Identity Verification](https://structocr.com/solutions/travel-identity-verification): Passport MRZ and travel visa extraction for OTAs, airlines, and hotel check-in systems. - [Logistics & Container Gate OCR](https://structocr.com/solutions/logistics-container-ocr): Container ISO 6346, Bill of Lading, and weighbridge scale ticket extraction for freight ops. ## Vendor Comparisons & Pricing Matrices - [All OCR API Comparisons](https://structocr.com/blog/compare): Side-by-side vendor alternatives and migration guides. - [Cheapest Pay-As-You-Go OCR APIs (No Monthly Subscription)](https://structocr.com/blog/compare/cheapest-pay-as-you-go-ocr-api-no-subscription): Transparent cost-per-1,000-pages matrix comparing StructOCR ($5.82–$10/1,000) vs Google Cloud Vision, AWS Textract, Azure, Mindee & Veryfi. - [Invoice OCR API Pricing & Python JSON Comparison (2026)](https://structocr.com/blog/compare/invoice-ocr-api-pricing-python-comparison): StructOCR ($17.47–$30/1,000 multi-page invoices) vs AWS Textract, Azure, Google Document AI, Mindee & Rossum. - [Receipt OCR API Pay-As-You-Go Pricing Comparison (2026)](https://structocr.com/blog/compare/receipt-ocr-api-pay-as-you-go-pricing-comparison): StructOCR ($5.82–$10/1,000 standard; $11.65–$20/1,000 enhanced) vs AWS Textract, Azure, Veryfi, Mindee, Taggun & Tabscanner. - [PDF Table to JSON & Excel Batch API Comparison](https://structocr.com/blog/compare/pdf-table-extraction-api-comparison): StructOCR ($11.65–$20/1,000 pages, stitched tables, zero retention) vs AWS Textract, Azure Layout, Reducto, LlamaParse, Parseur/Extend, Unstructured & pdfplumber. - [Driver License Verification & PDF417 Pricing Matrix (9 Vendors)](https://structocr.com/blog/compare/driver-license-verification-api-pricing-comparison): StructOCR vs BlinkID, Scandit, Dynamsoft, Veryfi, IDScan.net, AWS Textract, Azure & ZXing. - [Vehicle Registration & Saudi Istimara OCR API Comparison](https://structocr.com/blog/compare/vehicle-registration-ocr-api-comparison): StructOCR vs Google Vision, AWS Textract, Azure, Mindee & Tesseract for Istimara, Mulkiya & global cards. - [Arabic & Middle East (GCC) OCR API Comparison](https://structocr.com/blog/compare/arabic-middle-east-ocr-api-comparison): StructOCR vs Google Vision, Azure, AWS Textract, ABBYY & Tesseract for ZATCA, UAE VAT/TRN, Istimara & RTL PDFs. ## Official SDKs, MCP Server & n8n Workflow Templates - [Python SDK Documentation](https://structocr.com/developers/python-sdk): `pip install structocr` v1.9.0 covering all 22 document & verification endpoints + native HEIC (PyPI: https://pypi.org/project/structocr/ , GitHub: https://github.com/dracula911/structocr-python). - [OCR API in Python Production Guide](https://structocr.com/blog/tutorials/ocr-api-python-tutorial): End-to-end Python guide for receipts, GST/VAT invoices, IDs, and PDFs (SDK, requests backoff, FastAPI, ThreadPoolExecutor + Pandas/Excel). - [Node.js SDK Documentation](https://structocr.com/developers/node-sdk): `npm install structocr` v1.11.0 covering all 22 document & verification endpoints + TypeScript & native HEIC (npm: https://www.npmjs.com/package/structocr , GitHub: https://github.com/dracula911/structocr-node). - [Official MCP Server Documentation](https://structocr.com/developers/mcp): `npx -y structocr-mcp` (MCP Registry: `io.github.dracula911/structocr-mcp`, npm: https://www.npmjs.com/package/structocr-mcp , GitHub: https://github.com/dracula911/structocr-mcp) exposing `verify_driver_license`, `extract_pdf`, `image_to_excel`, `scan_document` (19 document types), `get_account_balance`, and `list_supported_documents` for Claude Desktop, Cursor, Claude Code, and VS Code. - [n8n Driver License Front + Back PDF417 Verification Workflow](https://structocr.com/blog/platforms/n8n-driver-license-verification): Step-by-step n8n setup guide for `/v1/driver-license-verify` ([importable workflow JSON](https://structocr.com/n8n/driver-license-verification.json)). - [n8n Image to Excel OCR Workflow](https://structocr.com/blog/platforms/n8n-image-to-excel-ocr): Step-by-step n8n setup guide for `/v1/image-to-excel` ([importable workflow JSON](https://structocr.com/n8n/image-to-excel-ocr.json)). - [n8n Saudi Istimara Vehicle Registration OCR Workflow](https://structocr.com/blog/platforms/n8n-saudi-istimara-ocr): Step-by-step n8n setup guide for `/v1/vehicle-registration` ([importable workflow JSON](https://structocr.com/n8n/saudi-istimara-ocr.json)). - [n8n Saudi National ID & Iqama OCR Workflow](https://structocr.com/blog/platforms/n8n-saudi-national-id-iqama-ocr): Step-by-step n8n setup guide for `/v1/national-id` ([importable workflow JSON](https://structocr.com/n8n/saudi-national-id-iqama-ocr.json)). - [n8n Saudi Driver License OCR Workflow](https://structocr.com/blog/platforms/n8n-saudi-drivers-license-ocr): Step-by-step n8n setup guide for `/v1/driver-license` ([importable workflow JSON](https://structocr.com/n8n/saudi-drivers-license-ocr.json)). ## Optional - [Sitemap](https://structocr.com/sitemap.xml): Full XML sitemap of public marketing, developer, solution, tool, and tutorial pages. - [Privacy Policy](https://structocr.com/privacy): Data handling, TLS 1.3 transport, zero-retention domains, and 24-hour standard retention policy. - [Terms of Service](https://structocr.com/terms): Service terms and credit pack rules. - [Contact Sales & Support](https://structocr.com/contact): Enterprise volume pricing, custom document schemas, and technical support.