@shaggytools/nhtsa-api-wrapper / Exports / api/endpoints/GetModelsForMakeId
Module: api/endpoints/GetModelsForMakeId
Table of contents
Functions
Type Aliases
Functions
GetModelsForMakeId
▸ GetModelsForMakeId(makeId, doFetch?): Promise<NhtsaResponse<GetModelsForMakeIdResults>>
💡 More Information
GetModelsForMakeId 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<GetModelsForMakeIdResults>>
- Api Response
object-or- urlstringifdoFetch = false
Defined in
api/endpoints/GetModelsForMakeId.ts:41
▸ GetModelsForMakeId(makeId, doFetch): Promise<string>
Parameters
| Name | Type |
|---|---|
makeId | string | number |
doFetch | false |
Returns
Promise<string>
Defined in
api/endpoints/GetModelsForMakeId.ts:46
Type Aliases
GetModelsForMakeIdResults
Ƭ GetModelsForMakeIdResults: Object
Objects found in the Results array of GetModelsForMakeId endpoint response.
Type declaration
| Name | Type |
|---|---|
Make_ID | number |
Make_Name | string |
Model_ID | number |
Model_Name | string |