Mindee passport API Alternative: Passport OCR API
Mindee passport API compared with the StructOCR REST API for passport extraction: deployment, pricing model, and when each fits.
What Mindee passport API Is
Mindee offers document-parsing APIs, including a passport parser, for developers. Choosing between it and an API comes down to where processing runs, how you pay, and which documents you need.
Where StructOCR Differs
StructOCR is a server-side REST API: you send an image and receive structured JSON for passport. There is no SDK to embed, billing is 2 credits per successful request, credits never expire, and failed requests are not billed. See the Passport API docs or try the free scanner.
Mindee passport API and StructOCR Side by Side
| Topic | Mindee passport API, in its own words | StructOCR |
|---|---|---|
| Passports covered | Mindee passport APIYes, our passport OCR API is able to extract data from multiple languages in any alphabet from all countries.Source: Mindee passport OCR API | StructOCRPassports through /v1/passport, plus separate endpoints for national ID cards and driver licenses. |
| Output fields | Mindee passport APIYou can customize your data schema, to extract only fields you need and structure them on‑the‑go.Source: Mindee passport OCR API | StructOCRA fixed passport schema (passport_number, surname, given_names, dates in YYYY-MM-DD, and more); fields cannot be customized per account. |
| Billing unit | Mindee passport APIBy default, 1 processed page = 1 credit ; 1 processed page with a confidence score = 1.5 creditsSource: Mindee pricing FAQ | StructOCR2 credits per successful request, about $0.012 to $0.02 per document depending on the credit package ($5 for 500 credits up to $99 for 17,000). Failed requests are not billed. |
| Credit expiry | Mindee passport APICredits are valid for the entire duration of your subscription period (monthly or annual) and expire at the end of that period. Unused credits are not carried over from one period to the next.Source: Mindee pricing FAQ | StructOCRPrepaid credit packages with no subscription; credits never expire. |
| Going over your allowance | Mindee passport APIBy default, we'll automatically charge your payment method for additional credits at your plan's unit rate, with a 20% overage surcharge, so you're never blocked in productionSource: Mindee pricing FAQ | StructOCRNo automatic charges: requests return 402 INSUFFICIENT_CREDITS when the balance runs out, until you buy another package. |
| Free trial | Mindee passport APIWe provide a 14 days free trial so you can fully test our passport OCR API — no credit card required.Source: Mindee passport OCR API | StructOCR200 free credits on sign-up (100 passport or ID scans), no credit card required. |
Entries for Mindee passport API are copied word for word from its public pages, checked on . “…” marks text left out. Prices and features change, so follow each source link for current terms.
Where This Fits
- Choose Mindee passport API when: you already use Mindee for other document types and want one vendor.
- Choose StructOCR when: you need passports plus national ID cards and driver licenses from many countries with country-specific fields.
- Use both when: You capture on a device with one tool and need server-side extraction or a fallback for uploaded images with the other.
Try the API in a Few Lines
A complete request takes one HTTP call with your API key.
Prerequisite: Python 3.9+, `pip install requests`, and a STRUCTOCR_API_KEY
import base64
import os
import requests
with open("passport.jpg", "rb") as image_file:
image = base64.b64encode(image_file.read()).decode("ascii")
response = requests.post(
"https://api.structocr.com/v1/passport",
headers={"x-api-key": os.environ["STRUCTOCR_API_KEY"]},
json={"img": image},
timeout=30,
)
response.raise_for_status()
data = response.json()["data"]
print("passport_number:", data.get("passport_number"))
print("surname:", data.get("surname"))
print("given_names:", data.get("given_names"))
print("date_of_expiry:", data.get("date_of_expiry"))Technical Specs
- •Endpoint: POST https://api.structocr.com/v1/passport
- •Authentication: x-api-key request header
- •Inputs: JPG, PNG, or WebP as Base64 JSON; maximum 4.5MB
- •Price: 2 credits per successful request; failed requests are not billed
- •Free trial: 200 free credits on sign-up, no credit card required
Key Features
- •Deployment: StructOCR runs as a hosted API, so there is nothing to install or update on devices.
- •Pricing model: Prepaid credits that never expire; you are billed only for successful extractions.
- •Evaluate on your own images: Compare tools on real customer photos, including glare, blur, and unusual issuers.
- •Quotes are dated: Every Mindee passport API entry above is copied from its own public page on 2026-10-17; check the linked page for current terms.
Response Shape
Illustrative fields returned by the StructOCR API for this document type.
{
"success": true,
"data": {
"passport_number": "…",
"surname": "…",
"given_names": "…",
"date_of_expiry": "…"
}
}Frequently Asked Questions
Is StructOCR a drop-in replacement for Mindee passport API?
It replaces the data-extraction step when you can send images to a server. It does not replace on-device capture SDKs or verification features that StructOCR does not offer.
How can I compare them fairly?
Run the same set of real, consented customer images through both and compare field accuracy, failure handling, and cost per successful result.
Is there a free trial?
Yes. New accounts receive 200 free credits with no credit card.
You May Also Like
Related tutorials, platform guides, and comparisons
US Passport OCR with Python SDK
Use the official StructOCR Python SDK and FastAPI to extract structured MRZ and VIZ data from US passports with a server-side integration.
Kenya Passport OCR with Python SDK
Use the official StructOCR Python SDK and FastAPI to extract structured MRZ and VIZ data from Kenya passports with a server-side integration.
Saudi Arabia Passport OCR with Node.js SDK
Use the official StructOCR Node.js SDK with TypeScript and Express to extract structured MRZ and VIZ data from Saudi Arabia passports.
Java Passport OCR API
Extract passport MRZ and VIZ data in Java. Upload an image for a free test! Our API provides structured JSON output, handling glare and blur automatically.
MRZ Check Digit Calculation with 7-3-1 Weights
How passport and ID card MRZ check digits work, with character values, the 7-3-1 weighting, and Python code for validation.
Sweden Passport OCR with Node.js SDK
Use the official StructOCR Node.js SDK with TypeScript and Express to extract structured MRZ and VIZ data from Sweden passports.
Sweden Passport OCR with Python SDK
Use the official StructOCR Python SDK and FastAPI to extract structured MRZ and VIZ data from Sweden passports with a server-side integration.
Switzerland Passport OCR with Node.js SDK
Use the official StructOCR Node.js SDK with TypeScript and Express to extract structured MRZ and VIZ data from Switzerland passports.
Sri Lankan Passport OCR with Python SDK
Use the StructOCR Python SDK and FastAPI to extract visible identity, validity and MRZ fields from Sri Lankan passports.
Mindee receipt API Alternative: Receipt OCR API
Mindee receipt API compared with the StructOCR REST API for receipt extraction: deployment, pricing model, and when each fits.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Extracting ECR Status & File Numbers: Generic OCR vs. StructOCR Indian Passport API
Learn why generic text extractors fail to capture critical Indian KYC fields like ECR status and File Numbers, and how a specialized API structures this data automatically.
Heavy KYC SDKs vs. StructOCR Passport API for Mobile Apps
Discover why modern app developers are abandoning bulky on-device OCR SDKs in favor of lightweight, edge-deployed Passport APIs.
Add Passport OCR to Your Lovable.dev App in 5 Minutes
Step-by-step guide to integrating the StructOCR Passport scanner API into a Lovable.dev app through a secure server-side function for travel and KYC flows.
Add Passport OCR to Your Replit App in 5 Minutes
Step-by-step guide to integrating the StructOCR Passport scanner API into a Replit application. Build travel, hospitality, and global KYC flows using Replit Agent and Secrets.
Tesseract & PassportEye vs. StructOCR Passport API
A technical evaluation for developers deciding between open-source MRZ scanners and a dedicated cloud-based Passport OCR API.
Add Passport OCR to Your v0 App in 5 Minutes
Step-by-step guide to integrating the StructOCR Passport scanner API into a v0 by Vercel app through a secure Next.js server route.
From tutorial to production in 5 minutes.
You've seen the code. Now get your API key, grab your 200 free credits, and see it work with your own images. No credit card required.