Japan Hotel Foreign Guest Passport Registration with OCR
Photograph the passport at check-in, extract nationality, passport number, and name into the guest register, and keep the image under your retention policy. OCR captures the data; your compliance process stays in charge of decisions.
200 free credits = 100 Passport scans, no credit card. Then from $5 for 500 credits, pay as you go. See pricing

The Requirement
Under Japan’s hotel business rules, accommodations generally record the nationality and passport number of foreign guests without a Japanese address and keep a copy of the passport. Front desks copy passport details by hand during busy check-in windows, and paper copies are hard to search when authorities ask for records.
Capture Once, Confirm, Then Report
Photograph the passport at check-in, extract nationality, passport number, and name into the guest register, and keep the image under your retention policy. The passport OCR API returns structured JSON, so the same record can feed your forms, reports, and audit trail. Confirm current obligations with your local public health center and prefecture.
Live Demo: Passport scanner
No registration required. Upload a file to test the extraction.
Drop files here or click to browse
JPG · PNG · PDF · TIFF · up to 500 files · max 4.5 MB each
No document handy?
Workflow Applications
Front-desk check-in
Pre-fill nationality, passport_number, surname, given_names and require confirmation before saving.
Self check-in kiosks
Ask for a clearer image when the document is cropped, blurred, or covered by glare.
Guest register exports
Keep extracted data separate from approval, reporting, and eligibility decisions.
Technical Specs
- Endpoint: POST https://api.structocr.com/v1/passport
- Inputs: JPG, PNG, WebP, or PDF as Base64 JSON; maximum 4.5MB
- Cost: 2 credits per successful request; failures are not billed
- Output: Structured JSON with normalized names, numbers, and ISO dates
- Decision boundary: OCR extracts printed data and does not verify identity, authenticity, or legal eligibility
- Regulations change: Confirm current requirements with the relevant authority before relying on any workflow
Key Features
- Data minimization: Store only the fields the regulation or process requires.
- Confirmation step: Let the customer or staff correct extracted fields before submission.
- Retention policy: Delete or mask document images according to your documented schedule.
- Independent decisions: Confirm current obligations with your local public health center and prefecture.
Server-Side Integration
Send the passport image from your backend and keep only the fields your process needs.
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,
)
if response.ok:
data = response.json()["data"]
print("nationality:", data.get("nationality"))
print("passport_number:", data.get("passport_number"))
print("surname:", data.get("surname"))
print("given_names:", data.get("given_names"))
else:
print("Retake or review:", response.json().get("error"))Illustrative Response
Wholly fictional data showing the response shape. It is not a real person’s document.
{
"success": true,
"data": {
"nationality": "SAMPLE",
"passport_number": "SAMPLE",
"surname": "SAMPLE",
"given_names": "SAMPLE"
}
}Frequently Asked Questions
Does OCR make us compliant?
No. OCR speeds up data capture. Confirm current obligations with your local public health center and prefecture.
Which fields are relevant here?
Usually nationality, passport_number, surname, given_names. Collect only what your obligation requires.
What if the photo is unreadable?
The API returns an error instead of guessing; ask for a new photo of the full document without glare.
Explore More Travel & KYC Solutions
Passport VIZ Extraction API for Airlines
Automate airline check-ins by extracting both MRZ and VIZ passport data instantly via a pure REST API. Upload an image to test our free live demo today.
Proof of Address (PoA) OCR India
Automate PoA verification. Extract and validate permanent residential addresses from Indian passport back pages. API-first integration with 24-hour data retention.
Remote Hiring Identity OCR API
Automate global remote hiring with our identity OCR API; images are deleted within 24 hours. Extract passport data securely without SDKs. Upload an image to test our free live demo.
REST API for Global Passport MRZ
Extract global passport MRZ data instantly via our fast REST API. No SDK required. Upload an image to test our live demo for free.
Right to Work Passport Verification API
Automate global HR compliance. Extract passport data instantly with our OCR API; images are deleted within 24 hours. No SDK required. Upload an image to test our free live demo.
Spain SES.Hospedajes Guest Registration with Passport OCR
How Spanish accommodations and rental platforms can capture passport data with OCR for compliance workflows, with confirmation steps and clear limits on what OCR does.
Thailand TM30 Foreign Guest Reporting with Passport OCR
How Thai hotels, hosts, and landlords can capture passport data with OCR for compliance workflows, with confirmation steps and clear limits on what OCR does.
International Student Admissions Passport OCR
How university admissions offices can capture passport data with OCR for compliance workflows, with confirmation steps and clear limits on what OCR does.
Visa Application Form Prefill with Passport OCR
How visa agencies and immigration services can capture passport data with OCR for compliance workflows, with confirmation steps and clear limits on what OCR does.
Passport OCR for Neo-Banks: 24-Hour Retention, SOC 2 Type II
Passport OCR API for neo-bank onboarding: MRZ and VIZ fields as JSON, SOC 2 Type II, and images deleted within 24 hours. No SDK needed. Upload an image to test free.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
AWS Textract & Google Vision vs. StructOCR Passport API
How AWS Textract AnalyzeID, Google Cloud Vision OCR, and the StructOCR Passport API differ for passport data, quoting each vendor’s own documentation.
Add Passport OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR Passport scanner API into a Bolt.new app. Build travel, hospitality, and global KYC flows right in your browser.
Add Passport OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR Passport scanner API using the Cursor AI code editor. Build travel, hospitality, and global KYC flows rapidly.
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.
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.