Skip to main content
POST
/
api
/
skyscanner
/
flights
/
dates
/skyscanner/flights/dates
curl --request POST \
  --url https://api.anysite.io/api/skyscanner/flights/dates \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "origin": "<string>",
  "destination": "<string>",
  "depart_date": "2023-12-25",
  "count": 2,
  "timeout": 300,
  "return_date": "2026-08-22",
  "cabin_class": "ECONOMY",
  "adults": 1,
  "child_ages": []
}
'
[
  {
    "@type": "@skyscanner_date_option",
    "departure_date": "<string>",
    "return_date": "<string>",
    "currency": "<string>",
    "price": 123,
    "direct_price": 123,
    "non_direct_price": 123,
    "availability": "<string>",
    "direct_availability": "<string>",
    "price_category": "<string>",
    "direct_price_category": "<string>"
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
origin
string
required

Origin place entity id

Pattern: ^\d+$
Example:

"27544008"

destination
string
required

Destination place entity id

Pattern: ^\d+$
Example:

"27537542"

depart_date
string<date>
required

Outbound flight date

Example:

"2026-08-15"

count
integer
required

Max number of date options to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
return_date
string<date> | null

Return flight date for round trips; omit for one-way

Example:

"2026-08-22"

cabin_class
enum<string>
default:ECONOMY

Cabin class

Available options:
ECONOMY,
PREMIUM_ECONOMY,
BUSINESS,
FIRST
adults
integer
default:1

Number of adult passengers

Required range: 1 <= x <= 8
child_ages
integer[]

Ages of child passengers (0-17)

Response

Successful Response

@type
string
default:@skyscanner_date_option
departure_date
string | null
return_date
string | null
currency
string | null
price
number | null
direct_price
number | null
non_direct_price
number | null
availability
string | null
direct_availability
string | null
price_category
string | null
direct_price_category
string | null