Legacy v1
Vehicle Efficiency
Last updated:
API reference for official vehicle fuel economy and efficiency ratings: EPA, Transport Canada, UK VCA, and EU EEA.
The efficiency API returns official fuel economy and efficiency ratings, each under the rating program that issued it: EPA (US), Transport Canada, UK VCA, and EU EEA. All data is normalized to metric units.
Rating programs
| Program | Region | Coverage | Test Cycle |
|---|---|---|---|
| EPA | United States | 1984-2026 | EPA 5-cycle |
| Transport Canada | Canada | 1995-2027 | 5-cycle |
| UK VCA | United Kingdom | Current | WLTP |
| EU EEA | European Union | 2010-present | WLTP |
Note: EPA test cycle results typically differ from WLTP by 10-20% for ICE vehicles. BEV efficiency is more comparable across regions.
Search efficiency records
GET /v1/efficiency/search
Search and filter efficiency records. Returns paginated results with all available efficiency metrics.
Optional parameters
| Parameter | Type | Description |
|---|---|---|
makes | string | Comma-separated list of vehicle makes (e.g., "Toyota,Honda"). Case-insensitive. |
models | string | Comma-separated list of models (e.g., "Camry,Accord"). Case-insensitive. |
yearMin | number | Minimum model year (e.g., 2020). |
yearMax | number | Maximum model year (e.g., 2024). |
powertrainTypes | string | Comma-separated powertrain types. See powertrain types. |
fuelTypes | string | Comma-separated fuel types (e.g., "Gasoline,Diesel,Electricity"). |
sources | string | Comma-separated rating programs: epa, tc, uk-vca, eu-eea. |
testCycles | string | Comma-separated test cycles: epa, wltp, mixed. |
sort | string | Sort field: make, model, year, combined_l_per_100km, combined_kwh_per_100km, co2_grams_per_km, electric_range_km. |
order | string | Sort order: asc or desc. Default: asc. |
limit | number | Results per page (1-250). Default: 50. |
offset | number | Number of results to skip for pagination. |
curl "https://api.cardog.app/v1/efficiency/search" \
-H "x-api-key: your-api-key" \
-G \
-d "makes=Tesla" \
-d "powertrainTypes=bev" \
-d "yearMin=2022" \
-d "sort=electric_range_km" \
-d "order=desc" \
-d "limit=10"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Search EPA fuel economy ratings
const results = await client.efficiency.search({
make: "Toyota",
model: "Prius",
year: 2023,
});
for (const record of results.data) {
console.log(`${record.variant}: ${record.combinedLPer100km} L/100km`);
console.log(`CO2: ${record.co2GramsPerKm} g/km`);
}import requests
response = requests.get('https://api.cardog.app/v1/efficiency/search', params={
'makes': 'Tesla',
'powertrainTypes': 'bev',
'yearMin': 2022,
'sort': 'electric_range_km',
'order': 'desc',
'limit': 10
}, headers={'x-api-key': 'your-api-key'})
data = response.json()Example
3 keysGet efficiency by vehicle
GET /v1/efficiency/:make/:model/:year
Retrieve all efficiency records for a specific make, model, and year. Returns all available trims and variants.
Path parameters
| Parameter | Type | Description |
|---|---|---|
make | string (required) | Vehicle make (e.g., "Toyota"). Case-insensitive. |
model | string (required) | Vehicle model (e.g., "Camry"). Case-insensitive. |
year | number (required) | Model year (e.g., 2024). |
curl "https://api.cardog.app/v1/efficiency/toyota/camry/2024" \
-H "x-api-key: your-api-key"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Get all trims for a specific vehicle
const efficiency = await client.efficiency.byVehicle("Toyota", "Camry", 2024);
for (const record of efficiency.data) {
console.log(`${record.variant}: ${record.combinedLPer100km} L/100km`);
}import requests
response = requests.get('https://api.cardog.app/v1/efficiency/toyota/camry/2024',
headers={'x-api-key': 'your-api-key'})
data = response.json()Example
3 keysGet efficiency by vehicle with trim
GET /v1/efficiency/:make/:model/:year/:trim
Retrieve efficiency records for a specific make, model, year, and trim. Uses fuzzy matching on trim names. If no exact match is found, falls back to returning all trims for that vehicle.
Path parameters
| Parameter | Type | Description |
|---|---|---|
make | string (required) | Vehicle make (e.g., "Ford"). Case-insensitive. |
model | string (required) | Vehicle model (e.g., "Mustang"). Case-insensitive. |
year | number (required) | Model year (e.g., 2024). |
trim | string (required) | Trim level or variant (e.g., "GT"). Fuzzy matched. |
Response metadata
| Field | Type | Description |
|---|---|---|
fallback | boolean | true if no trim match was found and all trims were returned instead. |
curl "https://api.cardog.app/v1/efficiency/ford/mustang/2024/GT" \
-H "x-api-key: your-api-key"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Get efficiency for a specific trim (fuzzy matched)
const efficiency = await client.efficiency.byVehicle(
"Ford",
"Mustang",
2024,
"GT"
);
for (const record of efficiency.data) {
console.log(`${record.variant}: ${record.combinedLPer100km} L/100km`);
console.log(`CO2: ${record.co2GramsPerKm} g/km`);
}import requests
response = requests.get('https://api.cardog.app/v1/efficiency/ford/mustang/2024/GT',
headers={'x-api-key': 'your-api-key'})
data = response.json()Example
3 keysGet efficiency statistics
GET /v1/efficiency/stats/overview
Retrieve aggregated statistics about the efficiency database, including record counts by source, powertrain type, test cycle, year range, and top makes.
curl "https://api.cardog.app/v1/efficiency/stats/overview" \
-H "x-api-key: your-api-key"import { CardogClient } from "@cardog/api";
const client = new CardogClient({ apiKey: "your-api-key" });
// Get database statistics
const stats = await client.efficiency.stats();
console.log(`Total records: ${stats.data.totalRecords}`);
console.log(`Year range: ${stats.data.yearRange.min}-${stats.data.yearRange.max}`);
for (const source of stats.data.bySource) {
console.log(`${source.source}: ${source.count} records`);
}import requests
response = requests.get('https://api.cardog.app/v1/efficiency/stats/overview',
headers={'x-api-key': 'your-api-key'})
data = response.json()Example
2 keysPowertrain Types
| Type | Description |
|---|---|
ice | Internal Combustion Engine. Gasoline or diesel vehicles. |
bev | Battery Electric Vehicle. Fully electric, no combustion engine. |
phev | Plug-in Hybrid Electric Vehicle. Electric motor with combustion engine backup; can be charged externally. |
hev | Hybrid Electric Vehicle. Electric motor assists the combustion engine; cannot be charged externally. |
mhev | Mild Hybrid Electric Vehicle. Small electric motor provides limited assist to the combustion engine. |
fcev | Fuel Cell Electric Vehicle. Powered by hydrogen fuel cells. |
The efficiency record model
An efficiency record contains vehicle efficiency data normalized to metric units.
Identification
| Field | Type | Description |
|---|---|---|
id | number | Unique record identifier. |
source | string | Rating program: epa, tc, uk-vca, or eu-eea. |
sourceId | string | The rating program's own identifier for the record. |
year | number | Model year. |
make | string | Vehicle manufacturer (uppercase). |
model | string | Vehicle model name (uppercase). |
variant | string | null | Trim level or variant name. |
Powertrain
| Field | Type | Description |
|---|---|---|
powertrainType | string | Powertrain type. See powertrain types. |
fuelType | string | Fuel type (e.g., "Gasoline", "Diesel", "Electricity"). |
transmission | string | null | Transmission type (e.g., "A8", "M6", "AV-S6"). |
driveType | string | null | Drive configuration (e.g., "FWD", "RWD", "AWD", "4WD"). |
Engine specifications
| Field | Type | Description |
|---|---|---|
engineDisplacementCc | number | null | Engine displacement in cubic centimeters (cc). Null for BEVs. |
enginePowerKw | number | null | Engine/motor power in kilowatts (kW). |
cylinders | number | null | Number of cylinders. Null for BEVs. |
Fuel consumption
| Field | Type | Description |
|---|---|---|
combinedLPer100km | number | null | Combined fuel consumption in liters per 100 kilometers (L/100km). |
cityLPer100km | number | null | City fuel consumption in L/100km. |
highwayLPer100km | number | null | Highway fuel consumption in L/100km. |
Electric consumption
| Field | Type | Description |
|---|---|---|
combinedKwhPer100km | number | null | Combined electric consumption in kilowatt-hours per 100 kilometers (kWh/100km). |
cityKwhPer100km | number | null | City electric consumption in kWh/100km. |
highwayKwhPer100km | number | null | Highway electric consumption in kWh/100km. |
Emissions and range
| Field | Type | Description |
|---|---|---|
co2GramsPerKm | number | null | CO2 emissions in grams per kilometer (g/km). Zero for BEVs. |
electricRangeKm | number | null | Electric-only range in kilometers (km). Applicable to BEVs and PHEVs. |
totalRangeKm | number | null | Total range in kilometers (km). |
Vehicle specifications
| Field | Type | Description |
|---|---|---|
massKg | number | null | Vehicle mass in kilograms (kg). |
wheelbaseMm | number | null | Wheelbase in millimeters (mm). |
testCycle | string | Test cycle used for measurements: epa, wltp, or mixed. |
Was this helpful?