API AccessAccess dataset files directly from scripts, code, or AI agents.
Browse dataset files
Access dataset files directly from scripts, code, or AI agents.
Dataset Files
Each file has a stable URL (r-link) that you can use directly in scripts, apps, or AI agents. These URLs are permanent and safe to hardcode.
/fivethirtyeight/police-deaths/
https://datahub.io/fivethirtyeight/police-deaths/_r/-/README.md
https://datahub.io/fivethirtyeight/police-deaths/_r/-/data/all_data.csv
https://datahub.io/fivethirtyeight/police-deaths/_r/-/data/clean_data.csv
https://datahub.io/fivethirtyeight/police-deaths/_r/-/datapackage.json
Key Files
Start with these files — they give you everything you need to understand and access the dataset.
datapackage.json— metadata & schema
https://datahub.io/fivethirtyeight/police-deaths/_r/-/datapackage.json
README.md— documentation
https://datahub.io/fivethirtyeight/police-deaths/_r/-/README.md
Typical Usage
- 1. Fetch datapackage.json to inspect schema and resources
- 2. Download data resources listed in datapackage.json
- 3. Read README.md for full context
Data Previews
all_data
Loading data...
Schema
| name | type | format |
|---|---|---|
| person | string | default |
| dept | string | default |
| eow | string | default |
| cause | string | default |
clean_data
Loading data...
Schema
| name | type | format |
|---|---|---|
| person | string | default |
| dept | string | default |
| eow | string | default |
| cause | string | default |
| cause_short | string | default |
| date | integer | default |
| year | string | default |
| canine | string | default |
| dept_name | date | default |
| state | integer | default |
Data Files
| File | Description | Size | Last modified | Download |
|---|---|---|---|---|
all_data | 2.87 MB | about 1 month ago | all_data | |
clean_data | 4.5 MB | about 1 month ago | clean_data |
| Files | Size | Format | Created | Updated | License | Source |
|---|---|---|---|---|---|---|
| 2 | 7.37 MB | csv | about 1 month ago | FiveThirtyEight - Police Deaths |
Police Deaths
This directory contains the data and code behind the story The Dallas Shooting Was Among The Deadliest For Police In U.S. History. The primary source of data is the Officer Down Memorial Page (ODMP), started in 1996 by a college student who is now a police officer and who continues to maintain the database.
File descriptions:
| File | Description |
|---|---|
scrape.R | Scrapes data on the death of every officer tracked on ODMP |
all_data.csv | Output of scrape.R |
clean.R | Takes the data in all_data.csv, cleans it and formats the dates correctly, and tags every entry as human or canine. |
clean_data.csv | Output of clean.R |
plot.R | Summarizes police deaths by category and generates a plot similar to the one below |

This dataset was scraped from FiveThirtyEight - police-deaths