Skip to main content

PyPI version Streamlit App

OpenPoliceData

The OpenPoliceData (OPD) Python library is the most comprehensive centralized public access point for incident-level police data in the United States. OPD provides easy access to 550+ incident-level datasets from 236 police agencies and 11 entire states. Types of data include traffic stops, use of force, officer-involved shootings, and complaints.

Users request data by department name and type of data, and the data is returned as a pandas DataFrame. There is no need to manually find the data online or to know how to work with open data APIs (ArcGIS, Socrata, etc.). When data is loaded by OPD, the returned data is unmodified (with the exception of formatting known date fields) from what appears on the source's site, and OPD provides links to the original data for transparency.

OpenPoliceData can be installed from the Python Package Index (PyPI):

pip install openpolicedata

OpenPoliceData provides access to police data with 2 simple lines of code:

> import openpolicedata as opd
> src = opd.Source("New Orleans")
> data = src.load(table_type="USE OF FORCE", date=2022)

alt text

Latest Datasets Added to OPD

We've added a huge number of datasets recently!

  • 2025 datasets: Phoenix and San Jose Calls for Service, Cedar Lake, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, Griffith, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, St. John, IN Arrests, Calls for Service, Traffic Stops, Traffic Citations, Traffic Warnings, and Crashes, Wichita Crashes, Louisville Incidents, New Orleans Calls for Services and Incidents, Minneapolis Incidents, Portland, OR Calls for Service
  • 2024 datasets: Oakland Use of Force, Washington D.C. Incidents and Lawsuits, Chicago Pedestrian Stops, Louisville Incidents, New Orleans Calls for Services and Incidents, Baltimore Calls for Service, Pittsfield, MA Arrests and Crashes, Lincoln Calls for Service, Incidents, Traffic Stops, Vehicle Pursuits, and Use of Force, New York City Pedestrian Stops, Asheville Calls for Service, Durham Calls for Service, Norman Arrests, Comlaints, Crashes, Incidents, Traffic Stops and Use of Force, Charleston Citations, Nashville Calls for Service, Albemarle County VA STOPS, Bremerton, WA Arrests, Citations, and Incidents
  • California: Stops data for all departments submitted for RIPA for 2018-2023
  • Cincinnati Officer Involved Shootings and Use of Force
  • Memphis Traffic Citations and Traffic Stops
  • New Jersey State Police 2021 Traffic Stops
  • Los Angeles Calls for Service and Incidents
  • Seattle Arrests
  • Portland, OR Arrests and Incidents
  • Richmond, CA Arrests

Contributing

Alt Text Alt Text Alt Text Alt Text Alt Text Alt Text Alt Text Alt Text

All contributions are welcome including code enhancments, bug fixes, bug reports, documentation updates, and locating new datasets. If you're interesting in helping out, see our Contributing Guide or reach out by email.

v0.12 - 2025-07-27

Changed

  • Name of year input changed to date in Table and Source classes to more clearly reflect that input can handle both year and date ranges

Deprecated

  • Usage of year input changed to date in Table and Source classes. date input should be used instead.

Complete change log available at: https://github.com/openpolicedata/openpolicedata/blob/main/CHANGELOG.md

Release files for openpolicedata 0.12

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openpolicedata 0.12
File Size Uploaded
openpolicedata-0.12.tar.gz 176.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for openpolicedata 0.12
File Interpreter ABI Platform
openpolicedata-0.12-py3-none-any.whl Python 3 none any Details

Total release size: 328.7 kB

Release files / openpolicedata-0.12.tar.gz

Download URL openpolicedata-0.12.tar.gz
Size 176.2 kB
Tags Source
SHA-256 checksum
How to use checksums
68e5869c54102fa36b1de8781faaa34f25b3c9757961cc839ed80ae5fb1ede89
BLAKE2b-256 checksum
How to use checksums
c515629e94fdf99dea45723c5734aed5b00613ee48da463abf54e18d8be53d58
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2

Release files / openpolicedata-0.12-py3-none-any.whl

Download URL openpolicedata-0.12-py3-none-any.whl
Size 152.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
7f25f0f078bd438fa654d23b4607ec0880740d36085fa885001822e2fa46ca3b
BLAKE2b-256 checksum
How to use checksums
4646b95da0a33273c0c014436170e99930161263f1a16d306b571bb9a85f3d3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.2
Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page