Skip to main content
POST
Returns federal fuel economy ratings and annual fuel expenditure for US light-duty vehicles from model year 1984 on, from the US Department of Energy and US Environmental Protection Agency: city, highway and combined miles per gallon (or the equivalent for electric vehicles) for each engine and transmission option. The model must be named as the source names it.

Authentication

Requires x402 payment in the payment-signature header.

Request Body

integer
required
The model year, from 1984 through next calendar year. At least 1984. Model year cannot be later than next year.
string
required
The vehicle make, for example Toyota. 2 to 40 characters.
string
required
The model as the source names it, for example Camry or Camry Hybrid LE. 1 to 60 characters.
string
Case-insensitive text in the option description, for example 4 cyl, 2.5 L or S8; omitted selects the first option. 1 to 60 characters.

Response (200 OK)

Top-level envelope: success (boolean) and data (object). All fields below are nested under data.
string
Durable job ID for audit and lookup
string
Job status: completed
string
Always vehicle_fuel_economy
object
The answer, described under Result below
object
Where the answer came from and when
string
The public body the data comes from. Always US Department of Energy and US Environmental Protection Agency.
string
public when the data comes from a public body, commercial otherwise
string
When the lookup was made, as an ISO 8601 UTC time
string | null
The selected vehicle record’s modifiedOn calendar date; null when no option was fetched.

Result

Nested under data.result.
object[]
Available options in source order.
integer
The source identifier of this engine and transmission option.
string
The option text as the source lists it.
boolean
True when an option was fetched and the fields below describe it.
number | null
The source identifier of the selected vehicle option. null when the source gives no value.
number | null
The model year. null when the source gives no value.
string | null
The vehicle make. null when the source gives no value.
string | null
The model as the source names it. null when the source gives no value.
string | null
The federal vehicle class. null when the source gives no value.
string | null
The drive configuration. null when the source gives no value.
string | null
The transmission. null when the source gives no value.
number | null
The engine cylinder count; null when inapplicable.
number | null
The engine displacement in liters; null when inapplicable.
string | null
The primary fuel. null when the source gives no value.
string | null
The secondary fuel; null when blank.
number | null
City miles per gallon, or miles per gallon equivalent for an electric vehicle. null when the source gives no value.
number | null
Highway miles per gallon, or miles per gallon equivalent for an electric vehicle. null when the source gives no value.
number | null
Combined miles per gallon, or miles per gallon equivalent for an electric vehicle. null when the source gives no value.
number | null
Combined electricity use in kWh per 100 miles; null for a non-electric vehicle.
number | null
Electric range in miles; null when the source reports zero.
number | null
Estimated annual fuel cost in US dollars. null when the source gives no value.
number | null
US dollars over five years versus the average new vehicle: positive is money saved, negative is money spent. null when the source gives no value.
number | null
Tailpipe CO2 emissions in grams per mile. null when the source gives no value.
integer | null
Fuel economy score, 1 to 10; null when unavailable.
integer | null
Greenhouse gas score, 1 to 10; null when unavailable.
string | null
The record modification date, YYYY-MM-DD. null when the source gives no value.
See Pricing for this tool’s price. A wallet (x402) call receives it in the 402 quote before anything is charged; a call paid from prepaid credits is charged when the API accepts the request and answers 200.

Notes

  • Camry, Camry AWD LE/SE and Camry Hybrid LE are three separate models. Make and model matching is case-insensitive.
  • The result lists the engine and transmission options in source order. variant picks among the options by case-insensitive text, for example 4 cyl, 2.5 L or S8; without it the first option is used.
  • An unknown model or unmatched variant completes with matched: false and the available options.
  • Unavailable or inapplicable values are null.
  • The source refreshes weekly; updated_on dates the selected record.
  • Results return inline. The finished job stays available at /v1/requests/{request_id}