Developers
DriveCostCheck offers a free JSON API and an embeddable comparison widget. One condition: public use requires visible attribution — link to drivecostcheck.com (or the specific vehicle page) wherever the data is shown. Vehicle data originates from U.S. EPA/DOE FuelEconomy.gov; DriveCostCheck is not affiliated with or endorsed by the EPA or DOE.
Vehicle endpoint
GET /api/v1/vehicle/{epaId}
Returns the vehicle's identity, official EPA efficiency values, the owner-reported “My MPG” summary when owners shared one, and the measured energy cost at our stated default assumptions (12,000 miles/year, 55% city, dated national-average prices). Sentinel values are null, never fake numbers. EPA record ids appear on every vehicle page and in the browse tree.
curl https://www.drivecostcheck.com/api/v1/vehicle/47387
CORS is open (Access-Control-Allow-Origin: *), responses are cached for an hour, and the payload always carries an attribution field. No key, no rate card — please cache on your side and be reasonable.
Embeddable comparison
<iframe src="https://www.drivecostcheck.com/embed/compare?a=47387&b=47913" width="100%" height="260" style="border:0" title="DriveCostCheck comparison"></iframe>
A self-contained, framing-allowed snapshot of any two vehicles at the stated default assumptions, with a link into the full interactive tool. It is the only route on this site that may be embedded in an iframe.
Semantics that never change
- Driving-energy cost only — never total cost of ownership.
- One exact EPA record per result; trims are never merged.
- MPG is never arithmetically averaged; MPGe never enters arithmetic.
- Missing upstream values are null (“not published”), never guessed.
Questions or corrections: see /corrections. Details on every computation: /methodology.