VPIC API Helper Functions
There are a total of 24 endpoints available in the VPIC API. Each endpoint returns a different set of data and has different required inputs.
VPIC API Endpoints
- DecodeVin
- DecodeVinExtended
- DecodeVinValues
- DecodeVinValuesBatch
- DecodeVinValuesExtended
- DecodeWMI
- GetAllMakes
- GetAllManufacturers
- GetCanadianVehicleSpecifications
- GetEquipmentPlantCodes
- GetMakeForManufacturer
- GetMakesForManufacturerAndYear
- GetMakesForVehicleType
- GetManufacturerDetails
- GetModelsForMake
- GetModelsForMakeId
- GetModelsForMakeIdYear
- GetModelsForMakeYear
- GetParts
- GetVehicleTypesForMake
- GetVehicleTypesForMakeId
- GetVehicleVariableList
- GetVehicleVariableValuesList
- GetWMIsForManufacturer
Exported VPIC Endpoint Functions
The following demonstrates how to import all of the VPIC endpoint functions from this package.
💡 TIP
Although they are all imported at once in this example, you should import only the functions you are using.
javascript
import {
DecodeVin,
DecodeVinExtended,
DecodeVinValues,
DecodeVinValuesBatch,
DecodeVinValuesExtended,
DecodeWMI,
GetAllMakes,
GetAllManufacturers,
GetCanadianVehicleSpecifications,
GetEquipmentPlantCodes,
GetMakeForManufacturer,
GetMakesForManufacturerAndYear,
GetMakesForVehicleType,
GetManufacturerDetails,
GetModelsForMake,
GetModelsForMakeId,
GetModelsForMakeIdYear,
GetModelsForMakeYear,
GetParts,
GetVehicleTypesForMake,
GetVehicleTypesForMakeId,
GetVehicleVariableList,
GetVehicleVariableValuesList,
GetWMIsForManufacturer,
} from '@shaggytools/nhtsa-api-wrapper'