Fuel Types

Get a list of supported fuel types for the FuelPrice API.

The Fuel Type model

The Fuel type model contains all the information about as specific city. The following attributes are returned when retrieving a city.

Properties

  • Name
    id
    Type
    string
    Description

    Unique identifier for the fuel type. You'll use this when filtering fuel prices by fuel type.

  • Name
    short-name
    Type
    string
    Description

    Formatted short version of the fuel name.

  • Name
    long-name
    Type
    string
    Description

    Formatted long version of the fuel name.


GET/v1/fuel-types

List all Fuel Types

This endpoint allows you to retrieve a the full list of all your support fuel types.

Request

GET
/v1/fuel-types
curl -G https://api.fuelprice.io/v1/fuel-types \
  -H "Authorization: Bearer {token}" 

Response

{
"data": [
	{
		"id": "e10",
		"short-name": "E10",
		"long-name": "E10"
	},
	{
		"id": "ulp91",
		"short-name": "ULP 91",
		"long-name": "Unleaded 91"
	},
	{
		"id": "ulp95",
		"short-name": "PULP 95",
		"long-name": "Premium Unleaded 95"
	},
	{
		"id": "ulp98",
		"short-name": "PULP 98",
		"long-name": "Premium Unleaded 98"
	},
	{
		"id": "diesel",
		"short-name": "Diesel",
		"long-name": "Diesel"
	},
	{
		"id": "pdiesel",
		"short-name": "Premium Diesel",
		"long-name": "Premium Diesel"
	},
	{
		"id": "lpg",
		"short-name": "LPG",
		"long-name": "LPG"
	},
	{
		"id": "e85",
		"short-name": "E85",
		"long-name": "E85"
	},
	{
		"id": "e5",
		"short-name": "E5",
		"long-name": "E5"
	},
	{
		"id": "ev",
		"short-name": "EV",
		"long-name": "Electric Vehicle charge"
	},
	{
		"id": "b20",
		"short-name": "B20",
		"long-name": "B20 Diesel"
	},
	{
		"id": "cng",
		"short-name": "CNG/NGV",
		"long-name": "Compressed Natural Gas"
	},
	{
		"id": "lng",
		"short-name": "LNG",
		"long-name": "Liquefied Natural Gas"
	},
	{
		"id": "opal",
		"short-name": "OPAL",
		"long-name": "Low-aromatic Unleaded"
	},
	{
		"id": "lrp",
		"short-name": "LRP",
		"long-name": "Lead Replacement Petrol"
	},
	{
		"id": "ulsd",
		"short-name": "ULSD",
		"long-name": "Ultra-low-sulfur Diesel"
	},
	{
		"id": "ulp-combined",
		"short-name": "e10/Unleaded",
		"long-name": "e10/Unleaded"
	},
	{
		"id": "pulp-combined",
		"short-name": "PULP 95/98",
		"long-name": "Premium 95 & 98"
	},
	{
		"id": "diesel-combined",
		"short-name": "Diesel/Premium Diesel",
		"long-name": "Diesel/Premium Diesel"
	}
]
}