Query flight events based on given search criteria.
GET {{baseUrl}}/flightlegs/events?from=<string>&to=<string>&carrier=<string>&flight-number=<string>&operational-suffix=<string>&origin-date=<string>&origin-iata-code=<string>&destination-iata-code=<string>&event-type=<string>&location=<string>&source=<string>&max-results=<integer>
If no query parameter is set the search will be reduced to the last 24 hours. If no maxResult is set a maximum of 1000 records will be returned.
Request Params
Key | Datatype | Required | Description |
---|---|---|---|
from | string | The start point of the interval in UTC. e.g. 2020-01-31T12:30:00.000Z. If used the from and the to parameter has to be set. | |
to | string | The end point of the interval in UTC. e.g. 2020-01-31T12:30:00.000Z. If used the from and the to parameter has to be set. | |
carrier | string | IATA 2-digit code of the operating carrier. | |
flight-number | string | The numeric flight number of operating airline. | |
operational-suffix | string | Used to distinguish two flights having the same flight number and departing from their respective origin stations on the same date. | |
origin-date | string | The day of operation, i.e. local day of schedule off-block time in UTC at first departure airport of flight. e.g. 2020-01-31T12:30:00.000Z. | |
origin-iata-code | string | The IATA code of an airport as origin airport for a flight leg. | |
destination-iata-code | string | The IATA code of an airport as destination airport for a flight leg. | |
event-type | string | The event type: | |
location | string | Location of the event to search for. | |
source | string | Source of the event to search for. | |
max-results | string | The maximum number of results. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
[{"event-time":"1981-07-25T13:51:29.097Z","event-type":"FLIGHT_SCHEDULED_EVENT","identifier":{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"reprehenderit","origin-date":"2018-07-03","origin-iata-code":"AAA","operational-suffix":"B"},"is-international":true,"sibt":"1944-10-14T04:05:45.850Z","sobt":"1990-03-02T07:27:20.593Z","source":"Scanner TRA_12","meta":{"created-at":"2010-09-15T23:36:13.989Z","created-by":{"user-id":"exercitation","user-name":"labore aliqua pariatur"},"modified-count":28840329,"modified-at":"2008-05-29T11:48:58.507Z"},"location":"TRA_12","secondary-identifiers":[{"created":"1990-08-24T22:22:58.873Z","identifier":"amet anim do nostrud in","source":"aliqua Ut ipsum"},{"created":"1990-06-10T00:03:52.665Z","identifier":"deserunt ex irure aliquip magna","source":"do incididunt sit deserunt"}],"aircraft-type":"A320","aircraft-registration":"ipsum incididunt veniam","codeshares":[{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"magna deserunt mollit minim","origin-date":"1968-01-08","origin-iata-code":"AAA","operational-suffix":"B"},{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"dolore commodo Duis anim","origin-date":"1950-06-18","origin-iata-code":"AAA","operational-suffix":"B"}],"flight-segments":[{"identifier":{"carrier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"destination-iata-code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"flight-number":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"identifier-string":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"origin-date":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"origin-iata-code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"operational-suffix":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"is-international":false,"secondary-identifiers":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"identifier":{"carrier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"destination-iata-code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"flight-number":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"identifier-string":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"origin-date":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"origin-iata-code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"operational-suffix":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"is-international":false,"secondary-identifiers":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}]},{"event-time":"1956-09-22T04:22:56.312Z","event-type":"FLIGHT_SCHEDULED_EVENT","identifier":{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"in nostrud Duis labore","origin-date":"2019-07-26","origin-iata-code":"AAA","operational-suffix":"B"},"is-international":true,"sibt":"1998-09-14T14:48:31.101Z","sobt":"1969-05-03T15:04:28.874Z","source":"Scanner TRA_12","meta":{"created-at":"1962-09-08T08:58:09.512Z","created-by":{"user-id":"ut et","user-name":"minim"},"modified-count":35548993,"modified-at":"2003-07-19T17:05:26.967Z"},"location":"TRA_12","secondary-identifiers":[{"created":"1997-09-23T17:10:38.731Z","identifier":"dolore fugiat","source":"ullamco dolor et minim"},{"created":"1954-10-18T02:11:13.193Z","identifier":"labore veniam adipisicing","source":"cupidatat dolor laborum reprehenderit"}],"aircraft-type":"A320","aircraft-registration":"magna aute","codeshares":[{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"exe","origin-date":"2002-10-25","origin-iata-code":"AAA","operational-suffix":"B"},{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"esse cillum ullamco","origin-date":"1949-10-30","origin-iata-code":"AAA","operational-suffix":"B"}],"flight-segments":[{"identifier":{"carrier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"destination-iata-code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"flight-number":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"identifier-string":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"origin-date":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"origin-iata-code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"operational-suffix":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"is-international":false,"secondary-identifiers":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]},{"identifier":{"carrier":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"destination-iata-code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"flight-number":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"identifier-string":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"origin-date":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"origin-iata-code":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"},"operational-suffix":{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}},"is-international":false,"secondary-identifiers":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}]}]