@shaggytools/nhtsa-api-wrapper / Exports / api/endpoints/GetVehicleTypesForMakeId
Module: api/endpoints/GetVehicleTypesForMakeId
Table of contents
Functions
Type Aliases
Functions
GetVehicleTypesForMakeId
▸ GetVehicleTypesForMakeId(makeId, doFetch?): Promise<NhtsaResponse<GetVehicleTypesForMakeIdResults>>
💡 More Information
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:
GetAllMakesendpointGetMakeForManufacturerendpointGetModelsForMakeendpointGetModelsForMakeYearendpoint
You can get makeIDs via MakeID key in Results objects of the following endpoints:
DecodeVinValuesDecodeVinValuesBatch
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.
DecodeVinDecodeVinExtended
Parameters
| Name | Type | Description |
|---|---|---|
makeId | string | number | Make ID to search |
doFetch? | true | Whether to fetch the data or just return the URL (default: true) |
Returns
Promise<NhtsaResponse<GetVehicleTypesForMakeIdResults>>
- Api Response
object-or- urlstringifdoFetch = false
Defined in
api/endpoints/GetVehicleTypesForMakeId.ts:41
▸ GetVehicleTypesForMakeId(makeId, doFetch): Promise<string>
Parameters
| Name | Type |
|---|---|
makeId | string | number |
doFetch | false |
Returns
Promise<string>
Defined in
api/endpoints/GetVehicleTypesForMakeId.ts:46
Type Aliases
GetVehicleTypesForMakeIdResults
Ƭ GetVehicleTypesForMakeIdResults: Object
Objects found in the Results array of GetVehicleTypesForMakeId endpoint response.
Type declaration
| Name | Type |
|---|---|
VehicleTypeId | number |
VehicleTypeName | string |