Skip to content
On this page

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

Module: api/endpoints/GetManufacturerDetails

Table of contents

Type Aliases

Functions

Type Aliases

GetManufacturerDetailsResults

Ƭ GetManufacturerDetailsResults: Object

Objects found in the Results array of GetManufacturerDetails endpoint response.

Type declaration

NameType
Addressstring | null
Address2string | null
Citystring | null
ContactEmailstring | null
ContactFaxstring | null
ContactPhonestring | null
Countrystring | null
DBAsstring | null
EquipmentItemsunknown[]
LastUpdatedstring
ManufacturerTypes{ Name: string }[]
Mfr_CommonNamestring | null
Mfr_IDnumber | null
Mfr_Namestring | null
OtherManufacturerDetailsstring | null
PostalCodestring | null
PrimaryProductstring | null
PrincipalFirstNamestring | null
PrincipalLastNamestring | null
PrincipalPositionstring | null
StateProvincestring | null
SubmittedNamestring | null
SubmittedOnstring
SubmittedPositionstring | null
VehicleTypes{ GVWRFrom: string ; GVWRTo: string ; IsPrimary: boolean ; Name: string }[]

Defined in

api/endpoints/GetManufacturerDetails.ts:77

Functions

GetManufacturerDetails

GetManufacturerDetails(manufacturer, doFetch?): Promise<NhtsaResponse<GetManufacturerDetailsResults>>

💡 More Information

See: GetMakesForVehicleType Documentation

GetManufacturerDetails provides the details for a specific 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<GetManufacturerDetailsResults>>

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

Defined in

api/endpoints/GetManufacturerDetails.ts:31

GetManufacturerDetails(manufacturer, doFetch): Promise<string>

Parameters

NameType
manufacturerstring | number
doFetchfalse

Returns

Promise<string>

Defined in

api/endpoints/GetManufacturerDetails.ts:36

Released under the MIT License.