{"openapi":"3.1.0","info":{"title":"VIN Recognition - Read VIN from Photo & Decode","description":"Photo of a VIN plate, door label or registration document to the VIN, check-digit verified and auto-corrected, optionally decoded.","version":"v1"},"servers":[{"url":"https://vin-recognition-read-vin-from-photo-decode.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/vin-photo/read":{"post":{"tags":["VIN Recognition"],"summary":"Read the VIN of a photo from its URL","description":"Read every VIN in a photo from its URL (windshield, door label, plate,\nframe, registration, screenshot). Each VIN is checked (check digit) and\nlook-alike misreads fixed. `decode=true` adds make, model, year, engine\n(NHTSA). 1 credit per photo, decoding included.","operationId":"readVinFromImageUrl","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/VinPhotoRequest"},"examples":{"Read VIN from Image URL":{"summary":"Read VIN from Image URL","value":{"url":"https://upload.wikimedia.org/wikipedia/commons/d/d1/Vin_number_11.jpg","decode":false}}}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VinPhotoResponse"},"examples":{"Read VIN from Image URL":{"summary":"Read VIN from Image URL (real response)","value":{"source":"https://upload.wikimedia.org/wikipedia/commons/d/d1/Vin_number_11.jpg","mime_type":"image/jpeg","found":true,"vin":"1D4GP25B03B108775","count":1,"vins":[{"vin":"1D4GP25B03B108775","read_as":"1D4GP25B03B108775","status":"valid","confidence":"high","check_digit_valid":true,"corrections":[],"alternatives":[],"reason":"Check digit correct, as read. NHTSA's patterns for this maker match it.","location":"door_label","wmi":"1D4","make":"DODGE","region":"North America","country":"United States","model_year":2003,"vehicle":{"found":true,"manufacturer":"FCA US LLC","make":"DODGE","model":"Caravan/Grand Caravan","series":"RS","vehicle_type":"MULTIPURPOSE PASSENGER VEHICLE (MPV)","body_class":"Van","doors":4,"drive_type":"FWD/Front-Wheel Drive","engine":{"cylinders":4,"displacement_l":2.4,"configuration":"In-Line","fuel":"Gasoline"},"gvwr_class":"Class 1D: 5,001 - 6,000 lb (2,268 - 2,722 kg)","plant":{"city":"FENTON","state":"MISSOURI","country":"UNITED STATES (USA)"},"notes":[]}}],"image":"readable"}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Read VIN from Image URL"}},"/v1/vin-photo/read/upload":{"post":{"tags":["VIN Recognition"],"summary":"Read the VIN of an uploaded photo","description":"Same as /read, for a photo sent as multipart/form-data (field `file`),\ne.g. straight from a phone camera.","operationId":"readVinFromUploadedImage","requestBody":{"content":{"multipart/form-data":{"schema":{"$ref":"#/components/schemas/Body_Read_VIN_from_Uploaded_Image"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VinPhotoResponse"},"examples":{"Read VIN from Uploaded Image":{"summary":"Read VIN from Uploaded Image","value":{"mime_type":"image/jpeg","vin":"1D4GP25B03B108775","count":1,"vins":[{"vin":"1D4GP25B03B108775","read_as":"1D4GP25B03B108775","status":"valid","confidence":"high","corrections":[{"position":7,"read":"Z","corrected":"2","reason":"Z and 2 look alike; only 2 makes the check digit right."}],"reason":"Check digit correct, as read. NHTSA's patterns for this maker match it.","location":"other","wmi":"1D4","make":"DODGE","region":"North America","country":"United States","model_year":2003,"vehicle":{"vin":"1HGCM82633A004352","reason":"Well-formed VIN, check digit correct.","wmi":"1HG","region":"North America","country":"United States","model_year":2003,"serial_number":"004352","manufacturer":"AMERICAN HONDA MOTOR CO., INC.","make":"HONDA","model":"Accord","trim":"EX-V6","vehicle_type":"PASSENGER CAR","body_class":"Coupe","doors":2,"drive_type":"FWD/Front-Wheel Drive","steering":"Left-Hand Drive (LHD)","engine":{"cylinders":6,"displacement_l":3.0,"power_hp":240,"configuration":"V-Shaped","model":"J30A4","fuel":"Gasoline","electrification":"BEV (Battery Electric Vehicle)"},"battery":{},"transmission":{"style":"Automatic","speeds":5},"gvwr_class":"Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)","plant":{"city":"MARYSVILLE","state":"OHIO","country":"UNITED STATES (USA)"},"airbags":{"front":"1st Row (Driver and Passenger)"},"equipment":{"abs":"Standard","esc":"Standard"}}}],"image":"readable"}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Read VIN from Uploaded Image"}}},"components":{"schemas":{"Airbags":{"properties":{"front":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Front","examples":["1st Row (Driver and Passenger)"]},"side":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Side"},"curtain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Curtain"},"knee":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Knee"}},"type":"object","title":"Airbags"},"Battery":{"properties":{"type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Type"},"kwh":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Kwh"},"charger_level":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Charger Level"},"charger_power_kw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Charger Power Kw"}},"type":"object","title":"Battery"},"Body_Read_VIN_from_Uploaded_Image":{"properties":{"file":{"type":"string","title":"File","description":"Image, up to 20 MB.","format":"binary"},"decode":{"type":"boolean","title":"Decode","description":"Also decode each VIN found (make, model, year, engine, equipment, from NHTSA). No extra credit.","default":false}},"type":"object","required":["file"],"title":"Body_Read VIN from Uploaded Image"},"Correction":{"properties":{"position":{"type":"integer","title":"Position","description":"1 to 17.","examples":[7]},"read":{"type":"string","title":"Read","description":"Character as read in the image.","examples":["Z"]},"corrected":{"type":"string","title":"Corrected","examples":["2"]},"reason":{"type":"string","title":"Reason","examples":["Z and 2 look alike; only 2 makes the check digit right."]}},"type":"object","required":["position","read","corrected","reason"],"title":"Correction"},"Engine":{"properties":{"cylinders":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Cylinders","examples":[6]},"displacement_l":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Displacement L","examples":[3.0]},"power_hp":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Power Hp","examples":[240]},"power_kw":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Power Kw"},"configuration":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Configuration","examples":["V-Shaped"]},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","examples":["J30A4"]},"fuel":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel","examples":["Gasoline"]},"fuel_secondary":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Fuel Secondary"},"electrification":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Electrification","examples":["BEV (Battery Electric Vehicle)"]},"turbo":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Turbo"}},"type":"object","title":"Engine"},"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"Plant":{"properties":{"city":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"City","examples":["MARYSVILLE"]},"state":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"State","examples":["OHIO"]},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","examples":["UNITED STATES (USA)"]}},"type":"object","title":"Plant"},"Transmission":{"properties":{"style":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Style","examples":["Automatic"]},"speeds":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Speeds","examples":[5]}},"type":"object","title":"Transmission"},"Vehicle":{"properties":{"vin":{"type":"string","title":"Vin","examples":["1HGCM82633A004352"]},"valid":{"type":"boolean","title":"Valid","description":"17 characters from the VIN alphabet (no I, O or Q)."},"reason":{"type":"string","title":"Reason","examples":["Well-formed VIN, check digit correct."]},"check_digit_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Digit Valid","description":"9th character matches the checksum. Required in North America and China; most European VINs do not use it."},"wmi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wmi","description":"World manufacturer identifier.","examples":["1HG"]},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","examples":["North America"]},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","description":"Country the manufacturer code is allocated to (ISO 3779).","examples":["United States"]},"model_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Year","description":"Best reading of the 10th character (it repeats every 30 years).","examples":[2003]},"model_year_candidates":{"items":{"type":"integer"},"type":"array","title":"Model Year Candidates"},"serial_number":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Serial Number","description":"Characters 12 to 17.","examples":["004352"]},"found":{"type":"boolean","title":"Found","description":"NHTSA knows the manufacturer. Full specifications are mostly available for vehicles sold in North America."},"manufacturer":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Manufacturer","examples":["AMERICAN HONDA MOTOR CO., INC."]},"make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make","examples":["HONDA"]},"model":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Model","examples":["Accord"]},"trim":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trim","examples":["EX-V6"]},"series":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Series"},"vehicle_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vehicle Type","examples":["PASSENGER CAR"]},"body_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Body Class","examples":["Coupe"]},"doors":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Doors","examples":[2]},"seats":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seats"},"seat_rows":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Seat Rows"},"drive_type":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Drive Type","examples":["FWD/Front-Wheel Drive"]},"steering":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Steering","examples":["Left-Hand Drive (LHD)"]},"engine":{"$ref":"#/components/schemas/Engine"},"battery":{"anyOf":[{"$ref":"#/components/schemas/Battery"},{"type":"null"}]},"transmission":{"$ref":"#/components/schemas/Transmission"},"curb_weight_lb":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Curb Weight Lb"},"gvwr_class":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Gvwr Class","description":"Gross vehicle weight rating class.","examples":["Class 1C: 4,001 - 5,000 lb (1,814 - 2,268 kg)"]},"wheelbase_in":{"anyOf":[{"type":"number"},{"type":"null"}],"title":"Wheelbase In"},"plant":{"$ref":"#/components/schemas/Plant"},"airbags":{"$ref":"#/components/schemas/Airbags"},"equipment":{"additionalProperties":{"type":"string"},"type":"object","title":"Equipment","description":"Safety and driver-assist equipment NHTSA lists for the model: Standard, Optional...","examples":[{"abs":"Standard","esc":"Standard"}]},"notes":{"items":{"type":"string"},"type":"array","title":"Notes","description":"Decoder remarks (errors in some positions, missing data)."},"suggested_vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Suggested Vin","description":"When characters look wrong: '!' marks them."}},"type":"object","required":["vin","valid","reason","found"],"title":"Vehicle"},"VinPhotoRequest":{"properties":{"url":{"type":"string","maxLength":2048,"title":"Url","description":"Direct link to a photo, scan or screenshot: PNG, JPEG, WEBP, HEIC, GIF, BMP or TIFF, up to 20 MB.","examples":["https://upload.wikimedia.org/wikipedia/commons/d/d1/Vin_number_11.jpg"]},"decode":{"type":"boolean","title":"Decode","description":"Also decode each VIN found (make, model, year, engine, equipment, from NHTSA). No extra credit.","default":false}},"type":"object","required":["url"],"title":"VinPhotoRequest"},"VinPhotoResponse":{"properties":{"source":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Source","description":"File name or final URL."},"mime_type":{"type":"string","title":"Mime Type","examples":["image/jpeg"]},"found":{"type":"boolean","title":"Found","description":"At least one usable VIN (valid, corrected or unverified)."},"vin":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Vin","description":"The most reliable VIN found, for the common one-VIN photo.","examples":["1D4GP25B03B108775"]},"count":{"type":"integer","title":"Count","description":"Readings returned.","examples":[1]},"vins":{"items":{"$ref":"#/components/schemas/VinReading"},"type":"array","title":"Vins"},"image":{"type":"string","enum":["readable","unreadable","no_vin"],"title":"Image","description":"readable: the VIN text could be read. unreadable: a VIN is there but too blurred, small or hidden. no_vin: none visible."},"note":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Note","description":"What to do when nothing usable came back."}},"type":"object","required":["mime_type","found","count","vins","image"],"title":"VinPhotoResponse"},"VinReading":{"properties":{"vin":{"type":"string","title":"Vin","description":"The VIN, corrected when a correction is listed.","examples":["1D4GP25B03B108775"]},"read_as":{"type":"string","title":"Read As","description":"The characters exactly as read in the image ('?' = unreadable).","examples":["1D4GP25B03B108775"]},"status":{"type":"string","enum":["valid","corrected","unverified","ambiguous","invalid"],"title":"Status","description":"valid: check digit right as read. corrected: fixed, check digit now right. unverified: well formed, but its region does not require a check digit, so it cannot be proven. ambiguous: check digit wrong and several fixes possible (see alternatives). invalid: not a readable 17-character VIN."},"confidence":{"type":"string","enum":["high","medium","low"],"title":"Confidence","description":"high: proven by the check digit (or by NHTSA's manufacturer patterns). medium: corrected, or unverifiable but clearly printed. low: do not use without a human check."},"check_digit_valid":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Check Digit Valid","description":"9th character matches the checksum of the final VIN."},"corrections":{"items":{"$ref":"#/components/schemas/Correction"},"type":"array","title":"Corrections"},"alternatives":{"items":{"type":"string"},"type":"array","title":"Alternatives","description":"Other VINs the characters could be (ambiguous readings)."},"reason":{"type":"string","title":"Reason","examples":["Check digit correct, as read. NHTSA's patterns for this maker match it."]},"location":{"type":"string","enum":["windshield","door_label","manufacturer_plate","stamped","document","screen","barcode_label","other"],"title":"Location","description":"Where the VIN was printed: windshield plate, door-jamb label, manufacturer plate, stamped in metal, document (registration, title, invoice...), screen, barcode label.","default":"other"},"wmi":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Wmi","description":"Manufacturer code.","examples":["1D4"]},"make":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Make","description":"Make from the manufacturer code (offline), or from NHTSA when decoded.","examples":["DODGE"]},"region":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Region","examples":["North America"]},"country":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Country","examples":["United States"]},"model_year":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Model Year","examples":[2003]},"vehicle":{"anyOf":[{"$ref":"#/components/schemas/Vehicle"},{"type":"null"}],"description":"Full decoding (decode=true), from NHTSA."},"decode_error":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Decode Error","description":"Why decoding failed: source_unavailable (retry)."}},"type":"object","required":["vin","read_as","status","confidence","reason"],"title":"VinReading"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"VIN Recognition","description":"VINs read from a photo, checked, corrected and decoded."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}