Skip to main content

Get all available stations

GET 

/company/stations/all

Endpoint that returns all gas stations registered in the system. Recommended for administrative uses or when a complete listing is needed.

Warning:

  • The response can be very large depending on the number of stations
  • For mobile applications or those with bandwidth limitations, consider using other more specific endpoints

Usage Example:

  • Administration and reporting systems
  • Applications that need to cache data locally
  • Global data analysis on stations

Use Cases:

  1. Export complete data for statistical analysis
  2. Synchronize local database with updated information
  3. Generate complete administrative reports

Responses

Complete listing of all stations registered in the system. Includes detailed information for each station:

  • Unique identifier
  • Name and geographical location
  • Updated fuel prices
  • Rating and services offered

Example response:

{
stations: [
{
id: est001,
name: Main Station,
location: {type: Point, coordinates: [-3.70379, 40.41678]},
address: Plaza Mayor 1, Madrid,
province: Madrid,
prices: {diesel: 1.40, gasoline: 1.50},
rating: 4.5,
services: [car wash, cafeteria, wifi]
},
{
id: est002,
name: Secondary Station,
location: {type: Point, coordinates: [-0.376288, 39.469907]},
address: Calle Colón 45, Valencia,
province: Valencia,
prices: {diesel: 1.38, gasoline: 1.48},
rating: 4.0,
services: [store, air]
}
]
}