Field reference for AirData API data

Capacity Fields
Field name Description Data type
arrival_month Arrival Month datetime
pax Sorted dictionary edge with country_code, pax count entries edge(country_code, pax_count)
flights Sorted dictionary edge with country_code, total flights entries edge(country_code, total_flights)
routes Sorted dictionary edge with country_code, total unique routes entries edge(country_code, unique_routes_count)
Capacity Parameters
Parameter name Description Data type
iata The iata's arrival airport. If its passed more than one time, it aggregates results for all queried iatas string
arrival_date Sets the date where capacity is returned datetime
months_ago How many months ago since the mandatory arrival_date parameter will be retorned integer

Curl

curl -X GET --header 'Accept: application/json' 'https://api.mabrian.com/v1/airdata/capacity/?iata=SVQ&arrival_date=2018-02-01&months_ago=2&access_token=<YOUR_TOKEN>'

Request URL

https://api.mabrian.com/v1/airdata/capacity/?iata=SVQ&arrival_date=2018-02-01&months_ago=2&access_token=<YOUR_TOKEN>

Response Body

[
    "arrival_month": "2018-01-01",
    "pax": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "flights": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "routes": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    }
],
[

    "arrival_month": "2018-02-01",
    "pax": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "flights": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "routes": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    }
]
            

Response Code

200

Response Headers

{
"content-type": "application/json; charset=utf-8"
}

Searches Fields
Field name Description Data type
arrival_month Arrival Month datetime
advance_search Sorted dictionary edge with country_code, avg advance search days entries edge(country_code, avg_adv_search_days)
stay_duration Sorted dictionary edge with country_code, avg stay duration days entries edge(country_code, avg_stay_duration_days)
Searches Parameters
Parameter name Description Data type
iata The iata's arrival airport. If its passed more than one time, it aggregates results for all queried iatas string
arrival_date Sets the date where capacity is returned datetime
months_ago How many months ago since the mandatory arrival_date parameter will be retorned integer

Curl

curl -X GET --header 'Accept: application/json' 'https://api.mabrian.com/v1/airdata/searches/?iata=SVQ&arrival_date=2018-02-01&months_ago=2&access_token=<YOUR_TOKEN>'

Request URL

https://api.mabrian.com/v1/airdata/searches/?iata=SVQ&arrival_date=2018-02-01&months_ago=2&access_token=<YOUR_TOKEN>

Response Body

[
    "arrival_month": "2018-01-01",
    "advance_search": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "stay_duration": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    }
],
[

    "arrival_month": "2018-02-01",
    "advance_search": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "stay_duration": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    }
]
            

Response Code

200

Response Headers

{
"content-type": "application/json; charset=utf-8"
}

Bookings Fields
Field name Description Data type
arrival_month Arrival Month datetime
advance_purchase Sorted dictionary edge with country_code, avg advance purchase days entries edge(country_code, avg_adv_purchase_days)
stay_duration Sorted dictionary edge with country_code, avg stay duration days entries edge(country_code, avg_stay_duration_days)
segments Sorted dictionary edge with country_code, avg segment count entries edge(country_code, avg_segment_count)
Bookings Parameters
Parameter name Description Data type
iata The iata's arrival airport. If its passed more than one time, it aggregates results for all queried iatas string
arrival_date Sets the date where capacity is returned datetime
months_ago How many months ago since the mandatory arrival_date parameter will be retorned integer

Curl

curl -X GET --header 'Accept: application/json' 'https://api.mabrian.com/v1/airdata/bookings/?iata=SVQ&arrival_date=2018-02-01&months_ago=2&access_token=<YOUR_TOKEN>'

Request URL

https://api.mabrian.com/v1/airdata/bookings/?iata=SVQ&arrival_date=2018-02-01&months_ago=2&access_token=<YOUR_TOKEN>

Response Body

[
    "arrival_month": "2018-01-01",
    "advance_purchase": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "stay_duration": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "segments": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    }
],
[

    "arrival_month": "2018-02-01",
    "advance_purchase": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "stay_duration": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    },
    "segments": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    }
]
            

Response Code

200

Response Headers

{
"content-type": "application/json; charset=utf-8"
}

Flight Prices Fields
Field name Description Data type
arrival_month Arrival Month datetime
avg_price Sorted dictionary edge with country_code, avg price (€) entries edge(country_code, avg_price)
Flight Prices Parameters
Parameter name Description Data type
iata The iata's arrival airport. If its passed more than one time, it aggregates results for all queried iatas string
arrival_date Sets the date where capacity is returned datetime
months_ago How many months ago since the mandatory arrival_date parameter will be retorned integer

Curl

curl -X GET --header 'Accept: application/json' 'https://api.mabrian.com/v1/airdata/flight_prices/?iata=SVQ&arrival_date=2018-02-01&months_ago=2&access_token=<YOUR_TOKEN>'

Request URL

https://api.mabrian.com/v1/airdata/flight_prices/?iata=SVQ&arrival_date=2018-02-01&months_ago=2&access_token=<YOUR_TOKEN>

Response Body

[
    "arrival_month": "2018-01-01",
    "avg_price": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    }
],
[

    "arrival_month": "2018-02-01",
    "avg_price": {
        "GB": ...,
        "ES": ...,
        "DE": ...,
        "FR": ...
    }
]
            

Response Code

200

Response Headers

{
"content-type": "application/json; charset=utf-8"
}