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 derivatives for a given model range generation, with the option of filtering to currently available vehicles for new vehicle websites and apps.
Key features:
-
Car and Van valuations in a single service
-
Turnkey solution (no additional licensing)
- From 1p per search
Sample Response
V2
Documentation
Introduction
This endpoint returns all Auto Trader derivative ids and descriptions for the requested generation of a model.
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/getderivativesfromautotradergenerationid?autotrader_generation_id=1a2b345cf6d789ef1g0111h2i13j141k
Example Sandbox Request
https://sandbox.oneautoapi.com/autotrader/getderivativesfromautotradergenerationid?autotrader_generation_id=1a2b345cf6d789ef1g0111h2i13j141k
Request Parameters
autotrader_generation_id
mandatory, string, e.g. 1a2b345cf6d789ef1g0111h2i13j141k
Auto Trader identifier for that generation of vehicle
Sample Response
{
"success": true,
"result": {
"derivatives_data": [
{
"autotrader_derivative_id": "1a2b345cf6d789ef1g0111h2i13j141k",
"derivative_desc": "1.5 Cooper Classic Hatchback 3dr Petrol Manual Euro 6 (s/s) (136 ps)"
}
]
},
"error": "If there is an error the message would go here"
}Response Parameters
success
e.g. true
Whether the api call was successful
autotrader_derivative_id
e.g. 1a2b345cf6d789ef1g0111h2i13j141k
The Auto Trader Derivative ID
derivative_desc
e.g. 1.5 Cooper Classic Hatchback 3dr Petrol Manual Euro 6 (s/s) (136 ps)
Derivative 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
