FuelPrices

Returns fuel price (average on period)

get/fuel/{fid}/price/{period}

Request

  • Base URL: https://api.prix-carburants.2aaz.fr
  • URL: https://api.prix-carburants.2aaz.fr/fuel/{fid}/price/{period}
  • Auth: one of:
    • API key in header Authorization
    • API key in query parameter key
    • HTTP basic

Path parameters

fidinteger required

Numeric ID of the fuel

periodstring required

Period code (possible formats are year: yyyy (2024), month: yyyy-mm (2024-01), week: yyyyWww (2024W42))

Query parameters

responseFieldsstring[]

child data to include

Response

Fuel Price

fuelinteger
periodstring

Example response

{
  "fuel": 1,
  "period": 2024,
  "PriceHTT": {
    "value": 0.882,
    "text": "0.882 €/L"
  },
  "PriceTTC": {
    "value": 1.986,
    "text": "1.986 €/L"
  }
}

Changes

No recorded changes to this operation across all 1 revision of this API.