Check the setup
- Python 3.10 or newer
- A notebook environment such as Jupyter or Google Colab
- An internet connection
Civil aviation accident and incident investigations for building safety monitors and event-history tools.
From source to product signal
NTSB CAROL and the aviation query page expose accident records with aircraft, location, and injury severity. Start with one year and one state. Preliminary reports change, this is not a live ADS-B feed, and it is not a complete global accident census.
Install the packages, then run the notebook cell.
python -m pip install pandas requests
import pandas as pd
import requests
response = requests.get(
"https://data.ntsb.gov/carol-repgen/api/Aviation/ReportMain/GenerateRecentFile/6",
params={"fileType": "json"},
timeout=60,
)
response.raise_for_status()
payload = response.json()
accidents = pd.DataFrame(payload if isinstance(payload, list) else payload.get("data", payload))
accidents["retrieved_at_utc"] = pd.Timestamp.now(tz="UTC")
print(accidents.head())Test a useful signal
Test whether an NTSB extract can power a bounded safety-event inbox.
National Transportation Safety Board is a government source. Last verified 2026-08-18. Temporal coverage: historical and current NTSB civil aviation investigations.