{
  "openapi": "3.0.1",
  "info": {
    "title": "$3/1K | FAA Aircraft Registry Scraper - N-Number Search",
    "description": "Search every US aircraft in the FAA registry by owner, manufacturer, model, state, ZIP or year, or look up N-numbers: owner, make, model, engine, Mode S, status and dates. Also deregistered, reserved, dealers. Made by ScraperCompany.",
    "version": "1.0",
    "x-build-id": "ST7EeSWAjLByQVLz7"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapercompany~faa-aircraft-registry-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapercompany-faa-aircraft-registry-scraper",
        "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/scrapercompany~faa-aircraft-registry-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapercompany-faa-aircraft-registry-scraper",
        "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/scrapercompany~faa-aircraft-registry-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapercompany-faa-aircraft-registry-scraper",
        "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": [
              "registration",
              "documents",
              "records",
              "search"
            ],
            "type": "string",
            "description": "What to read for each N-number, or <b>Search the registry</b> to find aircraft by owner, manufacturer, model, place or year (the N-numbers list is then ignored).",
            "default": "registration"
          },
          "nNumbers": {
            "title": "N-numbers",
            "type": "array",
            "description": "US tail numbers, one per line, such as <code>N172SP</code>. The N is required.",
            "default": [
              "N172SP"
            ],
            "items": {
              "type": "string"
            }
          },
          "dataset": {
            "title": "Registry table",
            "enum": [
              "registered",
              "deregistered",
              "reserved",
              "dealers",
              "documents",
              "models",
              "engines"
            ],
            "type": "string",
            "description": "Which part of the FAA registry to search.",
            "default": "registered"
          },
          "name": {
            "title": "Owner or registrant name",
            "type": "string",
            "description": "Names that start with this. The FAA writes people as <code>LAST FIRST</code>, e.g. <code>SMITH JOHN</code>."
          },
          "manufacturer": {
            "title": "Manufacturer",
            "type": "string",
            "description": "Manufacturers that start with this, e.g. <code>Cessna</code>."
          },
          "model": {
            "title": "Model",
            "type": "string",
            "description": "Models that start with this, e.g. <code>172</code>."
          },
          "state": {
            "title": "State",
            "type": "string",
            "description": "Two-letter state of the owner, e.g. <code>TX</code>."
          },
          "city": {
            "title": "City",
            "type": "string",
            "description": "Owner's city, exactly, e.g. <code>Austin</code>."
          },
          "zip": {
            "title": "ZIP code",
            "type": "string",
            "description": "Five-digit ZIP code of the owner."
          },
          "year_from": {
            "title": "Built from (year)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Year manufactured, from."
          },
          "year_to": {
            "title": "Built up to (year)",
            "minimum": 1900,
            "maximum": 2100,
            "type": "integer",
            "description": "Year manufactured, up to."
          },
          "type_aircraft": {
            "title": "Aircraft type",
            "enum": [
              "Glider",
              "Balloon",
              "Blimp/Dirigible",
              "Fixed Wing Single-Engine",
              "Fixed Wing Multi-Engine",
              "Rotorcraft",
              "Weight-Shift-Control",
              "Powered Parachute",
              "Gyroplane",
              "Hybrid Lift",
              "Other"
            ],
            "type": "string",
            "description": "Fixed wing, rotorcraft, glider, balloon and so on."
          },
          "type_engine": {
            "title": "Engine type",
            "enum": [
              "None",
              "Reciprocating",
              "Turbo-prop",
              "Turbo-shaft",
              "Turbo-jet",
              "Turbo-fan",
              "Ramjet",
              "2 Cycle",
              "4 Cycle",
              "Unknown",
              "Electric",
              "Rotary"
            ],
            "type": "string",
            "description": "Reciprocating, turbo-fan, electric and so on."
          },
          "type_registrant": {
            "title": "Registered to",
            "enum": [
              "Individual",
              "Partnership",
              "Corporation",
              "Co-Owned",
              "Government",
              "LLC",
              "Non-Citizen Corporation",
              "Non-Citizen Co-Owned"
            ],
            "type": "string",
            "description": "Individual, corporation, LLC, government and so on."
          },
          "status_code": {
            "title": "Status code",
            "type": "string",
            "description": "FAA status code, e.g. <code>V</code> for a valid registration."
          },
          "seats_from": {
            "title": "Seats from",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "At least this many seats."
          },
          "seats_to": {
            "title": "Seats up to",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "At most this many seats."
          },
          "maxPages": {
            "title": "Pages",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "How many result pages (up to 100 records each) to fetch (1-100). Each page is a separate request; paging stops when no records are left.",
            "default": 1
          },
          "page": {
            "title": "Start page",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Result page to start from.",
            "default": 1
          },
          "customRequests": {
            "title": "Custom requests (advanced)",
            "type": "array",
            "description": "Optional list of JSON objects, one request each, using the field names shown above. Each object is merged over the options above, so you only need to give what differs. Add <code>\"mode\": \"documents\"</code> or <code>\"mode\": \"records\"</code> to read something else for that number.Example: <code>{\"n_number\":\"N100HY\"}</code>"
          },
          "includeErrors": {
            "title": "Include failed requests in the dataset",
            "type": "boolean",
            "description": "When on, a request that fails (for example an unknown property id) is saved as a dataset item with an <code>error</code> message so you can see what went wrong. Failed requests are never charged.",
            "default": true
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 8,
            "type": "integer",
            "description": "How many requests run at the same time (1-8). Parallel runs share one limit, so extra requests wait for a free slot instead of failing.",
            "default": 3
          },
          "maxRetries": {
            "title": "Retries per request",
            "minimum": 0,
            "maximum": 5,
            "type": "integer",
            "description": "How many times a request that failed for a temporary reason is tried again right away. A request still failing then gets one more try at the end of the run, after a 30-second pause. Invalid input is never retried.",
            "default": 2
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}