Skip to content
On this page

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

Module: api/endpoints/GetModelsForMake

Table of contents

Type Aliases

Functions

Type Aliases

GetModelsForMakeResults

Ƭ GetModelsForMakeResults: Object

Objects found in the Results array of GetModelsForMake endpoint response.

Type declaration

NameType
Make_IDnumber
Make_Namestring
Model_IDnumber
Model_Namestring

Defined in

api/endpoints/GetModelsForMake.ts:71

Functions

GetModelsForMake

GetModelsForMake(makeName, doFetch?): Promise<NhtsaResponse<GetModelsForMakeResults>>

💡 More Information

See: GetModelsForMake Documentation

GetModelsForMake returns the Models in the vPIC dataset for a specified makeName whose Name is LIKE the Make in vPIC Dataset.

makeName can be a partial, or a full for more specificity, e.g., "Harley", "Harley Davidson", etc.

Parameters

NameTypeDescription
makeNamestringVehicle make name
doFetch?trueWhether to fetch the data or just return the URL (default: true)

Returns

Promise<NhtsaResponse<GetModelsForMakeResults>>

  • Api Response object

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

Defined in

api/endpoints/GetModelsForMake.ts:28

GetModelsForMake(makeName, doFetch): Promise<string>

Parameters

NameType
makeNamestring
doFetchfalse

Returns

Promise<string>

Defined in

api/endpoints/GetModelsForMake.ts:33

Released under the MIT License.