What you can query
- Only active stations are returned.
- The only data endpoint is
GET /stations. - The base URL for this environment is
https://api.fuelservice.org. - Use filters for
idstations,country, andbrand.
FuelService partner API
A read-only web API for partners who need a structured list of active FuelService stations and the features available at each site.
Need access? Request API_KEY and API_SECRET by contacting
support@fuelservice.org.
GET /stations.https://api.fuelservice.org.idstations, country, and brand.
Send API_KEY as the HTTP Basic username and API_SECRET as the HTTP Basic password.
curl -u "$API_KEY:$API_SECRET" "https://api.fuelservice.org/stations?limit=10"
All filters are optional. Combine them as needed to sync a full feed or request a narrow subset.
idstationsComma-separated station IDs. Use this when you already know the exact sites you need.
Example: 10001,10002,10003
countryComma-separated full country names, not abbreviations. Example values include United Kingdom and Ireland.
Example: United Kingdom,Ireland
brandComma-separated brand names with exact matching against the station data.
Example: Tesco,Shell
limitControls batch size. The limit must be between 1 and 1000. If omitted, the API defaults to 1000.
Example: 1000
after_idCursor mode. Return stations with idstations greater than this value, ordered ascending.
Example: 10001
pagePage mode. Return a stable page of results ordered by idstations ascending.
Example: 3
The API supports both sync-friendly cursor pagination and simpler page-based browsing.
Use after_id when you want to walk forward through the feed in ascending idstations order.
curl -u "$API_KEY:$API_SECRET" "https://api.fuelservice.org/stations?country=United%20Kingdom,Ireland&after_id=10001&limit=2"
{
"data": [
{
"idstations": 10001,
"name": "Abingdon Extra PFS",
"brand": "Tesco",
"brandid": "tesco",
"country": "United Kingdom",
"electric": 0
},
{
"idstations": 10002,
"name": "Sample Station",
"brand": "Shell",
"brandid": "shell",
"country": "Ireland",
"electric": 1
}
],
"pagination": {
"limit": 2,
"mode": "cursor",
"page": null,
"after_id": 10001,
"next_after_id": 10002,
"has_more": true,
"returned": 2
}
}
Use page when you want a stable numbered page. Results are still ordered by idstations ascending.
curl -u "$API_KEY:$API_SECRET" "https://api.fuelservice.org/stations?brand=Tesco,Shell&page=3&limit=2"
{
"data": [
{
"idstations": 10201,
"name": "Paged Station Example",
"brand": "Tesco",
"brandid": "tesco",
"country": "United Kingdom",
"wifi": 1
}
],
"pagination": {
"limit": 2,
"mode": "page",
"page": 3,
"after_id": null,
"next_after_id": null,
"has_more": false,
"returned": 1
}
}
page or after_id, not both.pagination object with limit, mode, next_after_id, has_more, and returned.These examples cover the most common partner workflows.
curl -u "$API_KEY:$API_SECRET" "https://api.fuelservice.org/stations?country=United%20Kingdom,Ireland&limit=1000"
curl -u "$API_KEY:$API_SECRET" "https://api.fuelservice.org/stations?brand=Tesco,Shell&limit=250"
curl -u "$API_KEY:$API_SECRET" "https://api.fuelservice.org/stations?idstations=10001,10002,10003"
curl -u "$API_KEY:$API_SECRET" "https://api.fuelservice.org/stations?country=United%20Kingdom&brand=Tesco&limit=100&after_id=25000"
Every successful response returns a top-level data array and pagination metadata.
data: an array of stations matching the filters.pagination.mode: either cursor or page.pagination.next_after_id: use this for the next cursor request when has_more is true.pagination.page: the current page number when page mode is in use, otherwise null.401 for missing or invalid credentials.400 for invalid filters or invalid pagination combinations.503 when the backing MySQL service is temporarily unavailable.These are the fields returned for each station in the data array.
idstationsnamebrandbrandidaddress1address2towncitypostcodecountrylatitudelongitudemondayopenmondayclosetuesdayopentuesdayclosewednesdayopenwednesdayclosethursdayopenthursdayclosefridayopenfridayclosesaturdayopensaturdayclosesundayopensundayclosedisabled_toiletatmwificarwashair_and_waterlow_octane_91_octaneunleadedsuper_unleaded_100_octanedieselsuper_dieselLPGhydrogenelectric