List Vehicle Fuels
List Vehicle Fuels
Get a list of fuels available for vehicle consumption
GET
List Vehicle Fuels
List Vehicle Fuels
Retrieve all vehicle fuels available in the Dcycle system. Vehicle fuels represent different types of energy sources for vehicles (gasoline, diesel, electric, hybrid, CNG, LPG, etc.) and are used when creating vehicles and tracking fuel consumption.Vehicle fuels are reference data maintained by Dcycle. You cannot create or modify fuels through the API - this endpoint is read-only.
Request
Headers
Your API key for authenticationExample:
sk_live_1234567890abcdefYour organization UUIDExample:
ff4adcc7-8172-45fe-9cf1-e90a6de53aa9Your user UUIDExample:
a1b2c3d4-e5f6-7890-abcd-ef1234567890Query Parameters
Filter fuels by vehicle typeValid vehicle types:
passenger_car- Standard passenger carslight_commercial- Light commercial vehicles (vans, small trucks)rigid- Rigid trucksarticulated- Articulated trucks (semi-trailers)motorcycle- Motorcycles and scootersbus- Buses and coaches
"passenger_car"Filter fuels by country using ISO 3166-1 alpha-2 country codeSupported country codes:Example:
ES- Spain (returns Spanish vehicle fuels)- Any other code returns global (GLO) database fuels
Country-specific vehicle fuels are currently only available for Spain (
ES). Other countries will receive generic fuels from the global database."ES"Response
Returns an array of vehicle fuel objects (not paginated - all matching fuels are returned).Array of vehicle fuel objects
Vehicle Fuel Object Fields:
Unique fuel identifier (UUID v4)
Fuel name (e.g., “Diesel”, “Gasoline”, “Electric”, “Hybrid”, “CNG”, “LPG”)
ISO 3166-1 alpha-2 country code where fuel data applies (
ES or GLO)Array of vehicle type IDs that can use this fuelOnly included when no
vehicle_type filter is applied. When filtering by vehicle_type, this field is omitted.Example: ["passenger_car_id_1", "light_commercial_id_2"]Array of available measurement units for this fuelEach unit object contains:
id(string) - Unit UUIDname(string) - Unit name (e.g., “L”, “kWh”, “kg”)type(string) - Unit type (e.g., “liquid”, “energy”, “solid”)
Example
Successful Response (with vehicle_type filter)
Successful Response (without filters)
Common Errors
400 Bad Request - Invalid Vehicle Type
passenger_car, light_commercial, rigid, articulated, motorcycle, bus).
400 Bad Request - Invalid Country Code
403 Forbidden
Cause: Organization ID doesn’t match your API key or user doesn’t belong to organizationx-organization-id matches your API key’s organization.
Use Cases
Get Fuels for Creating Unknown Vehicles
When creating an unknown vehicle, you need the fuel ID:Get All Fuels with Vehicle Types
When you need to know which vehicle types can use each fuel:Filter Fuels by Type
Organize fuels for a UI selector:Cache Vehicle Fuels
Since vehicle fuels don’t change frequently, cache them:Validate Fuel for Vehicle Type
Ensure a fuel is compatible with a vehicle type:Vehicle Types
Thevehicle_type parameter accepts these values:
| Type | Description | Common Fuels |
|---|---|---|
passenger_car | Standard passenger cars | Gasoline, Diesel, Electric, Hybrid, CNG |
light_commercial | Vans and small trucks | Diesel, Gasoline, Electric, CNG |
rigid | Rigid trucks | Diesel, CNG, LNG |
articulated | Semi-trailers and articulated trucks | Diesel, LNG |
motorcycle | Motorcycles and scooters | Gasoline, Electric |
bus | Buses and coaches | Diesel, CNG, Electric, Hybrid |
Fuel Types
Common vehicle fuel types in the system:Fossil Fuels
- Diesel - Most common for commercial vehicles
- Gasoline (Petrol) - Standard passenger car fuel
- LPG (Liquefied Petroleum Gas) - Alternative fuel for cars and vans
Alternative Fuels
- CNG (Compressed Natural Gas) - Cleaner alternative for trucks and buses
- LNG (Liquefied Natural Gas) - For heavy-duty trucks
- Biodiesel - Renewable diesel alternative
- Bioethanol - Renewable gasoline alternative
Electric & Hybrid
- Electric - Battery electric vehicles (BEV)
- Hybrid - Combined electric and combustion
- Plug-in Hybrid - Rechargeable hybrid vehicles
Units per Fuel
Each fuel has specific units for measuring consumption:Liquid Fuels (Diesel, Gasoline, LPG liquid)
- L (liters) - Standard volume measurement
- kWh - Energy content
- kg - Mass measurement (for some fuels)
Gaseous Fuels (CNG, LNG)
- kg - Mass measurement (most common)
- m³ - Volume measurement
- kWh - Energy content
Electric
- kWh - Electricity consumption (only unit)
Country-Specific Behavior
Spain (ES)
Spain has country-specific emission factors for vehicle fuels based on:- National fuel composition standards
- Regional grid mix for electric vehicles
- Fuel production and distribution emissions
Global (GLO)
For countries other than Spain, the system returns global emission factors based on:- IPCC guidelines
- GHG Protocol standards
- International fuel standards
Best Practices
1. Cache Reference Data
Vehicle fuels don’t change frequently, so cache them:2. Filter by Vehicle Type
Always filter by vehicle type when creating vehicles:3. Validate Unit Before Use
Check that the unit is available for the selected fuel:4. Store Common Fuel IDs
For frequently used fuels, store their IDs:Related Endpoints
Bulk Upload Vehicles
Upload vehicles with fuel IDs
List Vehicles
View your vehicle fleet
List Units
Get measurement units
Authentication
Learn about API authentication

