@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
Name | Type |
---|---|
Make_ID | number |
Make_Name | string |
Defined in
api/endpoints/GetAllMakes.ts:56
Functions
GetAllMakes
▸ GetAllMakes(doFetch?
): Promise
<NhtsaResponse
<GetAllMakesResults
>>
💡 More Information
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
Name | Type | Description |
---|---|---|
doFetch? | true | Whether to fetch the data or just return the URL (default: true ) |
Returns
Promise
<NhtsaResponse
<GetAllMakesResults
>>
- Api Response
object
-or- urlstring
ifdoFetch = false
(default:true
)
Defined in
api/endpoints/GetAllMakes.ts:26
▸ GetAllMakes(doFetch
): Promise
<string
>
Parameters
Name | Type |
---|---|
doFetch | false |
Returns
Promise
<string
>