Identify$0.001 per call, 1,000 free a month
Fuel economy
EPA fuel economy for the matching configurations of the decoded vehicle, from fueleconomy.gov.
GET /v1/vin/{vin}/fuel-economy
Parameters
| Name | In | Description |
|---|---|---|
| vin* | path | 17-character VIN (letters and digits, no I, O or Q). |
Request
curl "https://www.hubcapdata.com/v1/vin/4T1B11HK6KU100001/fuel-economy" \
-H "Authorization: Bearer YOUR_API_KEY"Response
Sample data from test mode. Live responses have the same fields.
{
"data": {
"vin": "4T1B11HK6KU100001",
"vehicle": {
"year": 2019,
"make": "Toyota",
"model": "Camry"
},
"configurations": [
{
"epa_id": "42600",
"description": "Camry FWD, Automatic 8-spd, 4 cyl, 2.5 L",
"city_mpg": 29,
"highway_mpg": 41,
"combined_mpg": 34,
"fuel_type": "Regular Gasoline",
"co2_grams_per_mile": 261,
"electric_range_miles": null
}
]
},
"meta": {
"request_id": "req_4n8b2v6c1x9z3l7k5j0h",
"mode": "live",
"cost": 0.001,
"cached": false,
"balance": 98.42
}
}Errors
400 invalid input, 401 bad key, 402 not enough credit, 404 no record (free), 429 rate limited, 503 sources unavailable (free). See Errors.