NYPD's weekly precinct numbers, saved before they are replaced
Every week, NYPD posts traffic and crime statistics for each of the city's 78 precincts on nyc.gov, as Excel and PDF files. The next week's files go up at the same addresses and the old ones are gone. NYPD does not archive these weekly figures as datasets on NYC Open Data, so once a file is replaced, these files are no longer available from the City.
We save a copy of every file each week, turn the spreadsheets into tidy CSV files, and publish both here for anyone to use.
What we save #
Seven NYPD reports have their own pages below, each replaced every week. We read the list of files from NYPD's own pages on every run, so a new precinct or a renamed file is picked up without anyone editing a list.
| Series | Files | What is in it |
|---|---|---|
| TrafficStat | Citywide, 8 patrol boroughs, 78 precincts | Crashes, injuries and deaths by mode; DWI arrests; parking summonses for double parking, bus stops, bus lanes, crosswalks and bike lanes; moving summonses by vehicle type, including e-bikes, scooters and mopeds. Week to date, 28 days and year to date, each beside the same period a year earlier. NYPD's page. |
| CompStat | 78 precincts, 8 patrol boroughs | Crime complaints, shootings and hate crimes, with NYPD's two-year and long-range changes. NYPD's page. |
| Traffic fatalities | One per patrol borough, plus Port Authority Police | Traffic deaths by precinct for 7 days, 28 days and the year to date, against the year before. NYPD's page. |
| Quality of life | Citywide and 78 precincts | 911 and 311 calls about noise, vehicles, such as blocked driveways and double parking, and disorderly behavior. NYPD's page. |
| Citywide CompStat | One for the whole city | The CompStat crime report for the whole city: crime complaints, shootings and hate crimes, with NYPD's two-year and long-range changes. NYPD's page. |
| Department of Correction CompStat | One for the Department of Correction | The same weekly crime report, for the Department of Correction. NYPD's page. |
| NYCHA Housing Bureau report | One for all public-housing developments | The seven major crimes for each public-housing development, by Police Service Area and precinct. We save the files every week and read the spreadsheets into CSV; weeks held only as a PDF are not read yet. NYPD's page. |
We also save the crash points behind NYPD's TrafficStat dashboard map, one row per crash with its location, which the dashboard shows only for the current week. The data is here.
What we saved, week by week #
Each report has its own page, with a chart of the weeks we hold, for every precinct or for the one citywide file, and the same facts as a table.
-
TrafficStat
Crashes, injuries and deaths, DWI arrests, and parking and moving summonses.
–weeks, ––of precinct-weeks heldSee what we saved for TrafficStat -
CompStat
Crime complaints, shootings and hate crimes.
–weeks, ––of precinct-weeks heldSee what we saved for CompStat -
Traffic fatalities
Traffic deaths for 7 days, 28 days and the year to date.
–weeks, ––of precinct-weeks heldSee what we saved for Traffic fatalities -
Quality of life
911 and 311 calls about noise, vehicles and disorderly behavior.
–weeks, ––of precinct-weeks heldSee what we saved for Quality of life -
Citywide CompStat
Crime complaints, shootings and hate crimes for the whole city.
–weeks, ––of weeks heldSee what we saved for Citywide CompStat -
Department of Correction CompStat
The same crime report, for the Department of Correction.
–weeks, ––of weeks heldSee what we saved for Department of Correction CompStat -
NYCHA Housing Bureau report
The seven major crimes in each public-housing development.
–weeks, ––of weeks heldSee what we saved for NYCHA Housing Bureau report
How it works #
A scheduled job runs every Thursday and Saturday. NYPD replaces its files on Mondays and Tuesdays, so both runs land after a week's files are posted and before they are replaced. The job asks nyc.gov only for files that changed, one request at a time.
Each original file is kept exactly as NYPD published it, with its checksum, in the repository's GitHub Releases. The spreadsheets are then reshaped into CSV files with one number per row. If NYPD changes a file's layout, the job stops and says so rather than guess.
For the weeks before the archive started, we download the TrafficStat, CompStat, citywide and Department of Correction CompStat, and NYCHA Housing Bureau files that the Wayback Machine holds and check each against the Wayback Machine's own checksum. For CompStat we also brought in the PDFs Aaron Schumacher saved and the numbers Tim McDermott and Josh Greenman pulled from NYPD's reports; the CompStat page says which came from where.
Use the data #
- Tidy CSV files, one file per series per week. The README explains every column.
- NYPD's original files, zipped by week.
captures.csv, the ledger: every file saved, where it came from, and its checksum.- The data behind the charts: TrafficStat, CompStat, traffic fatalities, quality of life, citywide CompStat, Department of Correction CompStat, NYCHA Housing Bureau report.