autopicDocs

Reading a response

A POST /v1/vin/decode response has two layers: what the VIN itself says, then what the vehicle registers say about the vehicles whose VIN starts the same way.

What the VIN says

The first three characters (the WMI) identify the manufacturer and the country of assembly. For some manufacturers, the rest of the VIN also encodes the model and the year. These fields sit at the root of the response.

Identification
{
  "vin": "VF15RSN0A51234567",
  "valid": true,
  "wmi": "VF1",
  "country": "FRANCE",
  "make": {
    "id": "f92cf3e2-9d1c-4b90-a9d8-0840a6626652",
    "code": "renault",
    "name": "Renault"
  },
  "model": {
    "id": "0bd5e8d0-96ce-4456-9ddd-136f61f76802",
    "code": "clio",
    "name": "Clio"
  },
  "confidence": 0.95
}

What the registers say

A VIN does not encode a vehicle's exact version. So AutoPIC matches its first ten characters (registry.prefix) against registered vehicles that start the same way in Spain, Czechia, Denmark and Finland. registry.vehicles tells you how many there are; yearMin andyearMax, the years they were first registered.

registry
{
  "prefix": "VF15RSN0A5",
  "vehicles": 17835,
  "yearMin": 2014,
  "yearMax": 2024,
  "model": {
    "make": "RENAULT",
    "makeId": "f92cf3e2-9d1c-4b90-a9d8-0840a6626652",
    "model": "CLIO",
    "modelId": "0bd5e8d0-96ce-4456-9ddd-136f61f76802",
    "share": 0.9900756938603869
  }
}

Shares

Every piece of information drawn from the registers carries a share: the fraction of those vehicles it applies to, from 0 to 1. Here, 99% of the 17,835 vehicles are Clios. A high share means you can display the value as is; a low share means several versions share this VIN prefix, so offer the options as a choice rather than picking one for the user.

Engines: registry.matches

The combinations of fuel type, displacement and power found, from most to least common, each with its share, its years and the registers that list it.

registry.matches[0]
{
  "make": "RENAULT",
  "makeId": "f92cf3e2-9d1c-4b90-a9d8-0840a6626652",
  "model": "CLIO",
  "modelId": "0bd5e8d0-96ce-4456-9ddd-136f61f76802",
  "fuel": "gasoline",
  "displacementCc": 1149,
  "powerKw": 54,
  "yearMin": 2015,
  "yearMax": 2023,
  "vehicles": 13675,
  "share": 0.7667507709559854,
  "sources": [
    "CZ_RSV",
    "DK_DMR"
  ]
}

Technical data: registry.specs

The most likely type-approved version, according to the Dutch register (RDW): approval number, Euro standard, CO2, weights, dimensions, seats, top speed. Up to three versions are returned, each with its share.

registry.specs[0]
{
  "name": "CLIO",
  "typeApproval": "E2*2001/116*0327*75",
  "variant": "5RSN",
  "version": "5RSN0A",
  "fuel": "gasoline",
  "cylinders": 4,
  "displacementCc": 1149,
  "powerKw": 54,
  "emissionLevel": "EURO 6 W",
  "co2Wltp": 127,
  "co2Nedc": 127,
  "massEmptyKg": 952,
  "massMaxKg": 1566,
  "lengthCm": 406,
  "widthCm": 173,
  "heightCm": 145,
  "wheelbaseCm": 259,
  "seats": 5,
  "doors": 4,
  "maxSpeedKmh": 167,
  "share": 0.9817213344547239,
  "source": "NL_RDW"
}

When information is missing

A missing field means the source does not provide it for this vehicle: a North American VIN has noregistry, and a rare VIN prefix may have no technical data. Your interface should treat every field as optional, except vin and valid.