PubliBike
App · Travel & Places · 11 actions
Check live availability across PubliBike Velospot, Switzerland's national bike-sharing network, from the open data it publishes: every station's position, address, network and state; how many bikes, e-bikes, cargo bikes and e-scooters are standing at each, and the range left on every electric one; the nearest station to a point, the nearest bike someone can actually take, or the nearest e-scooter left on the street; and availability totals for a town, a network or the whole country. No account or API key required.
Actions
| Action | What it does |
|---|---|
| Find nearby stations | List the stations closest to a point, nearest first, with the distance to each and what is standing there. |
| Find nearby vehicles | List the individual vehicles closest to a point, nearest first, including e-scooters left on the street away from any station: each with its type, the range left on an electric one, and the station it stands at, if any. |
| Find the nearest available bike | Find the closest station that has a bike someone can take right now (optionally an e-bike, optionally one charged above a level you set). |
| Get availability summary | Summarize availability across the whole network, or across one city or network of it: how many stations there are, how many have anything to rent and how many are out of order, the split between pedal bikes, e-bikes, cargo bikes and e-scooters, and the average e-bike charge. |
| Get station | Get one station by its id or its name: where it is, its network and state, what is available there right now, and each vehicle standing at it with the range and charge left on the electric ones. |
| List cities | List the towns PubliBike serves, with how many stations and how many bikes and e-bikes are in each. |
| List networks | List the local networks PubliBike stations belong to (a city's or region's scheme, a campus, an employer's fleet) with their size and the towns they cover. |
| List stations | List every station in the network: position, address, state and what is standing there, with the station id the other actions take. |
| List stations with vehicles | List stations together with what is available at each of them. |
| List vehicles at a station | List the vehicles available at one station, best-charged first, with the type of each and the range and charge left on an electric one. |
| Search stations | Find stations by name, address, zip code or city: the way to turn 'Bern Bahnhof' or a postcode into a station id, with what is currently there. |
Find nearby stations
List the stations closest to a point, nearest first, with the distance to each and what is standing there. Optionally keep only stations within a radius, or only those with the kind of bike you want.
Inputs
- Latitude
latitudenumberRequired - Latitude of the point to search from, in decimal degrees (for example, 46.948 for Bern).From -90 to 90.
- Longitude
longitudenumberRequired - Longitude of the point to search from, in decimal degrees (for example, 7.447 for Bern).From -180 to 180.
- Search radius (km)
radius_kmnumber - Only include results within this many kilometers of the point. Leave blank to search the whole network and rank by distance.From 0.01 to 500.
- Vehicle type
vehicle_typetext - Only count vehicles of this kind: 'bike', 'ebike', 'cargo', 'escooter' or 'glider', or one of the network's own type ids, such as 'hbike' for a pedal bike that takes the rider's own battery ('Get availability summary' lists them). Stations with none of the wanted kind are left out.
- Minimum battery level
min_battery_levelnumber - Only count e-bikes with at least this much charge left, as a percentage (0 to 100). The network reports the kilometers left rather than a percentage, so the charge is worked out from that against a full battery's range. Pedal bikes never match.From 0 to 100.
- Only stations with vehicles
only_with_vehiclestrue/false - Leave out stations that are standing empty. Filtering by vehicle type or battery level already implies this.Default:
false. - Maximum stations
limitnumber - Return at most this many stations. Defaults to 10.From 1 to 200. Default:
10.
Outputs
countnumber- Stations returned.
latitudenumber- Latitude searched from.
longitudenumber- Longitude searched from.
matchednumber- Stations that matched, before the limit.
radius_kmnumber- The radius applied, if any.
stationslist- The matching stations, nearest first, each with its distance.
totalnumber- Stations in the network, before any filter.
Example output
{
"count": 1,
"latitude": 46.9478,
"longitude": 7.4477,
"matched": 1,
"radius_km": 1.0,
"stations": [
{
"address": "Casinoplatz 2",
"availability": {
"bikes": 1,
"by_type": [
{
"count": 1,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 1,
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"capacity": 50,
"cargo_bikes": 0,
"disabled_vehicles": 1,
"ebikes": 1,
"ebikes_with_battery_level": 0,
"escooters": 0,
"free_docks": 48,
"gliders": 0,
"max_ebike_battery_level": null,
"min_ebike_battery_level": null,
"total_vehicles": 2
},
"capacity": 50,
"city": "Bern",
"distance_km": 0.032,
"distance_meters": 32,
"has_vehicle_detail": false,
"id": "1683",
"is_installed": true,
"is_renting": true,
"is_returning": true,
"is_virtual_station": true,
"last_reported": "2026-11-03T00:14:30Z",
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"matching_vehicle_count": null,
"matching_vehicles": null,
"name": "Theaterplatz - Bern",
"network": {
"id": "41",
"name": "Bern"
},
"rental_url": "https://app.publibike.ch/station?id=1683",
"state_name": "Active",
"vehicles": null,
"zip": "3011"
}
],
"total": 1684
}Find nearby vehicles
List the individual vehicles closest to a point, nearest first, including e-scooters left on the street away from any station: each with its type, the range left on an electric one, and the station it stands at, if any.
Inputs
- Latitude
latitudenumberRequired - Latitude of the point to search from, in decimal degrees (for example, 46.948 for Bern).From -90 to 90.
- Longitude
longitudenumberRequired - Longitude of the point to search from, in decimal degrees (for example, 7.447 for Bern).From -180 to 180.
- Search radius (km)
radius_kmnumber - Only include results within this many kilometers of the point. Leave blank to search the whole network and rank by distance.From 0.01 to 500.
- Vehicle type
vehicle_typetext - Only include vehicles of this kind: 'bike', 'ebike', 'cargo', 'escooter' or 'glider', or one of the network's own type ids ('Get availability summary' lists them). Leave blank for every kind.
- Minimum range left (km)
min_range_kmnumber - Only include electric vehicles that can still go at least this many kilometers on their battery. Pedal bikes never match. Leave blank for any charge.From 0 to 500.0.
- Only vehicles away from stations
only_free_floatingtrue/false - Only include vehicles left on the street rather than at a station, which is how the e-scooters are parked in some towns.Default:
false. - Maximum vehicles
limitnumber - Return at most this many vehicles. Defaults to 10.From 1 to 200. Default:
10.
Outputs
countnumber- Vehicles returned.
latitudenumber- Latitude searched from.
longitudenumber- Longitude searched from.
matchednumber- Vehicles that matched, before the limit.
radius_kmnumber- The radius applied, if any.
totalnumber- Vehicles available in the whole network.
vehicleslist- The matching vehicles, nearest first.
Example output
{
"count": 2,
"latitude": 47.4136,
"longitude": 8.5095,
"matched": 2,
"radius_km": 1.0,
"total": 8355,
"vehicles": [
{
"category": "escooter",
"distance_km": 0.002,
"distance_meters": 2,
"ebike_battery_level": 88.0,
"id": "cc2d0863-6cd8-4795-ae79-5858d433d8f5",
"is_ebike": false,
"is_free_floating": true,
"latitude": 47.413612,
"longitude": 8.509477,
"range_km": 70.0,
"station_id": null,
"station_name": null,
"type_id": "escooter_free_floating",
"type_name": "E-Scooter (Free Floating)"
},
{
"category": "ebike",
"distance_km": 0.418,
"distance_meters": 418,
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"is_free_floating": false,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"station_name": "Theaterplatz - Bern",
"type_id": "ebike",
"type_name": "E-bike"
}
]
}Find the nearest available bike
Find the closest station that has a bike someone can take right now (optionally an e-bike, optionally one charged above a level you set). Answers 'found: false' instead of failing when nothing qualifies, so a workflow can branch on it, and returns a few runner-up stations as a fallback.
Inputs
- Latitude
latitudenumberRequired - Latitude of the point to search from, in decimal degrees (for example, 46.948 for Bern).From -90 to 90.
- Longitude
longitudenumberRequired - Longitude of the point to search from, in decimal degrees (for example, 7.447 for Bern).From -180 to 180.
- Vehicle type
vehicle_typetext - Only count vehicles of this kind: 'bike', 'ebike', 'cargo', 'escooter' or 'glider', or one of the network's own type ids, such as 'hbike' for a pedal bike that takes the rider's own battery ('Get availability summary' lists them). Stations with none of the wanted kind are left out.
- Minimum battery level
min_battery_levelnumber - Only count e-bikes with at least this much charge left, as a percentage (0 to 100). The network reports the kilometers left rather than a percentage, so the charge is worked out from that against a full battery's range. Pedal bikes never match.From 0 to 100.
- Search radius (km)
radius_kmnumber - Only include results within this many kilometers of the point. Leave blank to search the whole network and rank by distance.From 0.01 to 500.
- Runner-up stations
max_alternativesnumber - How many next-closest matching stations to return alongside the nearest one, for the rider whose bike is taken by the time they get there. Defaults to 3.From 0 to 10. Default:
3. - Include individual bikes
include_vehicle_idstrue/false - Also list each vehicle standing at the station, with its type and, for an electric one, the range and charge it has left. On by default. Turn it off for a quicker answer with the counts alone.Default:
true.
Outputs
alternativeslist- The next-closest matching stations.
distance_kmnumber- How far that station is, in kilometers.
distance_metersnumber- The same distance in meters.
foundtrue/false- Whether any station matched. False means nothing qualified; it is not an error.
has_vehicle_detailtrue/false- Whether that station's vehicles were read.
matchednumber- Stations that matched in total.
stationobject- The closest matching station.
totalnumber- Stations in the network.
vehicle_countnumber- How many vehicles at that station match.
vehicleslist- The matching vehicles at that station, best-charged first. Empty with individual bikes turned off: read 'vehicle_count' then.
Example output
{
"alternatives": [],
"distance_km": 0.032,
"distance_meters": 32,
"found": true,
"has_vehicle_detail": true,
"matched": 1,
"station": {
"address": "Casinoplatz 2",
"availability": {
"bikes": 1,
"by_type": [
{
"count": 1,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 1,
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"capacity": 50,
"cargo_bikes": 0,
"disabled_vehicles": 1,
"ebikes": 1,
"ebikes_with_battery_level": 1,
"escooters": 0,
"free_docks": 48,
"gliders": 0,
"max_ebike_battery_level": 82.0,
"min_ebike_battery_level": 82.0,
"total_vehicles": 2
},
"capacity": 50,
"city": "Bern",
"distance_km": 0.032,
"distance_meters": 32,
"has_vehicle_detail": true,
"id": "1683",
"is_installed": true,
"is_renting": true,
"is_returning": true,
"is_virtual_station": true,
"last_reported": "2026-11-03T00:14:30Z",
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"matching_vehicle_count": 1,
"matching_vehicles": [
{
"category": "ebike",
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"type_id": "ebike",
"type_name": "E-bike"
}
],
"name": "Theaterplatz - Bern",
"network": {
"id": "41",
"name": "Bern"
},
"rental_url": "https://app.publibike.ch/station?id=1683",
"state_name": "Active",
"vehicles": [
{
"category": "ebike",
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"type_id": "ebike",
"type_name": "E-bike"
},
{
"category": "bike",
"ebike_battery_level": null,
"id": "52f29c8a-0ce2-4eab-be75-479e6fa71153",
"is_ebike": false,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": null,
"station_id": "1683",
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"zip": "3011"
},
"total": 1684,
"vehicle_count": 1,
"vehicles": [
{
"category": "ebike",
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"type_id": "ebike",
"type_name": "E-bike"
}
]
}Get availability summary
Summarize availability across the whole network, or across one city or network of it: how many stations there are, how many have anything to rent and how many are out of order, the split between pedal bikes, e-bikes, cargo bikes and e-scooters, and the average e-bike charge.
Inputs
- City
citytext - Only include stations in this town. Matches part of the name and ignores accents, so 'zurich' finds 'Zürich'. Run 'List cities' to see the names the network uses. Leave blank for the whole network.
- Network
networktext - Only include stations in this local network, by its name or its id (for example, 'Bern', 'Ticino' or 'Agglo Valais Central'). Run 'List networks' to see them. Leave blank for every network.
Outputs
average_ebike_battery_levelnumber- Mean estimated charge of the e-bikes.
average_ebike_range_kmnumber- Mean kilometers the e-bikes have left.
bikesnumber- Of those, pedal bikes.
by_statelist- How many stations are in each state.
by_typelist- How many vehicles of each type, most common first.
capacitynumber- Total capacity of the stations.
cargo_bikesnumber- Of those, cargo bikes.
citiesnumber- Distinct towns covered.
disabled_vehiclesnumber- Vehicles at those stations out of service.
ebikesnumber- Of those, e-bikes.
escootersnumber- Of those, e-scooters.
filtersobject- The filters that were applied.
free_docksnumber- That capacity minus the vehicles there.
glidersnumber- Of those, gliders.
networksnumber- Distinct networks covered.
stationsnumber- Stations covered by the summary.
stations_not_rentingnumber- Of those, ones out of order.
stations_with_capacitynumber- Stations that publish a capacity.
stations_with_vehiclesnumber- Of those, ones with at least one vehicle.
stations_without_vehiclesnumber- Of those, ones standing empty.
total_stations_in_networknumber- Stations before the city or network filter.
total_vehiclesnumber- Vehicles available across them.
virtual_stationsnumber- Of those, ones with no physical docks.
Example output
{
"average_ebike_battery_level": 58.3,
"average_ebike_range_km": 49.6,
"bikes": 2504,
"by_state": [
{
"state_name": "Active",
"station_count": 1651
},
{
"state_name": "Not renting",
"station_count": 33
}
],
"by_type": [
{
"count": 5710,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 2473,
"type_id": "mbike",
"type_name": "Mechanical bikes"
},
{
"count": 142,
"type_id": "escooter",
"type_name": "E-Scooter"
},
{
"count": 31,
"type_id": "hbike",
"type_name": "Mechanical bikes / with customer battery"
}
],
"capacity": 67360,
"cargo_bikes": 0,
"cities": 149,
"disabled_vehicles": 807,
"ebikes": 5710,
"escooters": 142,
"filters": {
"city": null,
"network": null
},
"free_docks": 59004,
"gliders": 0,
"networks": 17,
"stations": 1684,
"stations_not_renting": 33,
"stations_with_capacity": 1684,
"stations_with_vehicles": 1486,
"stations_without_vehicles": 198,
"total_stations_in_network": 1684,
"total_vehicles": 8356,
"virtual_stations": 1684
}Get station
Get one station by its id or its name: where it is, its network and state, what is available there right now, and each vehicle standing at it with the range and charge left on the electric ones.
Inputs
- Station
station_idtextRequired - The station's id or its exact name (for example, 'Theaterplatz - Bern'). The listing and search actions show both. An id saved before the network's ids changed in 2026, or the number printed on a station, works too.
- Include individual bikes
include_vehicle_idstrue/false - Also list each vehicle standing at the station, with its type and, for an electric one, the range and charge it has left. On by default. Turn it off for a quicker answer with the counts alone.Default:
true.
Outputs
stationobject- The station.
Example output
{
"station": {
"address": "Casinoplatz 2",
"availability": {
"bikes": 1,
"by_type": [
{
"count": 1,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 1,
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"capacity": 50,
"cargo_bikes": 0,
"disabled_vehicles": 1,
"ebikes": 1,
"ebikes_with_battery_level": 1,
"escooters": 0,
"free_docks": 48,
"gliders": 0,
"max_ebike_battery_level": 82.0,
"min_ebike_battery_level": 82.0,
"total_vehicles": 2
},
"capacity": 50,
"city": "Bern",
"distance_km": null,
"distance_meters": null,
"has_vehicle_detail": true,
"id": "1683",
"is_installed": true,
"is_renting": true,
"is_returning": true,
"is_virtual_station": true,
"last_reported": "2026-11-03T00:14:30Z",
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"matching_vehicle_count": null,
"matching_vehicles": null,
"name": "Theaterplatz - Bern",
"network": {
"id": "41",
"name": "Bern"
},
"rental_url": "https://app.publibike.ch/station?id=1683",
"state_name": "Active",
"vehicles": [
{
"category": "ebike",
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"type_id": "ebike",
"type_name": "E-bike"
},
{
"category": "bike",
"ebike_battery_level": null,
"id": "52f29c8a-0ce2-4eab-be75-479e6fa71153",
"is_ebike": false,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": null,
"station_id": "1683",
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"zip": "3011"
}
}List cities
List the towns PubliBike serves, with how many stations and how many bikes and e-bikes are in each. Also the place to get the exact town name the other actions filter on.
Inputs
None.
Outputs
citieslist- Towns, busiest first.
countnumber- Towns returned.
stations_without_citynumber- Stations whose name gives no town.
totalnumber- Stations in the network.
Example output
{
"cities": [
{
"bikes": 347,
"cargo_bikes": 0,
"city": "Basel",
"ebikes": 616,
"escooters": 0,
"gliders": 0,
"station_count": 312,
"stations_with_vehicles": 224,
"total_vehicles": 963
},
{
"bikes": 805,
"cargo_bikes": 0,
"city": "Z\u00fcrich",
"ebikes": 1173,
"escooters": 0,
"gliders": 0,
"station_count": 294,
"stations_with_vehicles": 242,
"total_vehicles": 1978
}
],
"count": 2,
"stations_without_city": 0,
"total": 1684
}List networks
List the local networks PubliBike stations belong to (a city's or region's scheme, a campus, an employer's fleet) with their size and the towns they cover.
Inputs
None.
Outputs
countnumber- Networks returned.
networkslist- Networks, largest first.
stations_without_networknumber- Stations that named no network.
totalnumber- Stations in the network.
Example output
{
"count": 1,
"networks": [
{
"bikes": 520,
"cargo_bikes": 0,
"cities": [
"Bern",
"K\u00f6niz",
"Muri",
"Ostermundigen"
],
"city_count": 4,
"ebikes": 1070,
"escooters": 0,
"gliders": 0,
"id": "41",
"name": "Bern",
"station_count": 335,
"stations_with_vehicles": 318,
"total_vehicles": 1590
}
],
"stations_without_network": 0,
"total": 1684
}List stations
List every station in the network: position, address, state and what is standing there, with the station id the other actions take. Use 'List stations with vehicles' to narrow the same list by city, network, vehicle type or availability.
Inputs
- Station state
statetext - Only include stations in this state: 'Active', 'Not renting' (out of order, so nothing can be taken from it), 'Not taking returns' or 'Not installed'. Matches part of the name. Leave blank for every station.
- Maximum stations
limitnumber - Return at most this many stations. Leave blank for every match.From 1 to 2000.
Outputs
countnumber- Stations returned.
matchednumber- Stations that matched, before the limit.
stationslist- Every matching station, in name order, with what stands at each.
totalnumber- Stations in the network, before any filter.
Example output
{
"count": 1,
"matched": 1,
"stations": [
{
"address": "Casinoplatz 2",
"availability": {
"bikes": 1,
"by_type": [
{
"count": 1,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 1,
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"capacity": 50,
"cargo_bikes": 0,
"disabled_vehicles": 1,
"ebikes": 1,
"ebikes_with_battery_level": 0,
"escooters": 0,
"free_docks": 48,
"gliders": 0,
"max_ebike_battery_level": null,
"min_ebike_battery_level": null,
"total_vehicles": 2
},
"capacity": 50,
"city": "Bern",
"distance_km": null,
"distance_meters": null,
"has_vehicle_detail": false,
"id": "1683",
"is_installed": true,
"is_renting": true,
"is_returning": true,
"is_virtual_station": true,
"last_reported": "2026-11-03T00:14:30Z",
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"matching_vehicle_count": null,
"matching_vehicles": null,
"name": "Theaterplatz - Bern",
"network": {
"id": "41",
"name": "Bern"
},
"rental_url": "https://app.publibike.ch/station?id=1683",
"state_name": "Active",
"vehicles": null,
"zip": "3011"
}
],
"total": 1684
}List stations with vehicles
List stations together with what is available at each of them. Narrow by city, network, state, text, vehicle type or battery level. This is the action for anything that spans more than one station.
Inputs
- City
citytext - Only include stations in this town. Matches part of the name and ignores accents, so 'zurich' finds 'Zürich'. Run 'List cities' to see the names the network uses. Leave blank for the whole network.
- Network
networktext - Only include stations in this local network, by its name or its id (for example, 'Bern', 'Ticino' or 'Agglo Valais Central'). Run 'List networks' to see them. Leave blank for every network.
- Station state
statetext - Only include stations in this state: 'Active', 'Not renting' (out of order, so nothing can be taken from it), 'Not taking returns' or 'Not installed'. Matches part of the name. Leave blank for every station.
- Search text
querytext - Only include stations whose name, address, zip code or city contains every word of this text, in any order.
- Vehicle type
vehicle_typetext - Only count vehicles of this kind: 'bike', 'ebike', 'cargo', 'escooter' or 'glider', or one of the network's own type ids, such as 'hbike' for a pedal bike that takes the rider's own battery ('Get availability summary' lists them). Stations with none of the wanted kind are left out.
- Minimum battery level
min_battery_levelnumber - Only count e-bikes with at least this much charge left, as a percentage (0 to 100). The network reports the kilometers left rather than a percentage, so the charge is worked out from that against a full battery's range. Pedal bikes never match.From 0 to 100.
- Only stations with vehicles
only_with_vehiclestrue/false - Leave out stations that are standing empty. Filtering by vehicle type or battery level already implies this.Default:
false. - Maximum stations
limitnumber - Return at most this many stations. Leave blank for every match.From 1 to 2000.
Outputs
countnumber- Stations returned.
matchednumber- Stations that matched, before the limit.
stationslist- Every matching station, in name order, with what stands at each.
totalnumber- Stations in the network, before any filter.
Example output
{
"count": 1,
"matched": 207,
"stations": [
{
"address": "Casinoplatz 2",
"availability": {
"bikes": 1,
"by_type": [
{
"count": 1,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 1,
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"capacity": 50,
"cargo_bikes": 0,
"disabled_vehicles": 1,
"ebikes": 1,
"ebikes_with_battery_level": 0,
"escooters": 0,
"free_docks": 48,
"gliders": 0,
"max_ebike_battery_level": null,
"min_ebike_battery_level": null,
"total_vehicles": 2
},
"capacity": 50,
"city": "Bern",
"distance_km": null,
"distance_meters": null,
"has_vehicle_detail": false,
"id": "1683",
"is_installed": true,
"is_renting": true,
"is_returning": true,
"is_virtual_station": true,
"last_reported": "2026-11-03T00:14:30Z",
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"matching_vehicle_count": null,
"matching_vehicles": null,
"name": "Theaterplatz - Bern",
"network": {
"id": "41",
"name": "Bern"
},
"rental_url": "https://app.publibike.ch/station?id=1683",
"state_name": "Active",
"vehicles": null,
"zip": "3011"
}
],
"total": 1684
}List vehicles at a station
List the vehicles available at one station, best-charged first, with the type of each and the range and charge left on an electric one. Narrow by vehicle type or battery level.
Inputs
- Station
station_idtextRequired - The station's id or its exact name (for example, 'Theaterplatz - Bern'). The listing and search actions show both. An id saved before the network's ids changed in 2026, or the number printed on a station, works too.
- Vehicle type
vehicle_typetext - Only count vehicles of this kind: 'bike', 'ebike', 'cargo', 'escooter' or 'glider', or one of the network's own type ids, such as 'hbike' for a pedal bike that takes the rider's own battery ('Get availability summary' lists them). Stations with none of the wanted kind are left out.
- Minimum battery level
min_battery_levelnumber - Only count e-bikes with at least this much charge left, as a percentage (0 to 100). The network reports the kilometers left rather than a percentage, so the charge is worked out from that against a full battery's range. Pedal bikes never match.From 0 to 100.
- Include individual bikes
include_vehicle_idstrue/false - Also list each vehicle standing at the station, with its type and, for an electric one, the range and charge it has left. On by default. Turn it off for a quicker answer with the counts alone.Default:
true.
Outputs
availabilityobject- What stands at the station right now.
countnumber- Matching vehicles listed in 'vehicles'.
has_vehicle_detailtrue/false- Whether the individual vehicles were read. When false, 'vehicles' is empty by choice, not because the station is.
listed_vehicleslist- Every vehicle at the station, before the filters.
matching_countnumber- How many vehicles match. The same as 'count', except with individual bikes turned off, when it comes from the station's counts.
stationobject- The station, as 'Get station' returns it.
station_idtext- Station id.
station_nametext- Public name of the station.
total_vehiclesnumber- Vehicles at the station, before filtering.
vehicleslist- The matching vehicles, best-charged first.
Example output
{
"availability": {
"bikes": 1,
"by_type": [
{
"count": 1,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 1,
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"capacity": 50,
"cargo_bikes": 0,
"disabled_vehicles": 1,
"ebikes": 1,
"ebikes_with_battery_level": 1,
"escooters": 0,
"free_docks": 48,
"gliders": 0,
"max_ebike_battery_level": 82.0,
"min_ebike_battery_level": 82.0,
"total_vehicles": 2
},
"count": 1,
"has_vehicle_detail": true,
"listed_vehicles": [
{
"category": "ebike",
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"type_id": "ebike",
"type_name": "E-bike"
},
{
"category": "bike",
"ebike_battery_level": null,
"id": "52f29c8a-0ce2-4eab-be75-479e6fa71153",
"is_ebike": false,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": null,
"station_id": "1683",
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"matching_count": 1,
"station": {
"address": "Casinoplatz 2",
"availability": {
"bikes": 1,
"by_type": [
{
"count": 1,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 1,
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"capacity": 50,
"cargo_bikes": 0,
"disabled_vehicles": 1,
"ebikes": 1,
"ebikes_with_battery_level": 1,
"escooters": 0,
"free_docks": 48,
"gliders": 0,
"max_ebike_battery_level": 82.0,
"min_ebike_battery_level": 82.0,
"total_vehicles": 2
},
"capacity": 50,
"city": "Bern",
"distance_km": null,
"distance_meters": null,
"has_vehicle_detail": true,
"id": "1683",
"is_installed": true,
"is_renting": true,
"is_returning": true,
"is_virtual_station": true,
"last_reported": "2026-11-03T00:14:30Z",
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"matching_vehicle_count": 1,
"matching_vehicles": [
{
"category": "ebike",
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"type_id": "ebike",
"type_name": "E-bike"
}
],
"name": "Theaterplatz - Bern",
"network": {
"id": "41",
"name": "Bern"
},
"rental_url": "https://app.publibike.ch/station?id=1683",
"state_name": "Active",
"vehicles": [
{
"category": "ebike",
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"type_id": "ebike",
"type_name": "E-bike"
},
{
"category": "bike",
"ebike_battery_level": null,
"id": "52f29c8a-0ce2-4eab-be75-479e6fa71153",
"is_ebike": false,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": null,
"station_id": "1683",
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"zip": "3011"
},
"station_id": "1683",
"station_name": "Theaterplatz - Bern",
"total_vehicles": 2,
"vehicles": [
{
"category": "ebike",
"ebike_battery_level": 82.0,
"id": "df3c4653-e8a1-484e-81ae-fcea6f7f2675",
"is_ebike": true,
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"range_km": 70.0,
"station_id": "1683",
"type_id": "ebike",
"type_name": "E-bike"
}
]
}Search stations
Find stations by name, address, zip code or city: the way to turn 'Bern Bahnhof' or a postcode into a station id, with what is currently there.
Inputs
- Search text
querytextRequired - Words to look for in a station's name, address, zip code or city (for example, 'Bahnhof Bern' or '3011'). A station matches when it contains every word.
- Vehicle type
vehicle_typetext - Only count vehicles of this kind: 'bike', 'ebike', 'cargo', 'escooter' or 'glider', or one of the network's own type ids, such as 'hbike' for a pedal bike that takes the rider's own battery ('Get availability summary' lists them). Stations with none of the wanted kind are left out.
- Minimum battery level
min_battery_levelnumber - Only count e-bikes with at least this much charge left, as a percentage (0 to 100). The network reports the kilometers left rather than a percentage, so the charge is worked out from that against a full battery's range. Pedal bikes never match.From 0 to 100.
- Only stations with vehicles
only_with_vehiclestrue/false - Leave out stations that are standing empty. Filtering by vehicle type or battery level already implies this.Default:
false. - Maximum stations
limitnumber - Return at most this many stations. Leave blank for every match.From 1 to 2000.
Outputs
countnumber- Stations returned.
matchednumber- Stations that matched, before the limit.
querytext- The text that was searched for.
stationslist- The matching stations, in name order.
totalnumber- Stations in the network, before any filter.
Example output
{
"count": 1,
"matched": 1,
"query": "Theaterplatz",
"stations": [
{
"address": "Casinoplatz 2",
"availability": {
"bikes": 1,
"by_type": [
{
"count": 1,
"type_id": "ebike",
"type_name": "E-bike"
},
{
"count": 1,
"type_id": "mbike",
"type_name": "Mechanical bikes"
}
],
"capacity": 50,
"cargo_bikes": 0,
"disabled_vehicles": 1,
"ebikes": 1,
"ebikes_with_battery_level": 0,
"escooters": 0,
"free_docks": 48,
"gliders": 0,
"max_ebike_battery_level": null,
"min_ebike_battery_level": null,
"total_vehicles": 2
},
"capacity": 50,
"city": "Bern",
"distance_km": null,
"distance_meters": null,
"has_vehicle_detail": false,
"id": "1683",
"is_installed": true,
"is_renting": true,
"is_returning": true,
"is_virtual_station": true,
"last_reported": "2026-11-03T00:14:30Z",
"latitude": 46.94759904223614,
"longitude": 7.447349799999992,
"matching_vehicle_count": null,
"matching_vehicles": null,
"name": "Theaterplatz - Bern",
"network": {
"id": "41",
"name": "Bern"
},
"rental_url": "https://app.publibike.ch/station?id=1683",
"state_name": "Active",
"vehicles": null,
"zip": "3011"
}
],
"total": 1684
}