Get events for a specific flight leg.
GET {{baseUrl}}/flightlegs/:id/events?from=<string>&to=<string>&event-type=<string>&max-results=<integer>
Return empty result if there are no events for the specified flight leg. 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. | |
event-type | string | The event type: | |
max-results | string | The maximum number of results. |
HEADERS
Key | Datatype | Required | Description |
---|---|---|---|
Accept | string |
RESPONSES
status: OK
[{"event-time":"\u003cdateTime\u003e","event-type":"\u003cstring\u003e","identifier":{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"\u003cstring\u003e","origin-date":"\u003cdate\u003e","origin-iata-code":"AAA","operational-suffix":"B"},"is-international":"\u003cboolean\u003e","sibt":"\u003cdateTime\u003e","sobt":"\u003cdateTime\u003e","source":"Scanner TRA_12","meta":{"created-at":"1963-11-25T13:52:55.102Z","created-by":{"user-id":"esse consectetur","user-name":"dolor"},"modified-count":96402566,"modified-at":"1993-05-29T18:29:19.503Z"},"location":"TRA_12","secondary-identifiers":[{"created":"\u003cdateTime\u003e","identifier":"\u003cstring\u003e","source":"\u003cstring\u003e"}],"aircraft-type":"A320","aircraft-registration":"\u003cstring\u003e","codeshares":[{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"\u003cstring\u003e","origin-date":"\u003cdate\u003e","origin-iata-code":"AAA","operational-suffix":"B"},{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"\u003cstring\u003e","origin-date":"\u003cdate\u003e","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":"\u003cboolean\u003e","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":"\u003cboolean\u003e","secondary-identifiers":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}]},{"event-time":"\u003cdateTime\u003e","event-type":"\u003cstring\u003e","identifier":{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"\u003cstring\u003e","origin-date":"\u003cdate\u003e","origin-iata-code":"AAA","operational-suffix":"B"},"is-international":"\u003cboolean\u003e","sibt":"\u003cdateTime\u003e","sobt":"\u003cdateTime\u003e","source":"Scanner TRA_12","meta":{"created-at":"1969-08-05T03:37:52.796Z","created-by":{"user-id":"aute adipisicing dolor in","user-name":"dolore ea"},"modified-count":-40318597,"modified-at":"1984-06-17T23:25:48.721Z"},"location":"TRA_12","secondary-identifiers":[{"created":"\u003cdateTime\u003e","identifier":"\u003cstring\u003e","source":"\u003cstring\u003e"}],"aircraft-type":"A320","aircraft-registration":"\u003cstring\u003e","codeshares":[{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"\u003cstring\u003e","origin-date":"\u003cdate\u003e","origin-iata-code":"AAA","operational-suffix":"B"},{"carrier":"ZZ","destination-iata-code":"ZZZ","flight-number":"997","identifier-string":"\u003cstring\u003e","origin-date":"\u003cdate\u003e","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":"\u003cboolean\u003e","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":"\u003cboolean\u003e","secondary-identifiers":[{"value":"\u003cError: Too many levels of nesting to fake this schema\u003e"}]}]}]