{
  "openapi": "3.0.1",
  "info": {
    "title": "Live Flights API - Planes Near Any Airport, Routes, ETA",
    "description": "Live aircraft arriving at, leaving or flying over any airport: one row per plane with callsign, airline, aircraft type, altitude, speed, distance and ETA. No API key, no login, no proxy: ADSB.lol open data (ODbL) + OpenFlights airlines.",
    "version": "0.1",
    "x-build-id": "QDQ3CdgGIyLTYXa1k"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/martin10291~live-flights-near-airport/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-martin10291-live-flights-near-airport",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/martin10291~live-flights-near-airport/runs": {
      "post": {
        "operationId": "runs-sync-martin10291-live-flights-near-airport",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/martin10291~live-flights-near-airport/run-sync": {
      "post": {
        "operationId": "run-sync-martin10291-live-flights-near-airport",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "airport",
              "area",
              "flight"
            ],
            "type": "string",
            "description": "airport = live aircraft within the radius of each airport, with arrival/departure/overflight and ETA; area = live aircraft around any latitude/longitude; flight = find specific aircraft by callsign, registration or ICAO hex code.",
            "default": "airport"
          },
          "airports": {
            "title": "Airports",
            "type": "array",
            "description": "Airport mode: IATA (JFK, LHR, SOF) or ICAO (KJFK, EGLL, LBSF) codes, any country, up to 50. Empty = the example airports JFK, LHR and FRA.",
            "items": {
              "type": "string"
            }
          },
          "radiusNm": {
            "title": "Radius (nautical miles)",
            "minimum": 1,
            "maximum": 250,
            "type": "integer",
            "description": "Airport and area modes: how far around the airport or point to look (1-250 nm). 30 nm covers final approach and initial climb.",
            "default": 30
          },
          "directions": {
            "title": "Only these directions",
            "type": "array",
            "description": "Airport mode filter. Any of: arrival, departure, overflight, likely arrival, likely departure, on ground, unknown. Empty = all aircraft.",
            "items": {
              "type": "string"
            }
          },
          "includeOnGround": {
            "title": "Include aircraft on the ground",
            "type": "boolean",
            "description": "Include aircraft that are taxiing or parked at the airport (they report 'ground' instead of an altitude).",
            "default": true
          },
          "maxAltitudeFt": {
            "title": "Max altitude (feet)",
            "minimum": 0,
            "maximum": 60000,
            "type": "integer",
            "description": "Optional: skip airborne aircraft above this altitude, e.g. 15000 to drop high overflights. Empty = no limit."
          },
          "maxPerAirport": {
            "title": "Max aircraft per airport",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit of rows per airport or point (1-1000). Rows are sorted: arrivals by ETA first, then departures, then the rest by distance.",
            "default": 100
          },
          "latitude": {
            "title": "Latitude (area mode)",
            "type": "string",
            "description": "Area mode: center latitude in decimal degrees, e.g. 50.03."
          },
          "longitude": {
            "title": "Longitude (area mode)",
            "type": "string",
            "description": "Area mode: center longitude in decimal degrees, e.g. 8.57."
          },
          "flights": {
            "title": "Flights / aircraft (flight mode)",
            "type": "array",
            "description": "Flight mode: ATC callsigns (BAW123, THY3UG), registrations (N123AB, TC-JVK) or ICAO 24-bit hex codes (4baacb). Up to 100.",
            "items": {
              "type": "string"
            }
          },
          "includeRoutes": {
            "title": "Add route (origin, destination, airline)",
            "type": "boolean",
            "description": "Reserved: route lookup is off since 2026-11-20 (the route source does not allow redistribution). Direction comes from track, altitude and climb rate; airline from the callsign prefix.",
            "default": true
          },
          "maxRouteLookups": {
            "title": "Max route lookups per run",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Upper limit of new callsign route lookups per run (0-1000). Routes are cached for 12 hours, so repeated runs are fast.",
            "default": 300
          },
          "onlyNew": {
            "title": "Only new aircraft",
            "type": "boolean",
            "description": "Return only aircraft not returned in the last 6 hours by a run with the same Monitor ID. Schedule it every 5-15 minutes to get each new arrival or departure once.",
            "default": false
          },
          "monitorId": {
            "title": "Monitor ID",
            "type": "string",
            "description": "Name of the saved state for Only new mode. Use a different ID for each watchlist.",
            "default": "default"
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}