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

KeyDatatypeRequiredDescription
fromstringThe 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.
tostringThe 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-typestringThe event type:
max-resultsstringThe maximum number of results.

HEADERS

KeyDatatypeRequiredDescription
Acceptstring

RESPONSES

status: OK

[{&quot;event-time&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;event-type&quot;:&quot;\u003cstring\u003e&quot;,&quot;identifier&quot;:{&quot;carrier&quot;:&quot;ZZ&quot;,&quot;destination-iata-code&quot;:&quot;ZZZ&quot;,&quot;flight-number&quot;:&quot;997&quot;,&quot;identifier-string&quot;:&quot;\u003cstring\u003e&quot;,&quot;origin-date&quot;:&quot;\u003cdate\u003e&quot;,&quot;origin-iata-code&quot;:&quot;AAA&quot;,&quot;operational-suffix&quot;:&quot;B&quot;},&quot;is-international&quot;:&quot;\u003cboolean\u003e&quot;,&quot;sibt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;sobt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;source&quot;:&quot;Scanner TRA_12&quot;,&quot;meta&quot;:{&quot;created-at&quot;:&quot;1963-11-25T13:52:55.102Z&quot;,&quot;created-by&quot;:{&quot;user-id&quot;:&quot;esse consectetur&quot;,&quot;user-name&quot;:&quot;dolor&quot;},&quot;modified-count&quot;:96402566,&quot;modified-at&quot;:&quot;1993-05-29T18:29:19.503Z&quot;},&quot;location&quot;:&quot;TRA_12&quot;,&quot;secondary-identifiers&quot;:[{&quot;created&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;identifier&quot;:&quot;\u003cstring\u003e&quot;,&quot;source&quot;:&quot;\u003cstring\u003e&quot;}],&quot;aircraft-type&quot;:&quot;A320&quot;,&quot;aircraft-registration&quot;:&quot;\u003cstring\u003e&quot;,&quot;codeshares&quot;:[{&quot;carrier&quot;:&quot;ZZ&quot;,&quot;destination-iata-code&quot;:&quot;ZZZ&quot;,&quot;flight-number&quot;:&quot;997&quot;,&quot;identifier-string&quot;:&quot;\u003cstring\u003e&quot;,&quot;origin-date&quot;:&quot;\u003cdate\u003e&quot;,&quot;origin-iata-code&quot;:&quot;AAA&quot;,&quot;operational-suffix&quot;:&quot;B&quot;},{&quot;carrier&quot;:&quot;ZZ&quot;,&quot;destination-iata-code&quot;:&quot;ZZZ&quot;,&quot;flight-number&quot;:&quot;997&quot;,&quot;identifier-string&quot;:&quot;\u003cstring\u003e&quot;,&quot;origin-date&quot;:&quot;\u003cdate\u003e&quot;,&quot;origin-iata-code&quot;:&quot;AAA&quot;,&quot;operational-suffix&quot;:&quot;B&quot;}],&quot;flight-segments&quot;:[{&quot;identifier&quot;:{&quot;carrier&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;destination-iata-code&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;flight-number&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;identifier-string&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;origin-date&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;origin-iata-code&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;operational-suffix&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;is-international&quot;:&quot;\u003cboolean\u003e&quot;,&quot;secondary-identifiers&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},{&quot;identifier&quot;:{&quot;carrier&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;destination-iata-code&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;flight-number&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;identifier-string&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;origin-date&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;origin-iata-code&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;operational-suffix&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;is-international&quot;:&quot;\u003cboolean\u003e&quot;,&quot;secondary-identifiers&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}]},{&quot;event-time&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;event-type&quot;:&quot;\u003cstring\u003e&quot;,&quot;identifier&quot;:{&quot;carrier&quot;:&quot;ZZ&quot;,&quot;destination-iata-code&quot;:&quot;ZZZ&quot;,&quot;flight-number&quot;:&quot;997&quot;,&quot;identifier-string&quot;:&quot;\u003cstring\u003e&quot;,&quot;origin-date&quot;:&quot;\u003cdate\u003e&quot;,&quot;origin-iata-code&quot;:&quot;AAA&quot;,&quot;operational-suffix&quot;:&quot;B&quot;},&quot;is-international&quot;:&quot;\u003cboolean\u003e&quot;,&quot;sibt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;sobt&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;source&quot;:&quot;Scanner TRA_12&quot;,&quot;meta&quot;:{&quot;created-at&quot;:&quot;1969-08-05T03:37:52.796Z&quot;,&quot;created-by&quot;:{&quot;user-id&quot;:&quot;aute adipisicing dolor in&quot;,&quot;user-name&quot;:&quot;dolore ea&quot;},&quot;modified-count&quot;:-40318597,&quot;modified-at&quot;:&quot;1984-06-17T23:25:48.721Z&quot;},&quot;location&quot;:&quot;TRA_12&quot;,&quot;secondary-identifiers&quot;:[{&quot;created&quot;:&quot;\u003cdateTime\u003e&quot;,&quot;identifier&quot;:&quot;\u003cstring\u003e&quot;,&quot;source&quot;:&quot;\u003cstring\u003e&quot;}],&quot;aircraft-type&quot;:&quot;A320&quot;,&quot;aircraft-registration&quot;:&quot;\u003cstring\u003e&quot;,&quot;codeshares&quot;:[{&quot;carrier&quot;:&quot;ZZ&quot;,&quot;destination-iata-code&quot;:&quot;ZZZ&quot;,&quot;flight-number&quot;:&quot;997&quot;,&quot;identifier-string&quot;:&quot;\u003cstring\u003e&quot;,&quot;origin-date&quot;:&quot;\u003cdate\u003e&quot;,&quot;origin-iata-code&quot;:&quot;AAA&quot;,&quot;operational-suffix&quot;:&quot;B&quot;},{&quot;carrier&quot;:&quot;ZZ&quot;,&quot;destination-iata-code&quot;:&quot;ZZZ&quot;,&quot;flight-number&quot;:&quot;997&quot;,&quot;identifier-string&quot;:&quot;\u003cstring\u003e&quot;,&quot;origin-date&quot;:&quot;\u003cdate\u003e&quot;,&quot;origin-iata-code&quot;:&quot;AAA&quot;,&quot;operational-suffix&quot;:&quot;B&quot;}],&quot;flight-segments&quot;:[{&quot;identifier&quot;:{&quot;carrier&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;destination-iata-code&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;flight-number&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;identifier-string&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;origin-date&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;origin-iata-code&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;operational-suffix&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;is-international&quot;:&quot;\u003cboolean\u003e&quot;,&quot;secondary-identifiers&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]},{&quot;identifier&quot;:{&quot;carrier&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;destination-iata-code&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;flight-number&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;identifier-string&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;origin-date&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;origin-iata-code&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;},&quot;operational-suffix&quot;:{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}},&quot;is-international&quot;:&quot;\u003cboolean\u003e&quot;,&quot;secondary-identifiers&quot;:[{&quot;value&quot;:&quot;\u003cError: Too many levels of nesting to fake this schema\u003e&quot;}]}]}]