Docs/APIs/Vehicle Fuel Economy

Vehicle Fuel Economy

EPA MPG, EV range and running costs for every car since 1984

OperationalCredits 1 per callp50 331msTransportationStar

Overview

Either `make` or `model` is required. `make` is matched after dropping punctuation and case, with Chevy, VW and Mercedes accepted; `model` matches the start or any part of the EPA's full model name or base model, so `model=Camry` returns Camry, Camry Hybrid LE and Camry AWD LE/SE. A model without a make searches every make that builds it. `year` and `fuelType` narrow the result, and results are ordered newest model year first, then by model name; `limit` (default 20, at most 50) and `page` walk through them.

The data is fueleconomy.gov's vehicles file, rebuilt weekly, joined to its emissions file for the smog rating (the federal rating where a vehicle has both a federal and a California one). Each row is one EPA test configuration: a model year, engine, transmission and drive. `mpg` is the EPA's adjusted label value on the primary fuel, in MPGe for electric vehicles; plug-in hybrids show gasoline MPG in `mpg` and MPGe on electricity in `mpgAlternateFuel`, with their charge-depleting electric range in `electric.rangeMiles`.

`powertrain` is derived from the EPA's alternative fuel type and fuel: electric, plugin_hybrid, hybrid, hydrogen, flex_fuel, cng, diesel or gasoline. Values the EPA leaves blank or zero are null. No match returns 404. On the Free plan kWh per 100 miles, charge times, the onboard charger, annual fuel cost, five-year savings, CO2 and scores are null.

Live Test Vehicle Fuel Economy API →

Endpoint

One host, one path per API. The block below shows this call in four languages; every one of them is the same HTTP request. Making requests covers the timeouts, retries and parameter rules that apply to all of them. The SDKs wrap the same call in a typed client.

GEThttps://api.apiverve.com/v1/vehiclefueleconomy
curl "https://api.apiverve.com/v1/vehiclefueleconomy?make=Tesla&model=Model%203&year=2024&fuelType=electric&limit=20&page=1" \
  -H "x-api-key: your_api_key_here"

Replace your_api_key_here with the key from your dashboard. When the inputs arrive as a list rather than one at a time, batch requests run up to 200 of them through this same API in a single call.

Authentication

Send your key in the x-api-key header. That is the only auth step — there is no token exchange and no per-endpoint scope to configure. Authentication covers creating, rotating and revoking keys.

401 is the only auth verdict

A 401 means the key is missing, invalid or expired. A 403 means the key is valid but not permitted here — blocked by a key restriction or an IP allow-list. Running out of credits is a 429.

Parameters

Sent in the query string. Premium parameters are accepted on every plan but only take effect on plans that include them.

ParameterTypeDescription
makeOptionalstringVehicle make, for example Toyota, Ford or Tesla. Either make or model is required
length 0–40
modelOptionalstringModel name or the start of it, for example Camry or Model 3. Either make or model is required
length 0–60
yearOptionalintegerModel year, 1984 or later
range 1984–2030
fuelTypeOptionalstringOnly vehicles with this powertrain
gasolinedieselhybridplugin_hybridelectricflex_fuelcnghydrogen
limitOptionalintegerVehicles per page, 1-50
default 20 · range 1–50
pageOptionalintegerPage of results to return, starting at 1
default 1 · range 1–∞

Response

Every API returns the same three top-level keys, so one response handler covers your whole integration: status, error and data. Only data changes shape. Response format covers the envelope, the other output formats and how premium fields are withheld.

Sample response
{
  "status": "ok",
  "error": null,
  "data": {
    "count": 5,
    "page": 1,
    "pages": 3,
    "returned": 2,
    "vehicles": [
      {
        "epaId": 47908,
        "year": 2024,
        "make": "Tesla",
        "model": "Model 3 Long Range AWD",
        "baseModel": "Model 3",
        "vehicleClass": "Midsize Cars",
        "powertrain": "electric",
        "fuelType": "Electricity",
        "drive": "All-Wheel Drive",
        "transmission": "Automatic (A1)",
        "engine": {
          "cylinders": null,
          "displacementL": null,
          "turbocharged": false,
          "supercharged": false,
          "description": null,
          "electricMotor": "84 and 191 kW ACPM 3-Phase"
        },
        "startStop": false,
        "mpg": {
          "unit": "MPGe",
          "city": 137,
          "highway": 124,
          "combined": 130
        },
        "mpgAlternateFuel": null,
        "electric": {
          "rangeMiles": 342,
          "rangeCityMiles": 357,
          "rangeHighwayMiles": 323,
          "rangeKm": 550,
          "kwhPer100Miles": {
            "city": 24.7,
            "highway": 27.2,
            "combined": 25.8
          },
          "chargeTime240vHours": 9.4,
          "chargeTime120vHours": null,
          "onboardCharger": null
        },
        "annualFuelCostUsd": 600,
        "fiveYearSavingsUsd": 8000,
        "co2GramsPerMile": 0,
        "scores": {
          "fuelEconomy": 10,
          "greenhouseGas": 10,
          "smog": 10
        },
        "gasGuzzler": false
      },
      {
        "epaId": 48473,
        "year": 2024,
        "make": "Tesla",
        "model": "Model 3 Long Range AWD-E",
        "baseModel": "Model 3",
        "vehicleClass": "Midsize Cars",
        "powertrain": "electric",
        "fuelType": "Electricity",
        "drive": "All-Wheel Drive",
        "transmission": "Automatic (A1)",
        "engine": {
          "cylinders": null,
          "displacementL": null,
          "turbocharged": false,
          "supercharged": false,
          "description": null,
          "electricMotor": "191 kW ACPM 3-Phase"
        },
        "startStop": false,
        "mpg": {
          "unit": "MPGe",
          "city": 133,
          "highway": 122,
          "combined": 128
        },
        "mpgAlternateFuel": null,
        "electric": {
          "rangeMiles": 341,
          "rangeCityMiles": 355,
          "rangeHighwayMiles": 324,
          "rangeKm": 549,
          "kwhPer100Miles": {
            "city": 25.3,
            "highway": 27.7,
            "combined": 26.4
          },
          "chargeTime240vHours": 10,
          "chargeTime120vHours": null,
          "onboardCharger": null
        },
        "annualFuelCostUsd": 600,
        "fiveYearSavingsUsd": 8000,
        "co2GramsPerMile": 0,
        "scores": {
          "fuelEconomy": 10,
          "greenhouseGas": 10,
          "smog": 10
        },
        "gasGuzzler": false
      }
    ]
  }
}

Response fields

Paths are relative to data. Premium fields are absent rather than zeroed on plans that do not include them, so check for presence instead of comparing to 0.

FieldTypeExampleDescription
countnumber5Number of vehicles that match
pagenumber1Page returned
pagesnumber3Number of pages at this limit
returnednumber2Number of vehicles in this response
vehiclesarray[2]Matching vehicles, newest model year first
epaIdnumber47908The vehicle's fueleconomy.gov id
yearnumber2024Model year
makestring"Tesla"Make
modelstring"Model 3 Long Range AWD"Full model name as the EPA rates it
baseModelstring"Model 3"Base model name
vehicleClassstring"Midsize Cars"EPA size class, for example Midsize Cars or Small Pickup Trucks 2WD
powertrainstring"electric"gasoline, diesel, hybrid, plugin_hybrid, electric, flex_fuel, cng, hydrogen or other
fuelTypestring"Electricity"Fuel as the EPA lists it, for example Regular, Premium or Electricity
drivestring"All-Wheel Drive"Drive type, for example Front-Wheel Drive or All-Wheel Drive
transmissionstring"Automatic (A1)"Transmission, for example Automatic (S8)
engineobject{...}Engine and motor
cylindersobjectnullNumber of cylinders
displacementLobjectnullEngine displacement in litres
turbochargedbooleanfalseWhether the engine is turbocharged
superchargedbooleanfalseWhether the engine is supercharged
descriptionobjectnullThe EPA's engine description code, when given
electricMotorstring"84 and 191 kW ACPM 3-Phase"Electric motor rating, for hybrids and electric vehicles
startStopbooleanfalseWhether the engine has start-stop
mpgobject{...}EPA fuel economy on the primary fuel
unitstring"MPGe"MPG, or MPGe for electric vehicles
citynumber137City fuel economy
highwaynumber124Highway fuel economy
combinednumber130Combined fuel economy
mpgAlternateFuelobjectnullFuel economy on the second fuel: electricity for plug-in hybrids, E85 or natural gas for dual-fuel vehicles
electricobject{...}Electric range and charging, for electric vehicles and plug-in hybrids
rangeMilesnumber342EPA electric range in miles
rangeCityMilesnumber357EPA city electric range in miles
rangeHighwayMilesnumber323EPA highway electric range in miles
rangeKmnumber550EPA electric range in kilometres
kwhPer100Milesobject{...}Electricity used per 100 miles
cityPremiumnumber24.7City kWh per 100 miles
highwayPremiumnumber27.2Highway kWh per 100 miles
combinedPremiumnumber25.8Combined kWh per 100 miles
chargeTime240vHoursPremiumnumber9.4Hours to charge on a 240V circuit
chargeTime120vHoursPremiumobjectnullHours to charge on a 120V circuit
onboardChargerPremiumobjectnullOnboard charger description, when given
annualFuelCostUsdPremiumnumber600EPA's annual fuel cost estimate in US dollars (15,000 miles, 55% city)
fiveYearSavingsUsdPremiumnumber8000Fuel cost saved over five years against the average new vehicle; negative means it costs more
co2GramsPerMilePremiumnumber0Tailpipe CO2 in grams per mile
scoresobject{...}EPA 1-10 scores, 10 best
fuelEconomyPremiumnumber10EPA fuel economy score, 2013 models on
greenhouseGasPremiumnumber10EPA greenhouse gas score, 2013 models on
smogPremiumnumber10EPA smog rating, 2000 models on
gasGuzzlerbooleanfalseWhether the vehicle carries the federal gas guzzler tax

Errors

Read the HTTP status first, then error for the specific reason. The body names the parameter that has to change. Error handling covers the full status list and which of them are worth retrying.

StatusMeaningWhat to do
400Input was rejectedRead error; it names the parameter.
401Key missing or invalidCheck the header name and the key value.
403Key valid, but not permittedA key restriction or IP allow-list; see key scoping.
429Rate limited, or out of creditsRead error to tell them apart; see rate limits.

Use cases

Car Shopping Sites
Show EPA MPG, EV range and running costs beside each listing and let buyers compare trims.
Fleet Electrification
Compare the annual fuel cost and CO2 of current vehicles against electric replacements.
Insurance and Finance
Add powertrain, fuel type and efficiency to vehicle records for pricing and green-loan eligibility.
Sustainability Reporting
Estimate tailpipe CO2 per mile for company cars and mileage claims.

Other ways to use Vehicle Fuel Economy

Set up Vehicle Fuel Economy on APIVerve, or reach the same source a different way. Your APIVerve account and credits work on all of them — one key, one balance.

Give it to an AI agentConnect over MCP and your agent calls it as a native tool — Claude, Cursor, ChatGPT.VerveKit →Reference →
Google Sheets or ExcelA =VERVE() formula fills a column — no script, no export, recalculates in place.VerveSheets →Reference →
Ground an agent on itA cited, machine-checkable fact your model can't produce on its own.VerveContext →Reference →

More in Transportation:

Was this page helpful?