Insurance Rates
Provides benchmark insurance rates based on group, fuel type and age.
UK average insurance rates - actual rates vary according to make, model, valuation, mileage, driving history and location.
Key Features
Insurance Group
Average rates based on insurance group (1-50)
Fuel Type
Average rates for 20, 30, 40 and 50 year old drivers
Age
Average rates for 20, 30, 40 and 50 year old drivers
Sample Response
V2
Documentation
Introduction
Provides benchmark insurance rates based on group, fuel type and age.
Header
When making calls to our API, include the following header:
x-api-key:your-api-key-here
Example Request
https://api.oneautoapi.com/oneauto/insurancecosts?insurance_group_1to50=22&fuel_type_desc=Petrol
Example Sandbox Request
https://sandbox.oneautoapi.com/oneauto/insurancecosts?insurance_group_1to50=22&fuel_type_desc=Petrol
Request Parameters
insurance_group_1to50
mandatory, string, e.g. 22
The 1-50 insurance group
fuel_type_desc
mandatory, string, e.g. Petrol
The vehicle's fuel type description
Sample Response
{
"success": true,
"result": {
"insurance_cost_20yo": 1662,
"insurance_cost_30yo": 965,
"insurance_cost_40yo": 845,
"insurance_cost_50yo": 683
},
"error": "If there is an error the message would go here"
}Response Parameters
success
e.g. true
Whether the api call was successful
insurance_cost_20yo
e.g. 1662
UK average insurance premium per annum for a 20 year old.
insurance_cost_30yo
e.g. 965
UK average insurance premium per annum for a 30 year old.
insurance_cost_40yo
e.g. 845
UK average insurance premium per annum for a 40 year old.
insurance_cost_50yo
e.g. 683
UK average insurance premium per annum for a 50 year old.
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
