# FlixBus Trip Detail API Documentation

<p><strong>FlixBus Trip Detail API Documentation</strong> 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.</p>

- **Documentation:** [https://scrappa.co/docs/flixbus-api/flixbus_trip](https://scrappa.co/docs/flixbus-api/flixbus_trip)
- **API group:** FlixBus API
- **Endpoint:** `GET https://scrappa.co/api/flixbus/trip`

## Authentication

Send your Scrappa API key in the `X-API-KEY` request header. Paid endpoints also support accountless x402 payments when called without an API key.

## Parameters

| Parameter | Type | Required | Description |
| --- | --- | --- | --- |
| `trip_id` | string | Yes | 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. |

## Example response

```json
{
    "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

| Status | Error | Description |
| --- | --- | --- |
| 422 | Validation Error | A required query parameter is missing or invalid. This response is not billable. |
| 404 | Resource Not Found | The trip id is unknown or has expired. This response is not billable. |
| 503 | Service Unavailable | FlixBus could not be reached or answered with an unexpected shape. This response is not billable. |

## More Scrappa resources

- [API documentation](https://scrappa.co/docs)
- [Full LLM-readable API reference](https://scrappa.co/llms-full.txt)
- [OpenAPI specification](https://scrappa.co/docs/api.json)
- [Pricing](https://scrappa.co/pricing)
