Skip to main content
POST
/
api
/
skyscanner
/
flights
/
prices
/
months
/skyscanner/flights/prices/months
curl --request POST \
  --url https://api.anysite.io/api/skyscanner/flights/prices/months \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "origin": "<string>",
  "destination": "<string>",
  "count": 2,
  "timeout": 300,
  "trip_type": "ROUND_TRIP"
}
'
[
  {
    "@type": "@skyscanner_month_price",
    "date": "<string>",
    "year": 123,
    "month": 123,
    "price": 123,
    "currency": "<string>",
    "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:

"27537542"

destination
string
required

Destination place entity id

Pattern: ^\d+$
Example:

"27544008"

count
integer
required

Max number of months to return

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

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
trip_type
enum<string>
default:ROUND_TRIP

Trip type

Available options:
ROUND_TRIP,
ONE_WAY

Response

Successful Response

@type
string
default:@skyscanner_month_price
date
string | null
year
integer | null
month
integer | null
price
number | null
currency
string | null
price_category
string | null