Skip to content

FuelEconomy.gov API: Compare cars

Compares the official fuel economy and estimated annual fuel cost of two to four cars by year, make and model, using FuelEconomy.gov. Selects a base version when no trim is given.

fueleconomy.gov (opens in a new tab)Version 1ReadNo sign-inVerified Nov 2, 2026

Unofficial. Not affiliated with or endorsed by FuelEconomy.gov.

Inputs

Values from the run on Oct 23, 2026, shown under Output.

Cars, requiredcars

Two to four cars, each with a year, make, and model; for example, 2024 Toyota Camry Hybrid and 2024 Tesla Model 3.

  • 2024 Honda Civic
  • 2024 Toyota Camry
  • 2024 Toyota Prius Prime
  • 2024 Madeup Phantom

List of text 2 to 4 items.

Output

From a run on Oct 23, 2026, shortened for this page.
{  "cars": [    {      "car": "2024 Honda Civic",      "city": 30,      "link": "https://www.fueleconomy.gov/feg/noframes/47072.shtml",      "note": null,      "highway": 37,      "combined": 33,      "fuel_type": "Regular",      "vehicle_id": "47072",      "efficiency_unit": "MPG",      "vehicle_matched": "2024 Honda Civic 4Dr — Auto (AV-S7), 4 cyl, 2.0 L",      "co2_grams_per_mile": 266,      "annual_fuel_cost_usd": 1950,      "electric_range_miles": null,      "greenhouse_gas_score": 6    },    {      "car": "2024 Toyota Camry",      "city": 28,      "link": "https://www.fueleconomy.gov/feg/noframes/47090.shtml",      "note": null,      "highway": 39,      "combined": 32,      "fuel_type": "Regular",      "vehicle_id": "47090",      "efficiency_unit": "MPG",      "vehicle_matched": "2024 Toyota Camry LE/SE — Auto (S8), 4 cyl, 2.5 L",      "co2_grams_per_mile": 280,      "annual_fuel_cost_usd": 2000,      "electric_range_miles": null,      "greenhouse_gas_score": 6    },    {      "car": "2024 Toyota Prius Prime",      "city": 86,      "link": "https://www.fueleconomy.gov/feg/noframes/47500.shtml",      "note": null,      "highway": 72,      "combined": 79,      "fuel_type": "Regular Gas and Electricity",      "vehicle_id": "47500",      "efficiency_unit": "MPGe",      "vehicle_matched": "2024 Toyota Prius Prime — Auto (variable gear ratios), 4 cyl, 2.0 L",      "co2_grams_per_mile": 60,      "annual_fuel_cost_usd": 1350,      "electric_range_miles": 40,      "greenhouse_gas_score": 10    }  ],  "summary": "2024 Toyota Prius Prime — Auto (variable gear ratios), 4 cyl, 2.0 L is the cheapest to run, saving $650 per year versus 2024 Toyota Camry LE/SE — Auto (S8), 4 cyl, 2.5 L."}
Price
1 credit per completed run (1¢ with pay as you go); failed runs are free.
Method
fueleconomy.gov/compare_cars
Returns
per car: matched version, MPG or MPGe, annual fuel cost, CO2, GHG score, range, link; plus cheapest-to-run summary

Use it from your agent

Give your agent this line. It reads SKILL.md, gets a Fous API key and connects the Fous MCP server. Its run then takes the method fueleconomy.gov/compare_cars with the inputs above.

Ask your agent

  • Compare the fuel economy and annual fuel cost of a 2024 Toyota Camry Hybrid and a 2024 Honda Accord Hybrid
  • Which is cheaper to run per year, a 2023 Ford F-150 or a 2023 Chevrolet Silverado 1500?
  • Side by side MPG and CO2 emissions for a 2025 Hyundai Ioniq 5, a 2025 Kia EV6, and a 2025 Tesla Model Y
  • On fueleconomy.gov, check estimated yearly fuel cost for a 2022 Subaru Outback versus a 2022 Mazda CX-5
  • Compare 2024 Nissan Leaf, 2024 Chevrolet Bolt EUV, and 2024 Volkswagen ID.4 by range and annual energy cost
  • Returns official MPG or MPGe, range, annual fuel cost, five-year savings and emissions for every matching version of a vehicle. Costs use current fuel prices and 15,000 miles per year; plug-in hybrid costs include gasoline and electricity.

    fueleconomy.gov/get_fuel_economy
  • Gets the current average used asking price, the CarGurus price range and the 12-month price history for a model year (all trims), from CarGurus price trends.

    cargurus.com/get_market_value
  • Searches Carvana's used-car inventory by make and model, with optional price, year, mileage and ZIP filters, and returns each car's price, estimated monthly payment, mileage and delivery or pickup estimate for the ZIP.

    carvana.com/search_cars
  • Gets Kelley Blue Book's expert and consumer ratings, trim prices with the KBB Fair Purchase Price, fuel economy, pros, cons and the expert review's opening verdict for a car model by year, make and model. Some details are unavailable for certain model years.

    kbb.com/get_car_review
  • Searches new and used cars for sale near a US ZIP code for a make and model, with prices, dealer details and CarGurus deal ratings. Used cars come first, then new cars, each in CarGurus order; market difference is positive below market and negative above.

    cargurus.com/search_cars
  • Searches CarMax used cars by make and model with optional ZIP, distance, year, price and mileage filters, keeping CarMax's order. Pages expose only the first 48 cars; distance is CarMax's distance from the selected local store, and larger limits or narrow distance filters may return fewer matches.

    carmax.com/search_cars
  • Gets NHTSA 5-Star Safety Ratings for a car by make, model and model year. Returns each matching version; unrated versions have no stars.

    nhtsa.gov/get_safety_ratings
  • Searches Cars.com car listings for a make and model around a US ZIP code within a radius, optionally by condition (new, used or certified pre-owned) and maximum price, in Cars.com search order.

    cars.com/search_cars