VinLINK™ WEB HTTP, SOAP, XML Service

VinLINK Service designed for HTTP access can be utilized from any operating system, including UNIX (LINUX), MAC OS, MS Wind.

VinLINK Service designed for HTTP access can be utilized from any operating system, including UNIX (LINUX), MAC OS, MS Windows Operating System, MS Pocket PC. A developer can use simple HTTP technology to request and receive a decoded report with a standardized XML format. It can be integrated within any project and provides the functionality of a Vehicle Identification Number (VIN) decoder with VIN validation and verification, including enhanced equipment information.

It offers a Vin Decoder API, a programmatic interface that allows any internet-connected application to grab vehicle information data instantly and safely.

Please visit the following links for more information:

http://www.vinlink.com

Many people visit this website in a search to answer a question: How to decode a vin? Here is the answer.

VinLINK service is used in a lot of PHP based websites. Let us demonstrate a sample code that decodes basic YMM information from any VIN number.

Here we access VinLINK service using digest authentication. We fetch a report of type BASIC_LIGHT based on the $vin variable set earlier.

$ch = curl_init();
curl_setopt($ch, CURLOPT_HTTPAUTH, CURLAUTH_DIGEST);
curl_setopt($ch, CURLOPT_USERPWD, get_option('vd_user') . ":" . get_option('vd_password'));
curl_setopt($ch, CURLOPT_URL, "https://service.vinlink.com/report?type=BASIC_LIGHT&vin=" . $vin);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
$report = curl_exec($ch);
curl_close($ch);

The report is stored in $report variable. Then we convert the report to XML form, so we can use xpath selector to locate the portion of the report containing our data. Next, we use the Model_Year, Make and Model attributes.

$xml = simplexml_load_string($report);
$decoded = $xml->xpath("REPORT/VINPOWER/VIN/DECODED");	
$year = (string)$decoded[0]['Model_Year'];
$make = (string)$decoded[0]['Make'];
$model = (string)$decoded[0]['Model'];

Jobs done! We can display the variables. But it’s just the beginning, VinLINK reports contain much more data.