let t = Number.RoundUp((Number.Round(Number.From(DateTime.LocalNow()), 5) -( 25569 + 0.200) ) * 86400),
Source = Json.Document(Web.Contents("https://api.flightradar24.com/common/v1/airport.json?code=igt&plugin[]=&plugin-setting[schedule][mode]=&plugin-setting[schedule][timestamp]=" & Text.From(t) & "&
page=2&limit=100&fleet=&token=")),
result = Source[result][response][airport][pluginData][schedule],
#"Converted to Table" = Record.ToTable(result),
#"Expanded {0}" = Table.ExpandRecordColumn(#"Converted to Table", "Value", {"data"}, {"Value.data"}),
#"Filtered Rows" = Table.SelectRows(#"Expanded {0}", each ([Name] = "arrivals" or [Name] = "departures")),
#"Changed Type1" = Table.TransformColumns(#"Filtered Rows",{{"Value.data", Table.FromRecords}}),
#"Expanded {0}1" = Table.ExpandTableColumn(#"Changed Type1", "Value.data", {"flight"}, {"flight"}),
#"Expanded {0}2" = Table.ExpandRecordColumn(#"Expanded {0}1", "flight", {"identification", "time", "aircraft", "owner", "airline", "airport", "status"}),
Custom = Table.AddColumn(#"Expanded {0}2", "a", each {[Name], if [Name] = "arrivals" then [time][scheduled][arrival] else [time][scheduled][departure], [identification][number][default],if [Name] = "arrivals" then [airport][origin][position][region][city] else [airport][destination][position][region][city],[airline][name], try "(" & [aircraft][model][code] & ") " & [aircraft][model][text] otherwise null, if [Name] = "arrivals" then [status][text] else [status][text]})[a],
Custom2 = Table.FromRows( Custom,{"AR/DEP","TIME","FLIGHT","FROM/TO","AIRLINE","AIRCRAFT","STATUS"}),
#"Uppercased Text" = Table.TransformColumns(Custom2,{{"TIME", each DateTime.From( _/ 86400+ 25569 +0.12500 )}}),
#"Changed Type" = Table.TransformColumnTypes(#"Uppercased Text",{{"TIME", type time}}),
k = Table.Sort(#"Changed Type",{{"AR/DEP", Order.Ascending}, {"TIME", Order.Ascending}})
in
k |