Stations

Returns stations list

get/stations/

Request

  • Base URL: https://api.prix-carburants.2aaz.fr
  • URL: https://api.prix-carburants.2aaz.fr/stations/
  • Auth: one of:
    • API key in header Authorization
    • API key in query parameter key
    • HTTP basic

Query parameters

qstring required

query field (required with 2 characters unless the brand or department is specified)

typesstring[]

filter station types (comma separated list)

brandsinteger[]

filter on brand ids (comma separated list)

departmentsinteger[]

filter on department codes (comma separated list)

postcodesstring[]

filter on postcodes (comma separated list)

fuelsinteger[]

filter on fuel ids (comma separated list)

responseFieldsstring[]

child data to include

Headers

Rangestring

Range of data to return (station : in number of elements (default 10, max 20))

Response

Station Data

idinteger
type'R' | 'A'
namestring

Example response

[
  {
    "Brand": {
      "id": 1,
      "name": "TheBrandName",
      "short_name": "Brand",
      "nb_stations": 42
    },
    "Fuels": [
      {
        "id": 1,
        "type": "D",
        "name": "Gazole",
        "short_name": "Gazole",
        "picto": "B7",
        "Update": {
          "value": "2022-10-10T16:10:07Z",
          "text": "10/10/2022 16:10:07"
        },
        "rupture": false,
        "Price": {
          "value": 1.986,
          "text": "1.986 €/L"
        }
      }
    ]
  }
]

Changes

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