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

Omio Price Summary API Documentation

GET https://scrappa.co/api/omio/search/summary

Omio Price Summary API Documentation Read the cheapest price for every day of a date range, split by mode (train, bus, flight), with the number of results behind each price. Only modes that you asked for and that have results are listed, so a mode without trips never shows as a zero price. Each day also names the cheapest mode. Set calendar to true to add calendar_minimum: the cheapest price per date across the asked modes, without a mode label. The range is at most 62 days. Prices are in minor units (cents).

Omio Price Summary API Documentation 1 credit/request

Endpoint

Request preview
GET
https://scrappa.co/api/omio/search/summary
Auth header
x-api-key
Cost
1 credit/request
origin_id = 1234567890 destination_id = 1234567890 date_start = 2026-06-15
Response preview
200 OK
{
    "data": {
        "days": [
            {
                "date": "2026-11-14",
                "modes": {
                    "bus": {
                        "price": {
                            "currency": "EUR",
                            "amount_minor": 4698
                        },
                        "updated_at": "2026-10-20T10:48:36.098459661Z",
                        "results_count": 23
                    },
...

Parameters

Start with the required fields, then add optional filters only when your use case needs them.

Runnable path

3 required parameters needed before sending a request.

7 optional filters available.

origin_id integer Required

Position id of the departure place. Get it from the places endpoint.

Example value 1234567890
destination_id integer Required

Position id of the arrival place.

Example value 1234567890
date_start string Required

First departure date, YYYY-MM-DD, today or later.

Example value 2026-06-15
date_end string Optional

Last departure date, YYYY-MM-DD, at most 62 days after the start. Defaults to 6 days after the start.

Example value 2026-06-15
travel_mode string Optional

Comma separated modes: train, bus, flight. Defaults to all three.

Example value example
adults integer Optional

Number of adults, 1 to 9. Defaults to 1.

Example value 10
children integer Optional

Number of children, 0 to 9. Defaults to 0.

Example value 10
infants integer Optional

Number of infants, 0 to 9. Defaults to 0.

Example value 10
currency string Optional

Price currency: EUR, USD, GBP, CHF, PLN, CZK, SEK, NOK, DKK, HUF or RON. Defaults to EUR.

Example value USD
calendar boolean Optional

Set true to add the cheapest price per date across the asked modes. Uses one more request upstream.

Example value true

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": {
        "days": [
            {
                "date": "2026-11-14",
                "modes": {
                    "bus": {
                        "price": {
                            "currency": "EUR",
                            "amount_minor": 4698
                        },
                        "updated_at": "2026-10-20T10:48:36.098459661Z",
                        "results_count": 23
                    },
                    "train": {
                        "price": {
                            "currency": "EUR",
                            "amount_minor": 9499
                        },
                        "updated_at": "2026-10-19T15:41:23.24560686Z",
                        "results_count": 35
                    },
                    "flight": {
                        "price": {
                            "currency": "EUR",
                            "amount_minor": 13961
                        },
                        "updated_at": "2026-10-20T10:48:36.098459661Z",
                        "results_count": 87
                    }
                },
                "cheapest_mode": "bus",
                "cheapest_price": {
                    "currency": "EUR",
                    "amount_minor": 4698
                }
            },
            {
                "date": "2026-11-15",
                "modes": {
                    "bus": {
                        "price": {
                            "currency": "EUR",
                            "amount_minor": 4798
                        },
                        "updated_at": "2026-10-20T10:38:44.487040617Z",
                        "results_count": 47
                    },
                    "train": {
                        "price": {
                            "currency": "EUR",
                            "amount_minor": 8999
                        },
                        "updated_at": "2026-10-20T08:05:13.140281081Z",
                        "results_count": 45
                    },
                    "flight": {
                        "price": {
                            "currency": "EUR",
                            "amount_minor": 15630
                        },
                        "updated_at": "2026-10-20T10:38:44.487040617Z",
                        "results_count": 90
                    }
                },
                "cheapest_mode": "bus",
                "cheapest_price": {
                    "currency": "EUR",
                    "amount_minor": 4798
                }
            }
        ],
        "modes": [
            "train",
            "bus",
            "flight"
        ],
        "currency": "EUR",
        "date_end": "2026-11-15",
        "origin_id": 376217,
        "date_start": "2026-11-14",
        "days_count": 2,
        "destination_id": 379727,
        "calendar_minimum": [
            {
                "date": "2026-11-14",
                "price": {
                    "currency": "EUR",
                    "amount_minor": 4698
                }
            },
            {
                "date": "2026-11-15",
                "price": {
                    "currency": "EUR",
                    "amount_minor": 4798
                }
            },
            {
                "date": "2026-11-16",
                "price": {
                    "currency": "EUR",
                    "amount_minor": 4841
                }
            },
            {
                "date": "2026-11-17",
                "price": {
                    "currency": "EUR",
                    "amount_minor": 4298
                }
            },
            {
                "date": "2026-11-18",
                "price": {
                    "currency": "EUR",
                    "amount_minor": 4198
                }
            }
        ]
    },
    "meta": {
        "billable": true,
        "endpoint_family": "price_summary"
    },
    "success": true
}

Errors

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

422

Validation Error

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

{
    "errors": {
        "date_start": [
            "A start date is required, formatted YYYY-MM-DD."
        ]
    },
    "message": "The request validation failed"
}
404

Resource Not Found

The search, trip or route was not found or has expired. This response is not billable.

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

Service Unavailable

Omio could not be reached, did not finish the search in time, or answered with an unexpected shape. This response is not billable.

{
    "meta": {
        "billable": false,
        "retryable": true,
        "endpoint_family": "price_summary"
    },
    "error": {
        "code": "UPSTREAM_UNAVAILABLE",
        "message": "The Omio 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.