Skip to content
On this page

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

Module: api/endpoints/GetVehicleTypesForMakeId

Table of contents

Type Aliases

Functions

Type Aliases

GetVehicleTypesForMakeIdResults

Ƭ GetVehicleTypesForMakeIdResults: Object

Objects found in the Results array of GetVehicleTypesForMakeId endpoint response.

Type declaration

NameType
VehicleTypeIdnumber
VehicleTypeNamestring

Defined in

api/endpoints/GetVehicleTypesForMakeId.ts:87

Functions

GetVehicleTypesForMakeId

GetVehicleTypesForMakeId(makeId, doFetch?): Promise<NhtsaResponse<GetVehicleTypesForMakeIdResults>>

💡 More Information

See: GetVehicleTypesForMakeId Documentation

GetVehicleTypesForMakeId returns the Models in the vPIC dataset for a specified Make whose ID is equal to the makeID in the vPIC Dataset.

You can get makeIDs via MAKE_ID key in Results objects of the following endpoints:

  • GetAllMakes endpoint
  • GetMakeForManufacturer endpoint
  • GetModelsForMake endpoint
  • GetModelsForMakeYear endpoint

You can get makeIDs via MakeID key in Results objects of the following endpoints:

  • DecodeVinValues
  • DecodeVinValuesBatch

You can get makeIDs via ValueId key in Results objects of the following endpoints. One of the objects in the Results array will contain both Variable: "Make" and VariableId: 26. The ValueId key in that same object is the makeID for use in this endpoint.

  • DecodeVin
  • DecodeVinExtended

Parameters

NameTypeDescription
makeIdstring | numberMake ID to search
doFetch?trueWhether to fetch the data or just return the URL (default: true)

Returns

Promise<NhtsaResponse<GetVehicleTypesForMakeIdResults>>

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

Defined in

api/endpoints/GetVehicleTypesForMakeId.ts:41

GetVehicleTypesForMakeId(makeId, doFetch): Promise<string>

Parameters

NameType
makeIdstring | number
doFetchfalse

Returns

Promise<string>

Defined in

api/endpoints/GetVehicleTypesForMakeId.ts:46

Released under the MIT License.