Offers

Get schedule for a city pair over a bounded forward window

Returns a dated timetable of individual departures for the given city pair, over a forward window of days calendar days starting at (and including) date. days defaults to 1, so a request carrying only date returns that single day exactly as before, and is capped at 14 — a longer window is rejected by validation, never truncated. Each row includes departure/arrival datetime (wall-clock, timezone-aware), company, route name, travel time, and price; the datetime is what attributes a row to its own day. Sorted by departure time ascending across the whole window. Paginated with take/skip over the whole window.

GEThttps://api.prexsell.com/v2/offers/schedule

Query Parameters

  • departureCitySlugstringrequired

    URL-friendly slug of the departure city.

    Minimum string length: 1

  • arrivalCitySlugstringrequired

    URL-friendly slug of the arrival city.

    Minimum string length: 1

  • datestring<date>required

    First day of the window, in ISO YYYY-MM-DD format. With the default days=1 this is the only day returned.

  • daysintegerdefault: 1

    Length of the forward window in calendar days, starting at and including date (1–14). Defaults to 1, which returns that single date. Rows across the window are returned as one list sorted by departure time ascending; each row's departureDateTime carries its own day.

    Required range: 1 <= x <= 14

  • passengersintegerdefault: 1

    Number of passengers (1–10).

    Required range: 1 <= x <= 10

  • currencyenum<string>default: UAH

    Currency code for prices.

    Available options: UAH, PLN, CZK, EUR, USD

  • languageenum<string>default: UK

    Language code for city name translations.

    Available options: UK, PL, CS, EN, RU

  • takeintegerdefault: 50

    Maximum number of departures to return (1–100).

    Required range: 1 <= x <= 100

  • skipinteger | nulldefault: 0

    Number of departures to skip for offset pagination.

    Required range: x >= 0

Response 200

application/json

Schedule of departures for the given city pair and date.

  • dataobjectrequired

Response 404

application/json

Standard error response body.

  • errorsobject[]required

Get schedule for a city pair over a bounded forward window

curl --request GET \
  --url 'https://api.prexsell.com/v2/offers/schedule?departureCitySlug=kyiv&arrivalCitySlug=warsaw&date=2026-06-10&days=7&passengers=1&currency=UAH&language=UK&take=50&skip=0'

To test first, swap https://api.prexsell.com for https://staging.api.prexsell.com.

{
  "data": {
    "source": "PrexSell",
    "total": 7,
    "currency": "UAH",
    "passengers": 1,
    "departures": [
      {
        "id": "eyJ...",
        "company": {
          "id": "clco1",
          "name": "Ecolines",
          "slug": "ecolines",
          "logoUrl": "https://example.com/logo.png"
        },
        "departureDateTime": "2026-06-10T06:30:00+03:00",
        "arrivalDateTime": "2026-06-11T08:45:00+02:00",
        "travelTimeMinutes": 1575,
        "routeName": "Київ — Варшава",
        "price": {
          "amount": 1450,
          "currency": "UAH"
        },
        "seatsLeft": 22
      }
    ]
  }
}