Generations

Powered by Auto Trader

Use the Auto Trader taxonomy to power your website or app with comprehensive coverage of vehicles for a wide range of asset types.

 

This method returns a list of generations for a given model range, with the option of filtering to currently available vehicles for new vehicle websites and apps.

 

Key features:

 

  • Cars, Vans, Motorcycles and Motorhomes

  • Option to filter to new vehicles only

  • From 1p per search

 

 

Pricing

PAYG
30p
Per Use

Sample Response

Documentation

Introduction

This endpoint returns all Auto Trader generation ids and descriptions for the requested model range.

Header

When making calls to our API, include the following header:

x-api-key:your-api-key-here

Example Request

https://api.oneautoapi.com/autotrader/getgenerationsfromautotradermodelid?autotrader_model_id=a4860994e2ff60e5073c2ac0464964fa&current_production=true

Example Sandbox Request

https://sandbox.oneautoapi.com/autotrader/getgenerationsfromautotradermodelid?autotrader_model_id=a4860994e2ff60e5073c2ac0464964fa&current_production=true

Request Parameters

autotrader_model_id
mandatory, string, e.g. a4860994e2ff60e5073c2ac0464964fa
Auto Trader identifier for the vehicle model range
current_production
optional, string, e.g. true
When supplying a "true" value will return only generations currently in production

Sample Response

{
  "success": true,
  "result": {
    "generations_data": [
      {
        "autotrader_generation_id": "1a2b345cf6d789ef1g0111h2i13j141k",
        "generation_desc": "Convertible (2019- 2022)"
      }
    ]
  },
  "error": "If there is an error the message would go here"
}

Response Parameters

success
e.g. true
Whether the api call was successful
autotrader_generation_id
e.g. 1a2b345cf6d789ef1g0111h2i13j141k
The Auto Trader identifier for that generation of vehicle
generation_desc
e.g. Convertible (2019- 2022)
The generation description
error
e.g. If there is an error the message would go here
Details of what went wrong with the api call

Status Codes

200
success, chargeable
Request has been successfully received and a response has been sent.
202
accepted, non-chargeable
Request has been received and accepted for processing, but the action has not yet been completed.
204
no content, non-chargeable
Request has been successfully received but there is no content to return e.g. if an invalid VRM has been sent.
206
partial content, non-chargeable
Request has been successfully received but limited content is returned e.g. if an invalid VRM has been sent.
400
bad request, non-chargeable
Request was not received e.g. if any required parameters are missing.
403
forbidden, non-chargeable
Request was rejected e.g. if the API key is invalid or the service is not enabled.
429
too many requests, non-chargeable
API key rate limit/quota has been exceeded.
500
internal server error, non-chargeable
We are unable to process the request e.g. if the API is under extremely heavy load.
503
service unavailable, non-chargeable
Service is temporarily unavailable. Contact help@oneautoapi.com

Also Available From Auto Trader

One Auto API Limited
Terms Privacy Policy