empty_legs

Get list of Empty Leg records

Changed on

Filtering. Active, unexpired empty legs. Filters combine with AND; all parameters are optional. Use created_at_gt or updated_at_gt for records after an ISO 8601 timestamp. Use updated_at_lt for records strictly before a timestamp; combine it with updated_at_gt for a range excluding both boundaries. Sort with ordering=created_at or ordering=updated_at. Both timestamps are returned in UTC.

Prices. Converted prices are indicative and calculated at read time.

get/v3/empty_legs/

Request

  • Base URL
    https://api.aviapages.com (the document declares no server; this is the origin it was published from)
  • URL
    https://api.aviapages.com/v3/empty_legs/
  • Auth
    API key in header Authorization

Query parameters

aircraft_idnumber
aircraft_slugstring
arr_airport_code_instring[]
arr_airport_country_iso_alpha2_instring[]

Multiple values may be separated by commas.

arr_airport_country_iso_alpha3_instring[]

Multiple values may be separated by commas.

arrival_airport_id_innumber[]

Arrival airport id in list

created_at_gtstring date-time

Created at date greater than

dep_airport_code_instring[]
dep_airport_country_iso_alpha2_instring[]

Multiple values may be separated by commas.

dep_airport_country_iso_alpha3_instring[]

Multiple values may be separated by commas.

dep_airport_id_innumber[]

Departure airport id in list

from_date_localstring date-time

From date local available in format "yyyy-mm-ddThh:mm"

from_date_utcstring date-time

From date available in format "yyyy-mm-ddThh:mm"

has_arrival_airportboolean

Show records with destination airport only

has_priceboolean

Show records with price only

orderingstring[]

Ordering fields: id, dep_date_utc, arr_date_utc, aircraft_registration_number, dep_airport_icao, arr_airport_icao, price, price_currency_name, created_at, updated_at

  • id - id
  • -id - id (descending)
  • dep_date_utc - Dep date utc
  • -dep_date_utc - Dep date utc (descending)
  • arr_date_utc - Arr date utc
  • -arr_date_utc - Arr date utc (descending)
  • aircraft_registration_number - aircraft_registration_number
  • -aircraft_registration_number - aircraft_registration_number (descending)
  • dep_airport_icao - dep_airport_icao
  • -dep_airport_icao - dep_airport_icao (descending)
  • arr_airport_icao - arr_airport_icao
  • -arr_airport_icao - arr_airport_icao (descending)
  • price - price
  • -price - price (descending)
  • price_currency_name - Price currency name
  • -price_currency_name - Price currency name (descending)
  • created_at - created_at_gt
  • -created_at - created_at_gt (descending)
  • updated_at - Updated at
  • -updated_at - Updated at (descending)
pageinteger

A page number within the paginated result set.

regstring

Registration number filter like "hbjgq" or "hb-jgq"

search_coordsstring

Search by coordinates, "latitude,longitude". Returns results ordered by distance, requires search_coords_radius

search_coords_radiusnumber

Radius in kilometers for search_coords, default 100km.

to_date_localstring date-time

To date local available in format "yyyy-mm-ddThh:mm"

to_date_utcstring date-time

To date available in format "yyyy-mm-ddThh:mm"

updated_at_gtstring date-time

Updated strictly after this ISO 8601 timestamp.

updated_at_ltstring date-time

Updated strictly before this ISO 8601 timestamp.

Response

countinteger required
nextstring uri nullable
previousstring uri nullable
next_blocked_reason'authentication_required'
per_pageinteger

Example response

{
  "count": 123,
  "previous": "http://api.example.org/accounts/?page=2",
  "per_page": 20
}

Changes

    • breaking

      for the query request parameter from_date_utc, the format changed from no format to date-time

    • breaking

      for the query request parameter to_date_utc, the format changed from no format to date-time

    • breaking

      the // response's property type changed from object to no type for status

    • breaking

      removed the required property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • warning

      removed the optional property /// from the response with the status

    • info

      added the new optional query request parameter aircraft_id

    • info

      added the new optional query request parameter aircraft_slug

    • info

      added the new optional query request parameter updated_at_gt

    • info

      added the new optional query request parameter updated_at_lt

    • info

      added the enum value -updated_at to the property items/ of the query request parameter ordering

    • info

      added the enum value updated_at to the property items/ of the query request parameter ordering

    • info

      the response optional property // became read-only for the status

    • info

      the response optional property // became read-only for the status

    • info

      the response optional property // became read-only for the status

    • info

      the response optional property // became read-only for the status

    • info

      the response optional property // became read-only for the status

    • info

      added to the // response property allOf list for the response status

    • info

      added to the // response property allOf list for the response status

    • info

      removed from the // response property allOf list for the response status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status

    • info

      the response property // became required for the status

    • info

      response property results/items/aircraft_type deprecated

    • info

      response property results/items/company deprecated

    • info

      response property results/items/registration_number deprecated

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      added the required property // to the response with the status

    • info

      the response required property // became read-only for the status

    • info

      the response required property // became read-only for the status

    • info

      the response required property // became read-only for the status

    • info

      added the optional property to the response with the status

    • info

      the response property became required for the status

    • info

      the response property became required for the status