{
  "openapi": "3.0.1",
  "info": {
    "title": "NTSB Scraper | Aviation Accident Reports",
    "description": "NTSB scraper for aviation accident and incident reports: probable cause, findings, narratives, aircraft, pilot, weather, injuries and report PDF links. Search by case number, tail number, date, state, make or severity. 11 case numbers gave 15 rows in 11 seconds, 80 fields each. No account needed.",
    "version": "1.0",
    "x-build-id": "yLBLjjJs8Q615cmdE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/silentflow~ntsb-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-silentflow-ntsb-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/silentflow~ntsb-scraper/runs": {
      "post": {
        "operationId": "runs-sync-silentflow-ntsb-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/silentflow~ntsb-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-silentflow-ntsb-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": {
          "investigationIds": {
            "title": "🔎 NTSB case numbers or URLs",
            "type": "array",
            "description": "The investigations to read, one per line, all in the same run: NTSB case numbers (<code>CEN24LA011</code>, <code>DCA24MA063</code>, old ones such as <code>SEA75DYE29</code> too), investigation pages (<code>https://web.ntsb.gov/investigations/?ntsbnumber=CEN24LA011</code>), docket or report PDF links.<br><br>Every case returns all its rows (one per aircraft involved), whatever <b>Max results</b> says. Search filters do not apply to this list.",
            "items": {
              "type": "string"
            }
          },
          "registrations": {
            "title": "✈️ Aircraft registrations (tail numbers)",
            "type": "array",
            "description": "Tail numbers whose accident and incident history you want, one per line: <code>N2611</code>, <code>N6JA</code>, foreign marks such as <code>C-GPTO</code>. A US number typed without its N (<code>2611</code>) is read as <code>N2611</code>.<br><br>Each one returns every NTSB investigation of that aircraft, newest first, up to <b>Max results</b> per tail number, with only that aircraft's row when two aircraft were involved. The search filters below narrow this history (for example only fatal accidents).",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "🔤 Words in the report",
            "type": "string",
            "description": "Keep investigations whose NTSB narrative (preliminary, factual or analysis) contains this text: <code>carburetor ice</code>, <code>wire strike</code>, <code>bird</code>, <code>spatial disorientation</code>. Case does not matter; several words are searched as one phrase.<br><br>Searching the narratives takes the NTSB 15 to 20 seconds, then rows come as fast as usual."
          },
          "dateFrom": {
            "title": "📅 From date",
            "type": "string",
            "description": "Keep events on or after this date: <code>2026-01-01</code>, or a span back from today such as <code>7 days</code>, <code>30 days</code>, <code>6 months</code>. Use <code>7 days</code> on a weekly schedule to get each week's new investigations."
          },
          "dateTo": {
            "title": "📅 To date",
            "type": "string",
            "description": "Keep events on or before this date: <code>2025-12-31</code>. Leave empty to search up to today."
          },
          "state": {
            "title": "📍 US state",
            "type": "string",
            "description": "Keep events in one US state or territory. Pick it in the list or type its code or name (<code>TX</code>, <code>Texas</code>). Leave empty for every place, abroad included."
          },
          "make": {
            "title": "🏭 Aircraft make",
            "type": "string",
            "description": "Keep aircraft whose maker contains this text: <code>Cessna</code>, <code>Cirrus</code>, <code>Robinson</code>, <code>Boeing</code>. The NTSB writes makers in several ways (<code>CESSNA</code>, <code>CESSNA AIRCRAFT CO</code>): a short word catches them all."
          },
          "model": {
            "title": "🛩️ Aircraft model",
            "type": "string",
            "description": "Keep aircraft whose model contains this text: <code>172</code> (every Cessna 172 variant), <code>SR22</code>, <code>R44</code>, <code>737</code>."
          },
          "severity": {
            "title": "🩹 Highest injury",
            "enum": [
              "any",
              "fatal",
              "serious",
              "minor",
              "none"
            ],
            "type": "string",
            "description": "Keep events by their most severe injury: fatal, serious, minor, or none.",
            "default": "any"
          },
          "maxItems": {
            "title": "🔢 Max results",
            "minimum": 1,
            "type": "integer",
            "description": "The most rows a search returns, and the most investigations returned per tail number (newest first). The list of case numbers is never cut: every case you enter returns its rows.",
            "default": 100
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}