Skip to main content
POST
/
api
/
skyscanner
/
flights
/
search
/skyscanner/flights/search
curl --request POST \
  --url https://api.anysite.io/api/skyscanner/flights/search \
  --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": []
}
'
[
  {
    "id": "<string>",
    "@type": "@skyscanner_itinerary",
    "price": {
      "@type": "@skyscanner_price",
      "raw": 123,
      "formatted": "<string>"
    },
    "score": 123,
    "eco_contender_delta": 123,
    "is_self_transfer": true,
    "is_protected_self_transfer": true,
    "is_mashup": true,
    "has_flexible_options": true,
    "fare_policy": {
      "@type": "@skyscanner_fare_policy",
      "is_change_allowed": true,
      "is_partially_changeable": true,
      "is_cancellation_allowed": true,
      "is_partially_refundable": true
    },
    "legs": [],
    "pricing_options": []
  }
]

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:

"27537542"

destination
string
required

Destination place entity id

Pattern: ^\d+$
Example:

"27544008"

depart_date
string<date>
required

Outbound flight date

Example:

"2026-08-15"

count
integer
required

Max number of itineraries 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

id
string
required
@type
string
default:@skyscanner_itinerary
price
SkyscannerPrice · object
score
number | null
eco_contender_delta
number | null
is_self_transfer
boolean | null
is_protected_self_transfer
boolean | null
is_mashup
boolean | null
has_flexible_options
boolean | null
fare_policy
SkyscannerFarePolicy · object
legs
SkyscannerLeg · object[]
pricing_options
SkyscannerPricingOption · object[]