Gas Stations

This page contains API endpoints for gas stations. This does not include any of the prices for the gas stations.

GET/stations

Get all stations

This endpoint allows you to retrieve a paginated list of all gas stations. By default results are paginated to 1000 records.

Optional attributes

  • Name
    pagination
    Type
    int
    Description

    Amount to paginate
    Default : 1000

  • Name
    page
    Type
    int
    Description

    Page number
    Default : 1

  • Name
    hgv
    Type
    bool|string
    Description

    Show stations that has hgv
    Default : true
    Allowed values: true, false, all

Request

GET
/stations?pagination=1000&page=1
curl -G /stations \
    -H "Accept: application/json" \
    -H "Content-type: application/json" \
    -H "Authorization: Bearer {token}" \
    -d pagination=1000 \
    -d page=1
    -d hgv=all

Response

{
    "data": [
        {
            "id": 1234,
            "brand": "AB24",
            "lat": 45.08794101,
            "lng": 16.08436105,
            "status": "open",
            "name": "ALLAND",
            "address": "KLAUSENSTRASSE/GEWERBESTRASSE EXIT N°15",
            "postcode": "2534",
            "city": "ALLAND",
            "country": "Austria",
            "has_parking": false,
            "has_shop": false,
            "has_hgv": false,
            "pricing_zone": "A"
        },
        // ...
    ],
    "links": {
        "first": "https://v2.unvero.lt/api/stations?page=1",
        "last": "https://v2.unvero.lt/api/stations?page=3",
        "prev": null,
        "next": "https://v2.unvero.lt/api/stations?page=2"
    },
    "meta": {
        "current_page": 1,
        "from": 1,
        "last_page": 3,
        "links": [
            {
                "url": null,
                "label": "« Previous",
                "active": false
            }
            {
                "url": "https://v2.unvero.lt/api/stations?page=1",
                "label": "1",
                "active": true
            },
            {
                "url": "https://v2.unvero.lt/api/stations?page=2",
                "label": "2",
                "active": false
            },
            {
                "url": "https://v2.unvero.lt/api/stations?page=3",
                "label": "3",
                "active": false
            },
        ],
        "path": "https://v2.unvero.lt/api/stations",
        "per_page": 1000,
        "to": 1000,
        "total": 2639
}