FlixBus Trip Detail API Documentation Get one trip by its trip_id from the search endpoint: for each ride the line code and destination, the brand, the operator names and every stop of the line with arrival and departure times. on_trip is true for the stops between boarding and alighting. Also the address, zip code and coordinates of the departure and arrival station.
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.
string
Required
The full trip_id of a search result. It looks like direct:RIDE:FROM_STATION:TO_STATION, or starts with ic: for a trip with transfers.
1234567890
Response Schema
Example response fields are illustrative; inspect the JSON before integrating.
Example response fields
Scan these fields before integrating.
data
meta
success
{
"data": {
"trip": {
"rides": [
{
"line": {
"code": "N44",
"line_id": 9418,
"destination": "Amsterdam Sloterdijk",
"line_variation_id": 633653
},
"type": "ride",
"brand": {
"id": "a18f138c-68fa-4b45-a42f-adb0378e10d3",
"name": "FlixBus",
"type": "core",
"color": "#97D700"
},
"stops": [
{
"name": "Berlin Alexanderplatz",
"arrival": null,
"on_trip": true,
"departure": "2026-11-03T00:10:00+01:00"
},
{
"name": "Berlin S\u00fcdkreuz",
"arrival": "2026-11-03T00:35:00+01:00",
"on_trip": true,
"departure": "2026-11-03T00:40:00+01:00"
},
{
"name": "Berlin central bus station",
"arrival": "2026-11-03T00:50:00+01:00",
"on_trip": true,
"departure": "2026-11-03T01:00:00+01:00"
},
{
"name": "Hamburg ZOB",
"arrival": "2026-11-03T04:15:00+01:00",
"on_trip": true,
"departure": null
}
],
"messages": {
"to": null,
"from": null
},
"warnings": [],
"operators": [
"FlixBus DACH GmbH"
],
"sub_brand": null
}
],
"arrival": {
"address": "Adenauerallee 78",
"location": {
"lat": 53.551767,
"lon": 10.011657
},
"zip_code": "20097",
"city_name": "Hamburg",
"description": "Gate information available here: https://www.zob-hamburg.de/abfahrt.php",
"country_code": "DE",
"station_name": "Hamburg ZOB"
},
"trip_id": "direct:78e70bcf-351d-4589-8271-9d339a9ede21:dcbc32c3-9603-11e6-9066-549f350fcb0c:dcbada9a-9603-11e6-9066-549f350fcb0c",
"departure": {
"address": "Alexanderstra\u00dfe 3",
"location": {
"lat": 52.523198,
"lon": 13.414529
},
"zip_code": "10178",
"city_name": "Berlin",
"description": null,
"country_code": "DE",
"station_name": "Berlin Alexanderplatz"
},
"transfers": 0,
"line_origin": {
"name": "Berlin Alexanderplatz",
"time": "2026-11-03T00:10:00+01:00"
},
"line_destination": {
"name": "Amsterdam Sloterdijk",
"time": "2026-11-03T11:35:00+01:00"
}
}
},
"meta": {
"billable": true,
"endpoint_family": "trip_detail"
},
"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": {
"trip_id": [
"The trip_id is the full trip_id value of a search result."
]
},
"message": "The request validation failed"
}Resource Not Found
The trip id is unknown or has expired. This response is not billable.
{
"meta": {
"billable": false,
"retryable": false,
"endpoint_family": "trip_detail"
},
"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": "trip_detail"
},
"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.