Skip to content
Scrappa Get API key
FlixBus API 1 credit/request

FlixBus Station Detail API Documentation

GET https://scrappa.co/api/flixbus/station

FlixBus Station Detail API Documentation Get one station by id: name, slug, street address, zip code, country, train flag and the owning city with both id formats.

FlixBus Station Detail API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/flixbus/station
Auth header
x-api-key
Cost
1 credit/request
station_id = 1234567890
Response preview
200 OK
{
    "data": {
        "station": {
            "id": "dcbc32c3-9603-11e6-9066-549f350fcb0c",
            "city": {
                "id": "40d8f682-8646-11e6-9066-549f350fcb0c",
                "name": "Berlin",
                "slug": "berlin",
                "legacy_id": 88
            },
            "name": "Berlin Alexanderplatz",
            "slug": "berlin-alexanderplatz",
            "address": "Alexanderstra\u00dfe 3",
            "country": {
...

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.

station_id string Required

Station UUID from the stations endpoint. Example: dcbc32c3-9603-11e6-9066-549f350fcb0c.

Example value 1234567890

Response Schema

Example response fields are illustrative; inspect the JSON before integrating.

Example response fields

Scan these fields before integrating.

data meta success
JSON Response
200 OK
{
    "data": {
        "station": {
            "id": "dcbc32c3-9603-11e6-9066-549f350fcb0c",
            "city": {
                "id": "40d8f682-8646-11e6-9066-549f350fcb0c",
                "name": "Berlin",
                "slug": "berlin",
                "legacy_id": 88
            },
            "name": "Berlin Alexanderplatz",
            "slug": "berlin-alexanderplatz",
            "address": "Alexanderstra\u00dfe 3",
            "country": {
                "code": "DE",
                "name": "Germany"
            },
            "zipcode": "10178",
            "is_train": false,
            "legacy_id": 1224
        }
    },
    "meta": {
        "billable": true,
        "endpoint_family": "station_detail"
    },
    "success": true
}

Errors

Handle these documented responses before retrying or showing customer-facing failures.

422

Validation Error

A required query parameter is missing or invalid. This response is not billable.

{
    "errors": {
        "station_id": [
            "The station_id is a UUID."
        ]
    },
    "message": "The request validation failed"
}
404

Resource Not Found

The station id is unknown. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": false,
        "endpoint_family": "station_detail"
    },
    "error": {
        "code": "NOT_FOUND",
        "message": "The requested FlixBus resource was not found."
    },
    "success": false
}
503

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": "station_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.