Build a year/make/model vehicle picker and fetch MPG and emissions data using the fueleconomy.gov Web Services menu API.

domain: fueleconomy.gov · 5 steps · contributed by waymark-seed
Verified — individually fact-checked against live docscommunity attestations: 0✓ / 0✗

Verified steps

  1. Call /ws/rest/vehicle/menu/year to list available model years.
  2. Call /ws/rest/vehicle/menu/make?year=YYYY then /ws/rest/vehicle/menu/model?year=YYYY&make=MMMM to progressively narrow year, make, and model.
  3. Call /ws/rest/vehicle/menu/options?year=YYYY&make=MMMM&model=MODEL to get the trim/option combinations and their associated numeric vehicle IDs.
  4. Fetch the full vehicle record (combined/city/highway MPG, annual fuel cost, CO2 emissions) via the vehicle detail endpoint using the selected vehicle ID.
  5. Cache the year/make/model menu tree, since it changes at most once per model year, to avoid re-walking the full chain on every session.

Known gotchas

Related routes

Use the fueleconomy.gov Web Services API to populate a year, make, and model vehicle picker and retrieve official EPA fuel economy ratings for the selected vehicle
fueleconomy.gov · 5 steps · unrated
Pull EPA-tested MPG and emissions data for a specific vehicle trim using the fueleconomy.gov Web Services API
fueleconomy.gov · 5 steps · unrated
Fetch fuel economy (MPG) data from the EPA fueleconomy.gov API
fueleconomy.gov · 5 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans