{
  "openapi": "3.0.1",
  "info": {
    "title": "US Airport & Aviation Facility Leads Scraper (FAA)",
    "description": "Scrape every US airport, heliport & seaplane base from the official FAA NASR database: facility name, FAA/ICAO identifier, type, public/private use, owner & manager names with phone numbers, fuel, runways, FAR Part 139 status, services, GPS, lead score & monitoring. No browser, no API key.",
    "version": "0.1",
    "x-build-id": "kbOyiDQJr32CwuJit"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapesage~us-aviation-facility-leads/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapesage-us-aviation-facility-leads",
        "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/scrapesage~us-aviation-facility-leads/runs": {
      "post": {
        "operationId": "runs-sync-scrapesage-us-aviation-facility-leads",
        "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/scrapesage~us-aviation-facility-leads/run-sync": {
      "post": {
        "operationId": "run-sync-scrapesage-us-aviation-facility-leads",
        "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": {
          "outputMode": {
            "title": "Output mode",
            "enum": [
              "facilities",
              "owners"
            ],
            "type": "string",
            "description": "‘Aviation facilities’ returns one record per airport/heliport/seaplane base (with owner & manager contacts). ‘Facility owners (grouped)’ aggregates facilities by owner into portfolios (facility count, types, states) — ideal for airport authorities, government & M&A targeting.",
            "default": "facilities"
          },
          "states": {
            "title": "States / territories",
            "type": "array",
            "description": "Two-letter state/territory codes (e.g. CA, TX, NY, AK, PR). Leave empty to scan all 50 states + DC + territories (~19,400 facilities).",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "facilityTypes": {
            "title": "Facility types",
            "type": "array",
            "description": "Limit to specific landing-facility types. Empty = all types.",
            "items": {
              "type": "string",
              "enum": [
                "AIRPORT",
                "HELIPORT",
                "SEAPLANE BASE",
                "GLIDERPORT",
                "ULTRALIGHT",
                "BALLOONPORT"
              ],
              "enumTitles": [
                "Airport",
                "Heliport",
                "Seaplane base",
                "Gliderport",
                "Ultralight",
                "Balloonport"
              ]
            },
            "default": []
          },
          "publicUseOnly": {
            "title": "Public-use only",
            "type": "boolean",
            "description": "Only return facilities open to the public (facility use = Public). Leave OFF to also include the ~14,000 private airfields, heliports & strips (owners are individuals, farms & companies — great for aircraft, hangar & insurance leads).",
            "default": false
          },
          "activeOnly": {
            "title": "Operational only",
            "type": "boolean",
            "description": "Only return facilities with an Operational status. Turn OFF to also include closed facilities.",
            "default": true
          },
          "hasFuelOnly": {
            "title": "Has fuel on field (FBO targets)",
            "type": "boolean",
            "description": "Only return facilities that sell fuel — the strongest signal of an on-field FBO / fuel operation (~3,900 facilities). Ideal for aviation-fuel, FBO and ground-service vendors.",
            "default": false
          },
          "far139Only": {
            "title": "FAR Part 139 certified only",
            "type": "boolean",
            "description": "Only return airports certificated under FAR Part 139 (commercial passenger / airline service — ~520 airports). Highest-budget airport authorities.",
            "default": false
          },
          "hasPhoneOnly": {
            "title": "Has phone contact only",
            "type": "boolean",
            "description": "Only return facilities that have an owner or manager phone number on file (~98% of facilities do).",
            "default": false
          },
          "minRunwayFt": {
            "title": "Minimum longest-runway length (ft)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return facilities whose longest runway is at least this many feet (e.g. 5000 to target jet-capable airports)."
          },
          "cityQuery": {
            "title": "City contains",
            "type": "string",
            "description": "Keep only facilities whose city contains this term (substring match)."
          },
          "nameQuery": {
            "title": "Keyword (name / city / owner / ID)",
            "type": "string",
            "description": "Free-text keyword matched across facility name, city, owner name and FAA/ICAO identifier."
          },
          "ownerQuery": {
            "title": "Owner / manager contains",
            "type": "string",
            "description": "Filter by owner or manager name — e.g. ‘County’, ‘City of’, ‘Aviation’, ‘University’. Substring match."
          },
          "minLeadScore": {
            "title": "Minimum lead score",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "Only return records with a lead score (0–100) at or above this value."
          },
          "sortBy": {
            "title": "Sort by",
            "enum": [
              "leadScore",
              "runwayLength",
              "newest",
              "name"
            ],
            "type": "string",
            "description": "Order of results before the max-results cap is applied.",
            "default": "leadScore"
          },
          "maxResults": {
            "title": "Max results",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of records to return (facilities or owner profiles depending on output mode).",
            "default": 1000
          },
          "includeRemarks": {
            "title": "Include remarks",
            "type": "boolean",
            "description": "Attach the FAA textual remarks (operational notes & cautions) for each facility as a remarks[] array. Off by default to keep records lean.",
            "default": false
          },
          "includeRawFields": {
            "title": "Include raw source line",
            "type": "boolean",
            "description": "Attach the complete raw fixed-width FAA APT record line to every facility, so no source data is ever lost.",
            "default": false
          },
          "cycleDate": {
            "title": "NASR cycle date (YYYY-MM-DD)",
            "type": "string",
            "description": "Optional. Pin a specific FAA NASR 28-day subscription cycle (e.g. 2026-06-11). Leave empty to auto-use the currently effective cycle."
          },
          "monitorMode": {
            "title": "Monitor mode (only new / changed)",
            "type": "boolean",
            "description": "Remember what was returned on previous runs (per monitor key) and emit only NEW facilities (or owners whose facility count changed). Perfect for a recurring Apify Schedule that feeds newly-activated airports & status changes into your CRM. Works alongside Apify scheduling — they are independent.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Names the saved monitor state, so different filter setups track new records independently. Use a distinct key per saved configuration.",
            "default": "default"
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Optional. The FAA NFDC open-data files download directly from Apify with no proxy; you can enable one if you prefer.",
            "default": {
              "useApifyProxy": false
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}