Repository navigation
Expand file tree
/
Copy pathopenapi.json
More file actions
5803 lines (5803 loc) · 186 KB
/
Copy pathopenapi.json
File metadata and controls
5803 lines (5803 loc) · 186 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
{
"openapi": "3.1.0",
"info": {
"title": "FlyItalyADSB API",
"version": "2",
"summary": "Live and historical aircraft positions worldwide from the FlyItalyADSB community ADS-B/MLAT network. Commercial use allowed on every plan, Free included; the whole world in one request from the Pro plan (€49/month).",
"description": "Unfiltered aircraft data (no FAA/LADD/BARR filtering; military aircraft included, many of them via MLAT) from a global network of receivers run by volunteers (about 3,200 receivers, densest in North America and Europe; any point on Earth can be queried), as readsb aircraft.json records (the same format as tar1090), plus an ADS-B Exchange v2–compatible variant at /api/aircraft/v2. PIA and LADD aircraft are flagged in the dbFlags bit field (value 4 for PIA, 8 for LADD), so your product can hide them where its market or app store requires. Every endpoint except the key signup needs an X-Api-Key; keys are self-serve (see /auth.md). Plans and limits: https://flyitalyadsb.com/data/api/#piani. The same key works on the MCP server at https://flyitalyadsb.com/mcp. The same data is also served in the ADS-B Exchange v2 format (same paths, key headers and JSON; radius in nautical miles) at https://api.flyitalyadsb.com/api/aircraft/v2, documented at https://flyitalyadsb.com/data/api/docs/adsbx-v2/. Operated by Nesso Labs S.r.l. (ISO/IEC 27001:2022, QMSCERT 160426-7).",
"termsOfService": "https://flyitalyadsb.com/terms/",
"contact": {
"name": "Nesso Labs S.r.l. (FlyItalyADSB)",
"email": "info@flyitalyadsb.com",
"url": "https://flyitalyadsb.com/contact/"
},
"license": {
"name": "Data: CC BY-SA 4.0",
"url": "https://creativecommons.org/licenses/by-sa/4.0/"
}
},
"externalDocs": {
"description": "API page: plans, endpoints, free key",
"url": "https://flyitalyadsb.com/data/api/"
},
"servers": [
{
"url": "https://api.flyitalyadsb.com"
}
],
"security": [
{
"ApiKey": []
}
],
"tags": [
{
"name": "live",
"description": "What the network is receiving now."
},
{
"name": "history",
"description": "Tracks: per-aircraft daily tracks, every day since 2023-03-03 except 2026-05-05 and 2026-05-06, and the first and last point of each flight from 2022-04-10; and the aircraft that flew over a place (since 2026-08-17)."
},
{
"name": "flights",
"description": "Flight history: the flights the network saw (departure and arrival airport, times, duration), built every night from its own tracks since 2026-10-23; yesterday and earlier; not airline schedules. How far back depends on the plan. On Fleet the aircraft and callsign answers also carry today's flights, from takeoffs and landings detected in real time. https://flyitalyadsb.com/data/api/docs/endpoints/#observed-flights"
},
{
"name": "keys",
"description": "Self-serve API keys."
},
{
"name": "account",
"description": "The key's account: the position saved for \"aircraft near me\"."
},
{
"name": "events",
"description": "Emergencies and notable aircraft recorded by the network: emergency squawks, military, \"interesting\". https://flyitalyadsb.com/data/api/docs/alerts/"
},
{
"name": "webhooks",
"description": "Signed push alerts on the same events, paid plans only; on Fleet also the takeoffs and landings of the watched aircraft. https://flyitalyadsb.com/data/api/docs/alerts/"
},
{
"name": "watch",
"description": "The aircraft the account watches for takeoff and landing webhooks (Fleet 25). Not counted as requests. https://flyitalyadsb.com/data/api/docs/alerts/#aircraft"
}
],
"paths": {
"/v2/icao/{hex}": {
"get": {
"summary": "One aircraft by ICAO address",
"description": "Up to 50 comma-separated values (one comma is enough, at the end too) return a list instead, counted as ONE request: `{now, count, total, ac, not_found, matched}`, each value with the same tolerant forms; then `fields` and `with` apply. Without a comma, the single aircraft or the explained 404. https://flyitalyadsb.com/data/api/docs/endpoints/#several-aircraft-in-one-request",
"tags": [
"live"
],
"parameters": [
{
"name": "hex",
"in": "path",
"required": true,
"description": "24-bit ICAO address, hex (case-insensitive, an 0x prefix is accepted). Or up to 50 of them, comma-separated.",
"schema": {
"type": "string"
}
},
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "One value: the aircraft currently seen with this identifier, unchanged; X-Matched-As and X-Matched-Value are present when it was found under another form of the identifier. Comma-separated values: the aircraft in the air now, with `not_found` and `matched`.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
},
"X-Matched-As": {
"$ref": "#/components/headers/X-Matched-As"
},
"X-Matched-Value": {
"$ref": "#/components/headers/X-Matched-Value"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Aircraft"
},
{
"$ref": "#/components/schemas/MultiAircraftList"
}
]
}
}
}
},
"400": {
"description": "More than 50 comma-separated values, or none, or an invalid list option; not counted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "No aircraft with this identifier is in the air and seen by the network right now. The body says what was tried, a hint, `found_as` when the text is another identifier of an airborne aircraft, and `last_seen`, the last observed flight, when there is one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LookupNotFound"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/hex/{hex}": {
"get": {
"summary": "One aircraft by ICAO address (alias of /v2/icao)",
"description": "Up to 50 comma-separated values (one comma is enough, at the end too) return a list instead, counted as ONE request: `{now, count, total, ac, not_found, matched}`, each value with the same tolerant forms; then `fields` and `with` apply. Without a comma, the single aircraft or the explained 404. https://flyitalyadsb.com/data/api/docs/endpoints/#several-aircraft-in-one-request",
"tags": [
"live"
],
"parameters": [
{
"name": "hex",
"in": "path",
"required": true,
"description": "24-bit ICAO address, hex (case-insensitive, an 0x prefix is accepted). Or up to 50 of them, comma-separated.",
"schema": {
"type": "string"
}
},
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "One value: the aircraft currently seen with this identifier, unchanged; X-Matched-As and X-Matched-Value are present when it was found under another form of the identifier. Comma-separated values: the aircraft in the air now, with `not_found` and `matched`.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
},
"X-Matched-As": {
"$ref": "#/components/headers/X-Matched-As"
},
"X-Matched-Value": {
"$ref": "#/components/headers/X-Matched-Value"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Aircraft"
},
{
"$ref": "#/components/schemas/MultiAircraftList"
}
]
}
}
}
},
"400": {
"description": "More than 50 comma-separated values, or none, or an invalid list option; not counted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "No aircraft with this identifier is in the air and seen by the network right now. The body says what was tried, a hint, `found_as` when the text is another identifier of an airborne aircraft, and `last_seen`, the last observed flight, when there is one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LookupNotFound"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/callsign/{callsign}": {
"get": {
"summary": "One aircraft by callsign (flight numbers tried too)",
"description": "Tries, in order: the callsign as written; without the zeros after the airline prefix (CPA0289 -> CPA289); the ICAO form of the airline's IATA code (FR5518 -> RYR5518, 5X1219 -> UPS1219). Some airlines (Ryanair, easyJet, Wizz Air) mostly fly alphanumeric callsigns not linked to the flight number. https://flyitalyadsb.com/data/api/docs/endpoints/#callsign-and-flight-number Up to 50 comma-separated values (one comma is enough, at the end too) return a list instead, counted as ONE request: `{now, count, total, ac, not_found, matched}`, each value with the same tolerant forms; then `fields` and `with` apply. Without a comma, the single aircraft or the explained 404. https://flyitalyadsb.com/data/api/docs/endpoints/#several-aircraft-in-one-request",
"tags": [
"live"
],
"parameters": [
{
"name": "callsign",
"in": "path",
"required": true,
"description": "Callsign as transmitted (e.g. RYR55NU, BAW185) or a flight number (e.g. FR5518, BA0185); case and spaces ignored. Or up to 50 of them, comma-separated.",
"schema": {
"type": "string"
}
},
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "One value: the aircraft currently seen with this identifier, unchanged; X-Matched-As and X-Matched-Value are present when it was found under another form of the identifier. Comma-separated values: the aircraft in the air now, with `not_found` and `matched`.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
},
"X-Matched-As": {
"$ref": "#/components/headers/X-Matched-As"
},
"X-Matched-Value": {
"$ref": "#/components/headers/X-Matched-Value"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Aircraft"
},
{
"$ref": "#/components/schemas/MultiAircraftList"
}
]
}
}
}
},
"400": {
"description": "More than 50 comma-separated values, or none, or an invalid list option; not counted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "No aircraft with this identifier is in the air and seen by the network right now. The body says what was tried, a hint, `found_as` when the text is another identifier of an airborne aircraft, and `last_seen`, the last observed flight, when there is one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LookupNotFound"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/reg/{reg}": {
"get": {
"summary": "One aircraft by registration",
"description": "Up to 50 comma-separated values (one comma is enough, at the end too) return a list instead, counted as ONE request: `{now, count, total, ac, not_found, matched}`, each value with the same tolerant forms; then `fields` and `with` apply. Without a comma, the single aircraft or the explained 404. https://flyitalyadsb.com/data/api/docs/endpoints/#several-aircraft-in-one-request",
"tags": [
"live"
],
"parameters": [
{
"name": "reg",
"in": "path",
"required": true,
"description": "Registration, e.g. MM62179; case, spaces, dashes and dots ignored (SP-GPM = SPGPM). Or up to 50 of them, comma-separated.",
"schema": {
"type": "string"
}
},
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "One value: the aircraft currently seen with this identifier, unchanged; X-Matched-As and X-Matched-Value are present when it was found under another form of the identifier. Comma-separated values: the aircraft in the air now, with `not_found` and `matched`.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
},
"X-Matched-As": {
"$ref": "#/components/headers/X-Matched-As"
},
"X-Matched-Value": {
"$ref": "#/components/headers/X-Matched-Value"
}
},
"content": {
"application/json": {
"schema": {
"oneOf": [
{
"$ref": "#/components/schemas/Aircraft"
},
{
"$ref": "#/components/schemas/MultiAircraftList"
}
]
}
}
}
},
"400": {
"description": "More than 50 comma-separated values, or none, or an invalid list option; not counted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "No aircraft with this identifier is in the air and seen by the network right now. The body says what was tried, a hint, `found_as` when the text is another identifier of an airborne aircraft, and `last_seen`, the last observed flight, when there is one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LookupNotFound"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/find/{text}": {
"get": {
"summary": "One aircraft by callsign, flight number, registration or ICAO address",
"description": "For when you do not know which identifier you have: tries the text as a callsign (with the same forms as /v2/callsign), a registration (dashes ignored) and an ICAO address, and says how each airborne aircraft matched (at most one per kind, the same aircraft once). https://flyitalyadsb.com/data/api/docs/endpoints/#callsign-and-flight-number",
"tags": [
"live"
],
"parameters": [
{
"name": "text",
"in": "path",
"required": true,
"description": "A callsign, flight number, registration or ICAO address.",
"schema": {
"type": "string"
}
}
],
"responses": {
"200": {
"description": "The airborne aircraft that match.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/FindResult"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"404": {
"description": "No aircraft with this identifier is in the air and seen by the network right now. The body says what was tried, a hint, `found_as` when the text is another identifier of an airborne aircraft, and `last_seen`, the last observed flight, when there is one.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/LookupNotFound"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/lat/{lat}/lon/{lon}/dist/{dist}": {
"get": {
"summary": "All aircraft within a radius of a point",
"description": "The radius is in kilometres (ADSBx v2 uses nautical miles). The maximum radius depends on the plan: https://flyitalyadsb.com/data/api/#piani.",
"tags": [
"live"
],
"parameters": [
{
"name": "lat",
"in": "path",
"required": true,
"description": "Latitude, decimal degrees.",
"schema": {
"type": "number"
}
},
{
"name": "lon",
"in": "path",
"required": true,
"description": "Longitude, decimal degrees.",
"schema": {
"type": "number"
}
},
{
"name": "dist",
"in": "path",
"required": true,
"description": "Radius in km.",
"schema": {
"type": "number",
"minimum": 0
}
},
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "Aircraft within the radius.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AircraftList"
}
}
}
},
"400": {
"description": "lat, lon or dist is not a number, or an invalid list option.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"description": "The radius is above the plan's maximum (the body carries max_radius_km and a link to the plans).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/box/{lat_south}/{lat_north}/{lon_west}/{lon_east}": {
"get": {
"summary": "All aircraft in a latitude/longitude box",
"description": "Edges included. lon_west greater than lon_east crosses the antimeridian (170/-170 = from 170 E to 170 W). The plan's maximum radius applies to the half-diagonal, the great-circle distance from the centre of the box to its farthest point; above it, the same 403 as the radius. One request. https://flyitalyadsb.com/data/api/docs/endpoints/#aircraft-in-a-box",
"tags": [
"live"
],
"parameters": [
{
"name": "lat_south",
"in": "path",
"required": true,
"description": "Southern edge, decimal degrees, below lat_north.",
"schema": {
"type": "number",
"minimum": -90,
"maximum": 90
}
},
{
"name": "lat_north",
"in": "path",
"required": true,
"description": "Northern edge, decimal degrees.",
"schema": {
"type": "number",
"minimum": -90,
"maximum": 90
}
},
{
"name": "lon_west",
"in": "path",
"required": true,
"description": "Western edge, decimal degrees.",
"schema": {
"type": "number",
"minimum": -180,
"maximum": 180
}
},
{
"name": "lon_east",
"in": "path",
"required": true,
"description": "Eastern edge, decimal degrees; different from lon_west.",
"schema": {
"type": "number",
"minimum": -180,
"maximum": 180
}
},
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "Aircraft in the box.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AircraftList"
}
}
}
},
"400": {
"description": "An edge is not a number or out of range, lat_south is not below lat_north, lon_west equals lon_east, or an invalid list option; not counted.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"403": {
"description": "The half-diagonal is above the plan's maximum radius (the body carries max_radius_km and a link to the plans).",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/mil": {
"get": {
"summary": "Military aircraft",
"description": "Aircraft whose dbFlags has the military bit (bit 0).",
"tags": [
"live"
],
"parameters": [
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "Matching aircraft.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AircraftList"
}
}
}
},
"400": {
"description": "An invalid list option, not counted: an unknown name in `fields` (the body carries `allowed` and `presets`) or a `with` other than `route`. The body links the docs.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/pia": {
"get": {
"summary": "PIA aircraft",
"description": "Aircraft whose dbFlags has the PIA (Privacy ICAO Address) bit (bit 2).",
"tags": [
"live"
],
"parameters": [
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "Matching aircraft.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
}
},
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/AircraftList"
}
}
}
},
"400": {
"description": "An invalid list option, not counted: an unknown name in `fields` (the body carries `allowed` and `presets`) or a `with` other than `route`. The body links the docs.",
"content": {
"application/json": {
"schema": {
"$ref": "#/components/schemas/Error"
}
}
}
},
"401": {
"$ref": "#/components/responses/Unauthorized"
},
"429": {
"$ref": "#/components/responses/TooManyRequests"
},
"503": {
"$ref": "#/components/responses/Unavailable"
}
}
}
},
"/v2/ladd": {
"get": {
"summary": "LADD aircraft",
"description": "Aircraft whose dbFlags has the LADD bit (bit 3).",
"tags": [
"live"
],
"parameters": [
{
"name": "fields",
"in": "query",
"required": false,
"description": "Only these fields of each aircraft, comma-separated. `light` = hex, flight, r, t, lat, lon, alt_baro, gs, track, squawk, seen_pos, category, baro_rate, seen (fields are only added at the end, never removed). Presets and names can be mixed (`light,rssi`). `hex` is always present and first; a field the aircraft does not have is missing, as in the full record. An unknown name: 400 with `allowed` and `presets`, not counted. https://flyitalyadsb.com/data/api/docs/endpoints/#list-options",
"schema": {
"type": "string",
"examples": [
"light",
"hex,flight,lat,lon,alt_baro",
"light,rssi"
]
}
},
{
"name": "with",
"in": "query",
"required": false,
"description": "`route` adds `route` to each aircraft whose callsign has a known route: the most frequent one in the latest 7 days of flight history (not a schedule). The field is absent when no route is known. Any other value: 400, not counted.",
"schema": {
"type": "string",
"enum": [
"route"
]
}
}
],
"responses": {
"200": {
"description": "Matching aircraft.",
"headers": {
"X-FIA-Plan": {
"$ref": "#/components/headers/X-FIA-Plan"
},
"X-FIA-Used-Month": {
"$ref": "#/components/headers/X-FIA-Used-Month"
}
},