@shaggytools/nhtsa-api-wrapper / Exports / api/endpoints/GetAllMakes
Module: api/endpoints/GetAllMakes
Table of contents
Functions
Type Aliases
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- urlstringifdoFetch = false(default:true)
Defined in
api/endpoints/GetAllMakes.ts:26
▸ GetAllMakes(doFetch): Promise<string>
Parameters
| Name | Type |
|---|---|
doFetch | false |
Returns
Promise<string>
Defined in
api/endpoints/GetAllMakes.ts:28
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 |