Skip to content
On this page

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

Module: api/endpoints/GetMakeForManufacturer

Table of contents

Type Aliases

Functions

Type Aliases

GetMakeForManufacturerResults

Ƭ GetMakeForManufacturerResults: Object

Objects found in the Results array of GetMakeForManufacturer endpoint response.

Type declaration

NameType
Make_IDnumber
Make_Namestring
Mfr_Namestring

Defined in

api/endpoints/GetMakeForManufacturer.ts:77

Functions

GetMakeForManufacturer

GetMakeForManufacturer(manufacturer, doFetch?): Promise<NhtsaResponse<GetMakeForManufacturerResults>>

💡 More Information

See: GetMakeForManufacturer Documentation

GetMakeForManufacturer returns all the Makes in the vPIC dataset for a specified manufacturer that is requested. Multiple results are returned in case of multiple matches.

manufacturer name can be a partial name, or a full name for more specificity, e.g. "988", "honda", "HONDA OF CANADA MFG., INC.", etc.

  • If supplied manufacturer is a number - method will do exact match on Manufacturer's Id.
  • If supplied manufacturer is a string - it will look for manufacturers whose name is LIKE the provided name. It accepts a partial manufacturer name as an input.

Parameters

NameTypeDescription
manufacturerstring | numberManufacturer Name or ID
doFetch?trueWhether to fetch the data or just return the URL (default: true)

Returns

Promise<NhtsaResponse<GetMakeForManufacturerResults>>

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

Defined in

api/endpoints/GetMakeForManufacturer.ts:31

GetMakeForManufacturer(manufacturer, doFetch): Promise<string>

Parameters

NameType
manufacturerstring | number
doFetchfalse

Returns

Promise<string>

Defined in

api/endpoints/GetMakeForManufacturer.ts:36

Released under the MIT License.