Get schedule for a city pair on a date
curl --request GET \
--url https://staging.api.prexsell.com/v2/offers/scheduleimport requests
url = "https://staging.api.prexsell.com/v2/offers/schedule"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.api.prexsell.com/v2/offers/schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.prexsell.com/v2/offers/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.api.prexsell.com/v2/offers/schedule"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.api.prexsell.com/v2/offers/schedule")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.prexsell.com/v2/offers/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
}
]
}
}{
"errors": [
{
"message": "RESOURCE_NOT_FOUND",
"errorCode": "NOT_FOUND"
}
]
}Offers
Get schedule for a city pair on a date
Returns a dated timetable of individual departures for the given city pair. Each row includes departure/arrival datetime (wall-clock, timezone-aware), company, route name, travel time, and price. Sorted by departure time ascending. Paginated with take/skip.
GET
/
v2
/
offers
/
schedule
Get schedule for a city pair on a date
curl --request GET \
--url https://staging.api.prexsell.com/v2/offers/scheduleimport requests
url = "https://staging.api.prexsell.com/v2/offers/schedule"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://staging.api.prexsell.com/v2/offers/schedule', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://staging.api.prexsell.com/v2/offers/schedule",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://staging.api.prexsell.com/v2/offers/schedule"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://staging.api.prexsell.com/v2/offers/schedule")
.asString();require 'uri'
require 'net/http'
url = URI("https://staging.api.prexsell.com/v2/offers/schedule")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"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
}
]
}
}{
"errors": [
{
"message": "RESOURCE_NOT_FOUND",
"errorCode": "NOT_FOUND"
}
]
}Query Parameters
URL-friendly slug of the departure city.
Minimum string length:
1Example:
"kyiv"
URL-friendly slug of the arrival city.
Minimum string length:
1Example:
"warsaw"
Travel date in ISO YYYY-MM-DD format.
Example:
"2026-06-10"
Number of passengers (1–10).
Required range:
1 <= x <= 10Example:
1
Currency code for prices.
Available options:
UAH, PLN, CZK, EUR, USD Example:
"UAH"
Language code for city name translations.
Available options:
UK, PL, CS, EN, RU Example:
"UK"
Maximum number of departures to return (1–100).
Required range:
1 <= x <= 100Example:
50
Number of departures to skip for offset pagination.
Required range:
x >= 0Example:
0
Response
Schedule of departures for the given city pair and date.
Show child attributes
Show child attributes
⌘I
