@shaggytools/nhtsa-api-wrapper - v3.0.4 / Exports / api/endpoints/GetModelsForMakeId
Module: api/endpoints/GetModelsForMakeId
Table of contents
Type Aliases
Functions
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 |
Defined in
api/endpoints/GetModelsForMakeId.ts:87
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 makeID
s via MAKE_ID
key in Results objects of the following endpoints:
GetAllMakes
endpointGetMakeForManufacturer
endpointGetModelsForMake
endpointGetModelsForMakeYear
endpoint
You can get makeID
s via MakeID
key in Results objects of the following endpoints:
DecodeVinValues
DecodeVinValuesBatch
You can get makeID
s 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
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- urlstring
ifdoFetch = false
Defined in
api/endpoints/GetModelsForMakeId.ts:41
▸ GetModelsForMakeId(makeId
, doFetch
): Promise
<string
>
Parameters
Name | Type |
---|---|
makeId | string | number |
doFetch | false |
Returns
Promise
<string
>