Skip to content
On this page

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

Module: api/endpoints/GetAllMakes ​

Table of contents ​

Type Aliases ​

Functions ​

Type Aliases ​

GetAllMakesResults ​

Ƭ GetAllMakesResults: Object

Objects found in the Results array of GetAllMakes endpoint response.

Type declaration ​

NameType
Make_IDnumber
Make_Namestring

Defined in ​

api/endpoints/GetAllMakes.ts:56

Functions ​

GetAllMakes ​

▸ GetAllMakes(doFetch?): Promise<NhtsaResponse<GetAllMakesResults>>

💡 More Information

See: GetAllMakes Documentation

GetAllMakes provides a list of all the Makes available in the vPIC Dataset. Each object in the Results array represents the Make_ID and the Make_Name of an individual vehicle Make.

  • FYI there are over 10,000 registered makes in the database!

Parameters ​

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

Returns ​

Promise<NhtsaResponse<GetAllMakesResults>>

  • Api Response object -or- url string if doFetch = false (default: true)

Defined in ​

api/endpoints/GetAllMakes.ts:26

▸ GetAllMakes(doFetch): Promise<string>

Parameters ​

NameType
doFetchfalse

Returns ​

Promise<string>

Defined in ​

api/endpoints/GetAllMakes.ts:28

Released under the MIT License.