VehicleSearch
Description
The operation can also return all of the vehicle's options, including BedId,
BedName, BodyStyleId, BodyStyleName, BrakesId, BrakesName, DriveTypeId, DriveTypeName,
EngineId, EngineName, MakeId
, and MakeName
. (The full
list of options follows.) All of these parameters can be used in subsequent requests with the
other vehicle operations to narrow results.
Availability
US locale.
Request Parameters
Name | Description | Required |
---|---|---|
MakeId
|
Identifier that uniquely identifies the make of the car. The make is the car's manufacturer, such as Ford or General Motors. Type: nonNegativeInteger Default: None Valid Values: A valid ID Constraint: With |
Constraint |
ModelId
|
Identifier that uniquely identifies the model of the car. Type: nonNegativeInteger Default: None Valid Values: A valid ID Constraint: With |
Constraint |
TrimId
|
Identifier that uniquely identifies the trim on the car. Type: nonNegativeInteger Default: None Valid Values: A valid ID Constraint: Required when using the VehicleOptions response group |
Constraint |
Year
|
The year of the car the part works in. Type: String Default: None Valid Values: A four digit year, which is returned by Constraint: Required only if including |
Constraint |
ResponseGroup
|
Specifies the types of values to return. You can specify multiple response groups in one request by separating them with commas. Type: String Default: VehicleYears Valid Values: VehicleYears | VehicleMakes | VehicleModels | VehicleTrims | VehicleOptions |
No |
VehicleSearch
also accepts the parameters that all operations can use.
For more information, see, Common Request
Parameters
Examples
Search for all car makes for the year 2001.
http://ecs.amazonaws.com/onca/xml?
Service=AWSECommerceService&
AWSAccessKeyId=[AWS Access Key ID]
&
Operation=VehicleSearch
Version=2008-08-19&
Year=2001&
ResponseGroup=VehicleMakes
The response to this request is shown in, Response to Sample Request.
Sample Response
The following XML is a snippet of the full response to the first sample request.
<VehicleSearchResponse> <VehicleMakes> <VehicleMake> <MakeName>AM General</MakeName> <MakeId>44</MakeId> </VehicleMake> <VehicleMake> <MakeName>Acura</MakeName> <MakeId>58</MakeId> </VehicleMake> <VehicleMake> <MakeName>Aston Martin</MakeName> <MakeId>77</MakeId> </VehicleMake> ... </VehicleMakes> </VehicleSearchResponse>