Reference$0.001 per call, 1,000 free a month

Specs by year, make and model

Every EPA-rated configuration of a year, make and model: engine size and cylinders, transmission, drive, fuel type, MPG and electric range. Leave out the model to list the models a make sold that year.

GET /v1/specs

Parameters

NameInDescription
year*queryModel year, 1981 or later.
make*queryMake, such as Hyundai.
modelqueryModel, such as Tucson. Leave out to list the models.

Request

curl "https://api.hubcapdata.com/v1/specs?year=2022&make=Hyundai&model=Tucson" \
  -H "Authorization: Bearer YOUR_API_KEY"

Response

Sample data from test mode. Live responses have the same fields.

{
  "data": {
    "vehicle": {
      "year": 2022,
      "make": "Hyundai",
      "model": "Tucson"
    },
    "models": null,
    "configurations": [
      {
        "epa_id": "42900",
        "model": "Tucson AWD",
        "description": "Automatic (8-speed), 4 cyl, 2.5 L",
        "engine": {
          "cylinders": 4,
          "displacement_l": 2.5,
          "turbo": false,
          "supercharged": false,
          "electric_motor": null
        },
        "transmission": "Automatic",
        "drive": "AWD",
        "fuel_type": "Regular Gasoline",
        "vehicle_class": "Sport utility vehicle",
        "city_mpg": 24,
        "highway_mpg": 29,
        "combined_mpg": 26,
        "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.

All docs pages