Enrich an EV listing with electric range and charge time using the EPA fueleconomy.gov API instead of standard MPG fields

domain: fueleconomy.gov · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Resolve the vehicle to a numeric id via the menu chain GET /ws/rest/vehicle/menu/year, then .../make, then .../model, then .../options
  2. Call GET /ws/rest/vehicle/{id} to retrieve the full vehicle record
  3. For battery-electric and plug-in hybrid vehicles, read the EV-specific fields — electricity consumption (cityE/highwayE/combE in kWh/100mi), range/rangeCity/rangeHwy, and charge120/charge240 (charge time in hours) — instead of the city08/highway08/comb08 MPG fields used for gasoline vehicles
  4. Check atvType to confirm whether the vehicle is a pure EV, plug-in hybrid, or conventional vehicle before deciding which field set to read
  5. For plug-in hybrids, also check the phevBlended boolean, since blended PHEVs report separate phevCity/phevHwy/phevComb figures distinct from non-blended PHEVs

Known gotchas

Related routes

Retrieve vehicle fuel economy and environmental data from the EPA FuelEconomy.gov API to enrich vehicle listings
fueleconomy.gov · 6 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
Query alternative fuel and EV charging station locations using the NLR (formerly NREL) Alternative Fuel Stations API
developer.nlr.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