Introduction
This endpoint returns four mileage adjusted valuations. By using the optional vehicle_condition parameter, valuations will also be condition adjusted. Additional metrics providing insight into market supply & demand, and market conditions are also returned.
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/valuationandmetricsfromid?autotrader_derivative_id=749024500fc445a0a4fbb8453f839a5d¤t_mileage=14000&first_registration_date=2021-09-20&vehicle_condition=90&advertised_price=42000&post_code=AB1 2CD
Example Sandbox Request
https://sandbox.oneautoapi.com/autotrader/valuationandmetricsfromid?autotrader_derivative_id=749024500fc445a0a4fbb8453f839a5d¤t_mileage=14000&first_registration_date=2021-09-20&vehicle_condition=90&advertised_price=42000&post_code=AB1 2CD
Request Parameters
autotrader_derivative_id
mandatory, string, e.g. 749024500fc445a0a4fbb8453f839a5d
Auto Trader identifier for the derivative of the vehicle
current_mileage
mandatory, string, e.g. 14000
Current mileage of the vehicle
first_registration_date
mandatory, string, e.g. 2021-09-20
Date of first registration
vehicle_condition
optional, string, e.g. 90
Vehicle's condition (0-100 - where 0 is very poor and 100 is retail-ready)
advertised_price
optional, string, e.g. 42000
The advertised price of the vehicle
post_code
optional, string, e.g. AB1 2CD
Postcode for the area of interest. Use a comma separator for multiple postcode requests e.g RG303AT
Sample Response
{
"success": true,
"result": {
"autotrader_derivative_id": "1a2b345cf6d789ef1g0111h2i13j141k",
"vehicle_desc": "MINI Convertible 1.5 Cooper Convertible 2dr Petrol Manual (s/s) (136 ps)",
"retail_valuation": 12345,
"retail_valuation_ex_vat": 12345,
"private_valuation": 12345,
"trade_valuation": 12345,
"part_exchange_valuation": 12345,
"market_supply": 1.2,
"market_demand": 1.23,
"market_condition": 0.12,
"locations": [
{
"location_market_rating": 12.34,
"days_to_sell": 123,
"post_code": "AB12ABC"
}
],
"national_market_rating": 12.3,
"national_days_to_sell": 12.3
},
"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
vehicle_desc
e.g. MINI Convertible 1.5 Cooper Convertible 2dr Petrol Manual (s/s) (136 ps)
The Vehicle description
retail_valuation
e.g. 12345
The suggested market average retail valuation for the specified vehicle (cars only).
retail_valuation_ex_vat
e.g. 12345
The suggested market average retail valuation excluding vat for the specified vehicle (cars only).
private_valuation
e.g. 12345
The suggested market average private sale valuation for the specified vehicle (location, market and condition adjusted).
trade_valuation
e.g. 12345
The suggested market average trade valuation for the specified vehicle (location, market and condition adjusted).
part_exchange_valuation
e.g. 12345
The suggested market average part exchange valuation for the specified vehicle (location, market and condition adjusted).
market_supply
e.g. 1.2
A comparison of the national market supply observed on Auto Trader over the last 7 days relative to the market supply that has been observed over the last 6 months (-0 to 1+) (-0: high supply, 1+: average-limited supply).
market_demand
e.g. 1.23
A comparison of the national demand observed on Auto Trader over the last 7 days relative to the level of demand that has been observed over the last 6 months (-0 to 1+) (-0: low demand, 1+: average-high demand).
market_condition
e.g. 0.12
Modelled number to illustrate current market condition based on Supply & Demand metrics (-0-1+) (-0: poor market condition, 1+: average-good market condition).
location_market_rating
e.g. 12.34
Modelled metric of the potential retail performance of a vehicle based on the Days to Sell, Supply and Demand for the given location (1-100) (1: poor performance, 100: good performance).
days_to_sell
e.g. 123
The expected number of days it will take to sell the vehicle.
post_code
e.g. AB12ABC
The location of the stock vehicle used as the centre of the search.
national_market_rating
e.g. 12.3
The modelled metric of the potential retail performance of a vehicle based on the Days to Sell, Supply and Demand at national level.
national_days_to_sell
e.g. 12.3
The expected number of days it will take to sell the vehicle based on the chosen advertised price at national level.
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