The Best Node.js API for Global Vehicle Registration OCR (Free Image Testing)
Extract text from worldwide vehicle registration documents using Node.js. Upload a document image for a free test today and get standardized VINs and dynamically localized fields for SA, AE, VN, and DE seamlessly.

The Problem with Parsing Global Registrations in Node.js
Enterprise Node.js applications often struggle to parse vehicle registration documents across different international borders. Traditional tools lack the ability to handle both standard global fields, like a 17-character VIN, and unique localized fields specific to countries like Saudi Arabia or the UAE. Furthermore, generic OCR models often destroy native scripts during extraction rather than preserving them.
The StructOCR Solution
Our API allows your Node.js backend to automate data extraction from global vehicle registration documents effortlessly. It features a robust Standardized + Localized structure that unifies essential information like VIN, Make, and Model across all regions, while preserving native scripts in `_raw` fields. By sending a simple Base64 string via Node.js using `axios` or native `fetch`, you receive validated JSON with dynamically mounted region-specific data nodes and strictly enforced ISO 3779 VIN validation.
Common Use Cases
- Global Fleet Management: Extract standardized VIN, make, and model to onboard fleet vehicles instantly across different countries.
- Border Control & Logistics: Process region-specific documents like Saudi Istimara or UAE Mulkiya at borders with specialized localized schemas.
- Insurance Verification: Safely validate 17-character VINs automatically by relying on enforced ISO 3779 rules that correct common OCR mistakes.
Live Demo: Passport scanner
No registration required. Upload a file to test the extraction.
Drop files here or click to browse
JPG · PNG · WebP · up to 500 files · max 4.5 MB each
Implementation: Request with Node.js
Complete, runnable Node.js code to extract vehicle registration data using the popular `axios` HTTP client.
Prerequisite: Node.js 14+ and the axios library (npm install axios)
const fs = require('fs');
const axios = require('axios');
// Read the image and convert it to a Base64 string
const imageBuffer = fs.readFileSync('document.jpg');
const base64Image = imageBuffer.toString('base64');
axios.post('https://api.structocr.com/v1/vehicle-registration', {
img: base64Image
}, {
headers: {
'x-api-key': 'YOUR_API_KEY',
'Content-Type': 'application/json'
}
})
.then(response => {
console.log('✅ Extraction Successful!\n');
console.log(JSON.stringify(response.data, null, 2));
})
.catch(error => {
console.error('❌ Extraction Failed:', error.response ? error.response.data : error.message);
});Technical Specs
- •Endpoint: POST https://api.structocr.com/v1/vehicle-registration
- •Input format: Base64 encoded string passed in the JSON body.
- •File Constraints: Max 4.5MB (decoded). Compress to under 500 KB for best response time.
- •Supported Formats: JPG, PNG, WebP.
- •Output: JSON categorized into document, standardized, and localized nodes.
Key Features
- •Standardized + Localized Schema: Unifies universal specs while dynamically mounting localized fields for countries like SA, AE, VN, and DE.
- •Raw vs Normalized: Retains native language text in `_raw` fields and provides English standard terms in `_normalized` fields.
- •VIN Validation: Strictly enforces ISO 3779 rules for 17-character VIN extraction, safely correcting common OCR mistakes like 'O' to '0'.
Sample JSON Response
The API returns categorized data. This example shows a Saudi Arabia registration with standardized vehicle specs, preserving the real make (Mercedes) and color (Blue), while integrating dynamically localized TGA plate details.
{
"success": true,
"data": {
"document": {
"country_code": "SA",
"document_type": "VEHICLE_REGISTRATION",
"confidence_score": 0.99
},
"standardized": {
"vin": null,
"plate": {
"number": "1234",
"letters_normalized": "X Y Z",
"formatted": "1234 XYZ"
},
"make_raw": "مرسيدس",
"make_normalized": "Mercedes",
"model_raw": "رأس تريلا",
"model_normalized": "Truck Head",
"year": 2021,
"color_raw": "ازرق",
"color_normalized": "Blue"
},
"localized": {
"saudi": {
"tga_plate_details": {
"sequence_number": "999888777",
"letter_right": "س",
"letter_middle": "ص",
"letter_left": "ع",
"number": "1234",
"plate_type_raw": "نقل خاص",
"plate_type_normalized": "Private Transport"
}
}
}
}
}Frequently Asked Questions
How should I encode the image in Node.js?
Read the file into a buffer using `fs.readFileSync()` and then convert it using `.toString('base64')`. Pass this string in the `img` field of your JSON payload.
What is the maximum file size?
The maximum decoded payload restriction is 4.5MB. Exceeding this will trigger a 413 Payload Too Large error.
What happens if a country isn't explicitly supported?
For countries without specific strict schemas, the engine automatically extracts key-value pairs into a generic `unmapped_fields` dictionary.
You May Also Like
Related tutorials, platform guides, and comparisons
Python Vehicle Registration OCR API
Python Vehicle Registration OCR API tutorial. Upload an image for a free test! Accurately extract standardized fields like VIN, make, and model, along with dynamically localized data for global documents.
C# Vehicle Registration OCR API
C# Vehicle Registration OCR API tutorial. Upload an image for a free test! Accurately extract standardized fields like VIN, make, and model, along with dynamically localized data for global documents.
Go Vehicle Registration OCR API
Golang Vehicle Registration OCR API tutorial. Upload an image for a free test! Accurately extract standardized fields like VIN, make, and model, along with dynamically localized data for global documents.
Java Vehicle Registration OCR API
Java Vehicle Registration OCR API tutorial. Upload an image for a free test! Accurately extract standardized fields like VIN, make, and model, along with dynamically localized data for global documents.
PHP Vehicle Registration OCR API
PHP Vehicle Registration OCR API tutorial. Upload an image for a free test! Accurately extract standardized fields like VIN, make, and model, along with dynamically localized data for global documents.
UAE Emirates ID OCR with Node.js SDK
Extract Emirates ID number, names, dates and other visible fields from Emirates ID with the StructOCR Node.js SDK and Express.
Norway 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 Norway passports.
Nigeria NIN Slip OCR Python SDK
Python Tutorial: Automate KYC in Nigeria. Extract data from NIN Slip using StructOCR Python SDK. Supports native text.
Norway Passport OCR with Python SDK
Use the official StructOCR Python SDK and FastAPI to extract structured MRZ and VIZ data from Norway passports with a server-side integration.
Pakistan CNIC OCR Python SDK
Python Tutorial: Automate KYC in Pakistan. Extract data from CNIC using StructOCR Python SDK. Supports native text.
Technical Comparisons & Integrations
Explore platform integrations and competitive analysis
Single-Page MRZ SDKs vs. Dual-Page Indian KYC API
Why traditional MRZ scanners fail at full Indian Passport verification, and how to process both the front identity page and the back address page in a single API call.
Add Receipt OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR receipt API into a Bolt.new app. Build expense tracking and receipt scanning tools right in your browser.
Add VIN OCR to Your Bolt.new App in 5 Minutes
Step-by-step guide to integrating the StructOCR VIN scanner API into a Bolt.new app. Build automotive and fleet tools right in your browser.
Add Container OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR shipping container API using the Cursor AI code editor. Build logistics and yard management tools rapidly.
Add Driver's License OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR Driver's License scanner API using the Cursor AI code editor. Build car rental and mobility onboarding flows rapidly.
Add HIN OCR using Cursor in 5 Minutes
Step-by-step guide to integrating the StructOCR HIN (Hull Identification Number) scanner API using the Cursor AI code editor. Build marine and boat management tools rapidly.
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.