Skip to content
On this page

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

Module: api/endpoints/GetVehicleTypesForMake

Table of contents

Type Aliases

Functions

Type Aliases

GetVehicleTypesForMakeResults

Ƭ GetVehicleTypesForMakeResults: Object

Objects found in the Results array of GetVehicleTypesForMake endpoint response.

Type declaration

NameType
MakeIdnumber
MakeNamestring
VehicleTypeIdnumber
VehicleTypeNamestring

Defined in

api/endpoints/GetVehicleTypesForMake.ts:73

Functions

GetVehicleTypesForMake

GetVehicleTypesForMake(makeName, doFetch?): Promise<NhtsaResponse<GetVehicleTypesForMakeResults>>

💡 More Information

See: GetVehicleTypesForMake Documentation

GetVehicleTypesForMake returns all the Vehicle Types in the vPIC dataset for a specified Make, whose name is LIKE the make name in the vPIC Dataset.

makeName can be a partial name, or a full name for more specificity, e.g., "Merc", "Mercedes Benz", etc.

Parameters

NameTypeDescription
makeNamestringName of the vehicle make to search
doFetch?trueWhether to fetch the data or just return the URL (default: true)

Returns

Promise<NhtsaResponse<GetVehicleTypesForMakeResults>>

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

Defined in

api/endpoints/GetVehicleTypesForMake.ts:27

GetVehicleTypesForMake(makeName, doFetch): Promise<string>

Parameters

NameType
makeNamestring
doFetchfalse

Returns

Promise<string>

Defined in

api/endpoints/GetVehicleTypesForMake.ts:32

Released under the MIT License.