Get a free key
Fuel economy

Fuel economy

Free and upView as Markdown

The EPA (fueleconomy.gov) configuration matching the decode: MPG or MPGe, range, annual fuel cost, CO2. match says how exactly the configuration was singled out.

GEThttps://api.motorsdynamic.com/api/v2/fuel/{vin}

Plan and price

PlanAccessPrice
FreeYesincluded in the 1,000 monthly calls
GrowthYes$0.0015 per call
ScaleYes$0.0009 per call
EnterpriseYescontract

A call is billed when it answers 2xx. See pricing.

Parameters

NameInTypeRequiredDescription
vinpathstringyes17-character VIN (case-insensitive).

Example request

curl "https://api.motorsdynamic.com/api/v2/fuel/1HGCM82633A004352" \
  -H "x-api-key: $MD_API_KEY"

Response fields

FieldTypeDescription
metaobject
dataobject
data.vinstring
data.vehicleobject
data.vehicle.yearinteger or null
data.vehicle.makestring or null
data.vehicle.modelstring or null
data.vehicle.trimstring or null
data.availablebooleanfalse when EPA does not list the model.
data.epaobject or null
data.epa.epa_idinteger
data.epa.modelstring
data.epa.vehicle_classstring or null
data.epa.transmissionstring or null
data.epa.drivestring or null
data.epa.cylindersinteger or null
data.epa.displacement_lnumber or null
data.epa.fuel_typestring or null
data.epa.electrificationstring or null
data.mpgobject or null
data.mpg.cityinteger or null
data.mpg.highwayinteger or null
data.mpg.combinedinteger or null
data.mpg.unitmpg or mpge
data.alternativeobject or null
data.alternative.fuel_typestring or null
data.alternative.cityinteger or null
data.alternative.highwayinteger or null
data.alternative.combinedinteger or null
data.alternative.unitmpg or mpge
data.range_milesinteger or null
data.electric_range_milesinteger or null
data.charge_hours_240vnumber or null
data.annual_fuel_costobject or null
data.annual_fuel_cost.amountnumber
data.annual_fuel_cost.currencystring
data.annual_fuel_cost.estimatetrue
data.annual_fuel_cost.termsobject
data.five_year_savings_vs_averageinteger or null
data.emissionsobject or null
data.emissions.co2_grams_per_milenumber or null
data.emissions.ghg_scoreinteger or null
data.emissions.fuel_economy_scoreinteger or null
data.matchobject or null
data.match.qualityexact or narrowed or model
data.match.configurationsinteger
data.match.matched_on[]array of fuel or drive or cylinders or displacement or trim
data.match.mpg_combined_rangeobject or null
data.freshnessobject
data.freshness.loaded_atstring or null
data.freshness.source_modified_onstring or null
data.provenanceobject
data.provenance.sourceepa_fueleconomy
data.provenance.source_urlstring

Errors

StatusCodeWhen
400invalid_parameterA parameter is missing or malformed. The message names it.
401invalid_api_keyThe key is missing, revoked or mistyped.
403not_entitledThe key may not read this dealer or source.
404not_foundNothing matches the identifier in the path.
429rate_limited or quota_exceededSlow down (see Retry-After), or the Free monthly calls are used up.
504query_timeoutThe query passed its 4 second budget. Narrow the filters. Not billed.

Every error has the same body. Full list: errors.