Skip to content
On this page

@shaggytools/nhtsa-api-wrapper - v3.0.4 / Exports / api/endpoints/DecodeVinValuesBatch

Module: api/endpoints/DecodeVinValuesBatch

Table of contents

Type Aliases

Functions

Type Aliases

DecodeVinValuesBatchResults

Ƭ DecodeVinValuesBatchResults: Object

Objects found in the Results array of DecodeVinValuesBatch endpoint response.

Type declaration

NameType
ABSstring
ActiveSafetySysNotestring
AdaptiveCruiseControlstring
AdaptiveDrivingBeamstring
AdaptiveHeadlightsstring
AdditionalErrorTextstring
AirBagLocCurtainstring
AirBagLocFrontstring
AirBagLocKneestring
AirBagLocSeatCushionstring
AirBagLocSidestring
AutoReverseSystemstring
AutomaticPedestrianAlertingSoundstring
AxleConfigurationstring
Axlesstring
BasePricestring
BatteryAstring
BatteryA_tostring
BatteryCellsstring
BatteryInfostring
BatteryKWhstring
BatteryKWh_tostring
BatteryModulesstring
BatteryPacksstring
BatteryTypestring
BatteryVstring
BatteryV_tostring
BedLengthINstring
BedTypestring
BlindSpotInterventionstring
BlindSpotMonstring
BodyCabTypestring
BodyClassstring
BrakeSystemDescstring
BrakeSystemTypestring
BusFloorConfigTypestring
BusLengthstring
BusTypestring
CAN_AACNstring
CIBstring
CashForClunkersstring
ChargerLevelstring
ChargerPowerKWstring
CoolingTypestring
CurbWeightLBstring
CustomMotorcycleTypestring
DaytimeRunningLightstring
DestinationMarketstring
DisplacementCCstring
DisplacementCIstring
DisplacementLstring
Doorsstring
DriveTypestring
DriverAssiststring
DynamicBrakeSupportstring
EDRstring
ESCstring
EVDriveUnitstring
ElectrificationLevelstring
EngineConfigurationstring
EngineCyclesstring
EngineCylindersstring
EngineHPstring
EngineHP_tostring
EngineKWstring
EngineManufacturerstring
EngineModelstring
EntertainmentSystemstring
ErrorCodestring
ErrorTextstring
ForwardCollisionWarningstring
FuelInjectionTypestring
FuelTypePrimarystring
FuelTypeSecondarystring
GCWRstring
GCWR_tostring
GVWRstring
GVWR_tostring
KeylessIgnitionstring
LaneCenteringAssistancestring
LaneDepartureWarningstring
LaneKeepSystemstring
LowerBeamHeadlampLightSourcestring
Makestring
MakeIDstring
Manufacturerstring
ManufacturerIdstring
Modelstring
ModelIDstring
ModelYearstring
MotorcycleChassisTypestring
MotorcycleSuspensionTypestring
NCSABodyTypestring
NCSAMakestring
NCSAMapExcApprovedBystring
NCSAMapExcApprovedOnstring
NCSAMappingExceptionstring
NCSAModelstring
NCSANotestring
NonLandUsestring
Notestring
OtherBusInfostring
OtherEngineInfostring
OtherMotorcycleInfostring
OtherRestraintSystemInfostring
OtherTrailerInfostring
ParkAssiststring
PedestrianAutomaticEmergencyBrakingstring
PlantCitystring
PlantCompanyNamestring
PlantCountrystring
PlantStatestring
PossibleValuesstring
Pretensionerstring
RearAutomaticEmergencyBrakingstring
RearCrossTrafficAlertstring
RearVisibilitySystemstring
SAEAutomationLevelstring
SAEAutomationLevel_tostring
SeatBeltsAllstring
SeatRowsstring
Seatsstring
SemiautomaticHeadlampBeamSwitchingstring
Seriesstring
Series2string
SteeringLocationstring
SuggestedVINstring
TPMSstring
TopSpeedMPHstring
TrackWidthstring
TractionControlstring
TrailerBodyTypestring
TrailerLengthstring
TrailerTypestring
TransmissionSpeedsstring
TransmissionStylestring
Trimstring
Trim2string
Turbostring
VINstring
ValveTrainDesignstring
VehicleDescriptorstring
VehicleTypestring
WheelBaseLongstring
WheelBaseShortstring
WheelBaseTypestring
WheelSizeFrontstring
WheelSizeRearstring
Wheelsstring
Windowsstring

Defined in

api/endpoints/DecodeVinValuesBatch.ts:90

Functions

DecodeVinValuesBatch

DecodeVinValuesBatch(inputString, doFetch?): Promise<NhtsaResponse<DecodeVinValuesBatchResults>>

💡 More Information

See: DecodeVinValuesBatch Documentation

DecodeVinValuesBatch decodes a batch of Vehicle Identification Numbers (VINs) and returns useful information about the vehicles in in a flat format. This means the endpoint will return an array with multiple objects of results. Each object represents a VIN from the inputString and the key:value pairs in the objects are variables and their values for each particular VIN.

For this particular API you just have to provide a string of VINs, inputString, that are separated by a ;. You can also indicate the model year after the vin, preceded by a ,.

The inputString parameter should be in the following format:

  • ex: 5UXWX7C5*BA, 2011; 5YJSA3DS*EF
  • no modelYear: vin; vin; vin
  • with modelYear: vin, modelYear; vin, modelYear; vin, modelYear
  • mix of with/without modelYear: vin; vin, modelYear
  • vin and modelYear are placeholders for real values in these examples
  • all spaces between ; and , are used in these examples for readability and are optional
  • Max 50 VINs per batch

Providing the modelYear in the input string allows for the decoding to specifically be done in the current, or older (pre-1980), model year ranges. It is recommended to always provide the model year if it is known at the time of decoding, but it is not required.

Parameters

NameTypeDescription
inputStringstringA string of Vehicle Identification Numbers (full or partial) following the format listed in the description
doFetch?trueWhether to fetch the data or just return the URL (default: true)

Returns

Promise<NhtsaResponse<DecodeVinValuesBatchResults>>

  • Api Response object -or- url string if doFetch = false

Defined in

api/endpoints/DecodeVinValuesBatch.ts:43

DecodeVinValuesBatch(inputString, doFetch): Promise<string>

Parameters

NameType
inputStringstring
doFetchfalse

Returns

Promise<string>

Defined in

api/endpoints/DecodeVinValuesBatch.ts:48

Released under the MIT License.