FlixBus Reachable Cities API Documentation The cities that FlixBus connects to one city: average and shortest duration in minutes, whether the route needs a transfer, route popularity, transport modes and a price band (min, average, max) per currency. The band is a route statistic, not the fare of a day: use search or calendar for real fares.
Run this endpoint
Endpoint
Parameters
Start with the required fields, then add optional filters only when your use case needs them.
Runnable path
1 required parameter needed before sending a request.
1 optional filter available.
string
Required
Origin city UUID from the cities endpoint. Example: 40d8f682-8646-11e6-9066-549f350fcb0c.
1234567890
integer
Optional
Destinations to return, 1 to 200. Defaults to 50.
10
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"count": 3,
"limit": 3,
"city_id": "40d8f682-8646-11e6-9066-549f350fcb0c",
"destinations": [
{
"id": "40de8964-8646-11e6-9066-549f350fcb0c",
"name": "Paris",
"slug": "paris",
"price": {
"EUR": {
"avg": 59.47,
"max": 123.97,
"min": 58.97
}
},
"location": {
"lat": 48.835335,
"lon": 2.380503
},
"legacy_id": 2015,
"country_code": "FR",
"search_volume": 32644900,
"needs_transfer": false,
"transport_modes": [
"bus"
],
"route_popularity": 41900,
"avg_duration_minutes": 981,
"min_duration_minutes": 680
},
{
"id": "40dfdfd8-8646-11e6-9066-549f350fcb0c",
"name": "London",
"slug": "london",
"price": {
"EUR": {
"avg": 155.96,
"max": 172.98,
"min": 84.98
}
},
"location": {
"lat": 51.50735,
"lon": -0.1277583
},
"legacy_id": 3848,
"country_code": "GB",
"search_volume": 18302800,
"needs_transfer": false,
"transport_modes": [
"bus"
],
"route_popularity": 5600,
"avg_duration_minutes": 1120,
"min_duration_minutes": 1120
},
{
"id": "40de1ad1-8646-11e6-9066-549f350fcb0c",
"name": "Prague",
"slug": "prague",
"price": {
"EUR": {
"avg": 35.97,
"max": 61.47,
"min": 14.48
}
},
"location": {
"lat": 50.08962,
"lon": 14.440946
},
"legacy_id": 1374,
"country_code": "CZ",
"search_volume": 15546800,
"needs_transfer": false,
"transport_modes": [
"bus"
],
"route_popularity": 112900,
"avg_duration_minutes": 303,
"min_duration_minutes": 220
}
]
},
"meta": {
"billable": true,
"endpoint_family": "reachable_cities"
},
"success": true
}
Errors
Handle these documented responses before retrying or showing customer-facing failures.
Validation Error
A required query parameter is missing or invalid. This response is not billable.
{
"errors": {
"city_id": [
"A city id is required, taken from the cities endpoint."
]
},
"message": "The request validation failed"
}Resource Not Found
The city id is unknown or has no routes. This response is not billable.
{
"meta": {
"billable": false,
"retryable": false,
"endpoint_family": "reachable_cities"
},
"error": {
"code": "NOT_FOUND",
"message": "The requested FlixBus resource was not found."
},
"success": false
}Service Unavailable
FlixBus could not be reached or answered with an unexpected shape. This response is not billable.
{
"meta": {
"billable": false,
"retryable": true,
"endpoint_family": "reachable_cities"
},
"error": {
"code": "UPSTREAM_UNAVAILABLE",
"message": "The FlixBus API is temporarily unavailable. Please retry."
},
"success": false
}Generate Code with AI
Copy a ready-made prompt with all the endpoint details, parameters, and example responses. Paste it into ChatGPT, Claude, or any AI assistant to instantly generate working code.
Try It Live
Test this endpoint in our interactive playground with real data.