Get list of Empty Leg records
Changed onFiltering. 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.
Request
- Base URLhttps://api.aviapages.com (the document declares no server; this is the origin it was published from)
- URLhttps://api.aviapages.com/v3/empty_legs/
- AuthAPI key in header Authorization
Query parameters
Multiple values may be separated by commas.
Multiple values may be separated by commas.
Arrival airport id in list
Created at date greater than
Multiple values may be separated by commas.
Multiple values may be separated by commas.
Departure airport id in list
From date local available in format "yyyy-mm-ddThh:mm"
From date available in format "yyyy-mm-ddThh:mm"
Show records with destination airport only
Show records with price only
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)
A page number within the paginated result set.
Registration number filter like "hbjgq" or "hb-jgq"
Search by coordinates, "latitude,longitude". Returns results ordered by distance, requires search_coords_radius
Radius in kilometers for search_coords, default 100km.
To date local available in format "yyyy-mm-ddThh:mm"
To date available in format "yyyy-mm-ddThh:mm"
Updated strictly after this ISO 8601 timestamp.
Updated strictly before this ISO 8601 timestamp.
Response
Example response
{
"count": 123,
"previous": "http://api.example.org/accounts/?page=2",
"per_page": 20
}Changes
- breaking
for the
queryrequest parameterfrom_date_utc, the format changed from no format todate-time - breaking
for the
queryrequest parameterto_date_utc, the format changed from no format todate-time - breaking
the
//response's property type changed fromobjectto 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
queryrequest parameteraircraft_id - info
added the new optional
queryrequest parameteraircraft_slug - info
added the new optional
queryrequest parameterupdated_at_gt - info
added the new optional
queryrequest parameterupdated_at_lt - info
added the enum value
-updated_atto the propertyitems/of thequeryrequest parameterordering - info
added the enum value
updated_atto the propertyitems/of thequeryrequest parameterordering - 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 propertyallOflist for the response status - info
added to the
//response propertyallOflist for the response status - info
removed from the
//response propertyallOflist 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_typedeprecated - info
response property
results/items/companydeprecated - info
response property
results/items/registration_numberdeprecated - 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
- breaking
- 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
- info