FlixBus: Search
Search from FlixBus as JSON. 1 credit per successful call.
GET /v1/flixbus/search
Parameters
Send parameters in the query string.
| Parameter | Type | Required | Allowed values |
|---|---|---|---|
from_city_id | string | Required | Any |
to_city_id | string | Required | Any |
adults | integer | Optional | Any |
currency | string | Optional | EUR, USD |
departure_date | string | Required | Any |
return_date | string | Optional | Any |
sort | string | Optional | departure, price, duration |
max_price | number | Optional | Any |
max_transfers | integer | Optional | Any |
departure_after | string | Optional | Any |
departure_before | string | Optional | Any |
Example request
FlixBus
GET/v1/flixbus/search?from_city_id=40d8f682-8646-11e6-9066-549f350fcb0c&to_city_id=40d91e53-8646-11e6-9066-549f350fcb0c&departure_date=2027-03-14
{
"success": true,
"data": {
"from_city_id": "40d8f682-8646-11e6-9066-549f350fcb0c",
"to_city_id": "40d91e53-8646-11e6-9066-549f350fcb0c",
"departure_date": "2027-03-14",
"adults": 1,
"currency": "EUR",
"sort": "departure",
"total": 45,
"total_before_filters": 45,
"trips": [
{
"trip_id": "direct:617a6fa6-be32-46f8-9104-3b987823102c:dcbc32c3-9603-11e6-9066-549f350fcb0c:dcbada9a-9603-11e6-9066-549f350fcb0c",
"status": "available",
"transfer_type": "Direct",
"transfer_type_key": "direct",
"provider": "flixbus",
"departure": {
"time": "2027-03-14T00:10:00+01:00",
"date": "2027-03-14",
"local_time": "00:10",
"station_id": "dcbc32c3-9603-11e6-9066-549f350fcb0c",
"station_name": "Berlin Alexanderplatz",
"city_id": "40d8f682-8646-11e6-9066-549f350fcb0c",
"city_name": "Berlin"
},
"arrival": {
"time": "2027-03-14T04:15:00+01:00",
"date": "2027-03-14",
"local_time": "04:15",
"station_id": "dcbada9a-9603-11e6-9066-549f350fcb0c",
"station_name": "Hamburg ZOB",
"city_id": "40d91e53-8646-11e6-9066-549f350fcb0c",
"city_name": "Hamburg"
},
"after_midnight": false,
"duration": {
"hours": 4,
"minutes": 5,
"total_minutes": 245
},
"transfers": 0,
"is_direct": true,
"intermediate_stations_count": 0,
"price": {
"currency": "EUR",
"total": 20.99,
"total_with_platform_fee": 21.98,
"original": 20.99,
"average": 20.99,
"average_with_platform_fee": 21.98
},
"capacity": "high",
"available_seats": 49,
"bike_slots": 0,
"amenities": [
"WIFI",
"POWER_SOCKETS"
],
"legs": [
{
"ride_id": "617a6fa6-be32-46f8-9104-3b987823102c",
"means_of_transport": "bus",
"departure": "…",
"arrival": "…",
"operator_id": "mfb",
"operator_name": "FlixBus DACH GmbH",
"brand_id": "a18f138c-68fa-4b45-a42f-adb0378e10d3",
"brand_name": "FlixBus",
"is_marketplace": false,
"amenities": [
"WIFI",
"POWER_SOCKETS"
],
"seat_types": [
"SEATER"
],
"cheapest_seat": "SEATER",
"layout": [
"…"
]
}
],
"restrictions": {
"sale_restriction": false,
"info_title": "",
"info_title_hint": "",
"info_message": "",
"bikes_allowed": true,
"wheelchair_status": "unknown"
}
},
{
"trip_id": "direct:617a6fa6-be32-46f8-9104-3b987823102c:dcbb994f-9603-11e6-9066-549f350fcb0c:dcbada9a-9603-11e6-9066-549f350fcb0c",
"status": "available",
"transfer_type": "Direct",
"transfer_type_key": "direct",
"provider": "flixbus",
"departure": {
"time": "2027-03-14T00:40:00+01:00",
"date": "2027-03-14",
"local_time": "00:40",
"station_id": "dcbb994f-9603-11e6-9066-549f350fcb0c",
"station_name": "Berlin Südkreuz",
"city_id": "40d8f682-8646-11e6-9066-549f350fcb0c",
"city_name": "Berlin"
},
"arrival": {
"time": "2027-03-14T04:15:00+01:00",
"date": "2027-03-14",
"local_time": "04:15",
"station_id": "dcbada9a-9603-11e6-9066-549f350fcb0c",
"station_name": "Hamburg ZOB",
"city_id": "40d91e53-8646-11e6-9066-549f350fcb0c",
"city_name": "Hamburg"
},
"after_midnight": false,
"duration": {
"hours": 3,
"minutes": 35,
"total_minutes": 215
},
"transfers": 0,
"is_direct": true,
"intermediate_stations_count": 0,
"price": {
"currency": "EUR",
"total": 20.99,
"total_with_platform_fee": 21.98,
"original": 20.99,
"average": 20.99,
"average_with_platform_fee": 21.98
},
"capacity": "high",
"available_seats": 49,
"bike_slots": 0,
"amenities": [
"WIFI",
"POWER_SOCKETS"
],
"legs": [
{
"ride_id": "617a6fa6-be32-46f8-9104-3b987823102c",
"means_of_transport": "bus",
"departure": "…",
"arrival": "…",
"operator_id": "mfb",
"operator_name": "FlixBus DACH GmbH",
"brand_id": "a18f138c-68fa-4b45-a42f-adb0378e10d3",
"brand_name": "FlixBus",
"is_marketplace": false,
"amenities": [
"WIFI",
"POWER_SOCKETS"
],
"seat_types": [
"SEATER"
],
"cheapest_seat": "SEATER",
"layout": [
"…"
]
}
],
"restrictions": {
"sale_restriction": false,
"info_title": "",
"info_title_hint": "",
"info_message": "",
"bikes_allowed": true,
"wheelchair_status": "unknown"
}
},
{
"trip_id": "direct:617a6fa6-be32-46f8-9104-3b987823102c:dcbaaee6-9603-11e6-9066-549f350fcb0c:dcbada9a-9603-11e6-9066-549f350fcb0c",
"status": "available",
"transfer_type": "Direct",
"transfer_type_key": "direct",
"provider": "flixbus",
"departure": {
"time": "2027-03-14T01:00:00+01:00",
"date": "2027-03-14",
"local_time": "01:00",
"station_id": "dcbaaee6-9603-11e6-9066-549f350fcb0c",
"station_name": "Berlin central bus station",
"city_id": "40d8f682-8646-11e6-9066-549f350fcb0c",
"city_name": "Berlin"
},
"arrival": {
"time": "2027-03-14T04:15:00+01:00",
"date": "2027-03-14",
"local_time": "04:15",
"station_id": "dcbada9a-9603-11e6-9066-549f350fcb0c",
"station_name": "Hamburg ZOB",
"city_id": "40d91e53-8646-11e6-9066-549f350fcb0c",
"city_name": "Hamburg"
},
"after_midnight": false,
"duration": {
"hours": 3,
"minutes": 15,
"total_minutes": 195
},
"transfers": 0,
"is_direct": true,
"intermediate_stations_count": 0,
"price": {
"currency": "EUR",
"total": 20.99,
"total_with_platform_fee": 21.98,
"original": 20.99,
"average": 20.99,
"average_with_platform_fee": 21.98
},
"capacity": "high",
"available_seats": 49,
"bike_slots": 0,
"amenities": [
"WIFI",
"POWER_SOCKETS"
],
"legs": [
{
"ride_id": "617a6fa6-be32-46f8-9104-3b987823102c",
"means_of_transport": "bus",
"departure": "…",
"arrival": "…",
"operator_id": "mfb",
"operator_name": "FlixBus DACH GmbH",
"brand_id": "a18f138c-68fa-4b45-a42f-adb0378e10d3",
"brand_name": "FlixBus",
"is_marketplace": false,
"amenities": [
"WIFI",
"POWER_SOCKETS"
],
"seat_types": [
"SEATER"
],
"cheapest_seat": "SEATER",
"layout": [
"…"
]
}
],
"restrictions": {
"sale_restriction": false,
"info_title": "",
"info_title_hint": "",
"info_message": "",
"bikes_allowed": true,
"wheelchair_status": "unknown"
}
}
],
"stations": {
"dcbaaee6-9603-11e6-9066-549f350fcb0c": {
"id": "dcbaaee6-9603-11e6-9066-549f350fcb0c",
"legacy_id": 1,
"name": "Berlin central bus station",
"slug": "berlin-zob",
"is_train": false
},
"dcbada9a-9603-11e6-9066-549f350fcb0c": {
"id": "dcbada9a-9603-11e6-9066-549f350fcb0c",
"legacy_id": 36,
"name": "Hamburg ZOB",
"slug": "hamburg",
"is_train": false
},
"dcbb994f-9603-11e6-9066-549f350fcb0c": {
"id": "dcbb994f-9603-11e6-9066-549f350fcb0c",
"legacy_id": 481,
"name": "Berlin Südkreuz",
"slug": "berlin-sdkreuz",
"is_train": false
},
"dcbc32c3-9603-11e6-9066-549f350fcb0c": {
"id": "dcbc32c3-9603-11e6-9066-549f350fcb0c",
"legacy_id": 1224,
"name": "Berlin Alexanderplatz",
"slug": "berlin-alexanderplatz",
"is_train": false
},
"dcbfd6bc-9603-11e6-9066-549f350fcb0c": {
"id": "dcbfd6bc-9603-11e6-9066-549f350fcb0c",
"legacy_id": 3288,
"name": "Berlin Alt-Tegel",
"slug": "berlin-u-alt-tegel",
"is_train": false
},
"5ae86c41-b203-42cd-9be6-34cf93120e3e": {
"id": "5ae86c41-b203-42cd-9be6-34cf93120e3e",
"legacy_id": 18088,
"name": "Berlin S-Treptower Park",
"slug": "berlin-treptower-park",
"is_train": false
},
"394a5408-d778-4959-a63e-973253443ed2": {
"id": "394a5408-d778-4959-a63e-973253443ed2",
"legacy_id": 20688,
"name": "Berlin Central Station",
"slug": "berlin-central-station-flixtrain",
"is_train": true
},
"895f31c8-7f88-4d8f-a070-4b4a6320160a": {
"id": "895f31c8-7f88-4d8f-a070-4b4a6320160a",
"legacy_id": 20788,
"name": "Berlin Südkreuz",
"slug": "berlin-sudkreuz-station-flixtrain",
"is_train": true
},
"e6f7f0f4-4bb5-45a0-bcc2-d5e7279686dd": {
"id": "e6f7f0f4-4bb5-45a0-bcc2-d5e7279686dd",
"legacy_id": 20798,
"name": "Berlin-Spandau",
"slug": "berlin-spandau-station-flixtrain",
"is_train": true
},
"38c4c04e-e957-4115-ac23-6fa87012bde4": {
"id": "38c4c04e-e957-4115-ac23-6fa87012bde4",
"legacy_id": 22308,
"name": "Hamburg Central Station",
"slug": "hamburg-central-station-flixtrain",
"is_train": true
}
},
"cities": {
"40d8f682-8646-11e6-9066-549f350fcb0c": {
"id": "40d8f682-8646-11e6-9066-549f350fcb0c",
"legacy_id": 88,
"name": "Berlin",
"slug": "berlin"
},
"40d91e53-8646-11e6-9066-549f350fcb0c": {
"id": "40d91e53-8646-11e6-9066-549f350fcb0c",
"legacy_id": 118,
"name": "Hamburg",
"slug": "hamburg"
}
},
"operators": {
"mfb": {
"id": "mfb",
"name": "FlixBus DACH GmbH",
"url": "http://flixbus.de"
},
"flixpl": {
"id": "flixpl",
"name": "FlixBus Polska sp. z.o.o.",
"url": "https://www.flixbus.pl/"
},
"flixee": {
"id": "flixee",
"name": "FlixBus Estonia OÜ"
},
"train": {
"id": "train",
"name": "FlixTrain GmbH",
"url": "https://www.flixbus.com/"
}
},
"brands": {
"a18f138c-68fa-4b45-a42f-adb0378e10d3": {
"id": "a18f138c-68fa-4b45-a42f-adb0378e10d3",
"name": "FlixBus",
"type": "core",
"logo": "https://cdn-cf.cms.flixbus.com/drupal-assets/2025-01/flixbus-green.png"
},
"adf3cadd-7991-436c-be53-eb0f9c5ac165": {
"id": "adf3cadd-7991-436c-be53-eb0f9c5ac165",
"name": "FlixTrain",
"type": "core",
"logo": "https://cdn-cf.cms.flixbus.com/drupal-assets/2025-01/flixtrain-green.png"
},
"61d93e4d-a1be-4c16-b74d-83b5247a43fe": {
"id": "61d93e4d-a1be-4c16-b74d-83b5247a43fe",
"name": "Classic",
"type": "core",
"logo": "https://cdn-cf.cms.flixbus.com/drupal-assets/2026-04/flixtrain-classic.png"
}
}
},
"meta": {
"endpoint_family": "trip_search"
}
}200 OKJSONX-Credits-Used: 1
Recorded 12 Nov 2026 and shortened.
Run this endpoint in the playground with your own parameters. 1 credit per successful call; failed calls are free.
Response fields
data has these 10 fields, read from a recorded call. The recording leaves out fields that were empty, so a live call can return more.
| Field | Type |
|---|---|
from_city_id | string |
to_city_id | string |
departure_date | string |
adults | integer |
currency | string |
trips | object[] |
stations | object |
cities | object |
operators | object |
brands | object |