Check the Setup
- Python 3.10 or newer
- An internet connection
- The requests Python package
FBI Crime Data Explorer agency-level offense and reporting-population responses for cautious local safety comparisons.
Report a ProblemFrom Source to Product Signal
The CDE's agency catalog and summarized agency/offense endpoint are distinct from the key-gated FBI state-estimates API. Start with one Rhode Island ORI and one offense family. Participation and suppression can make agency or county comparisons incomplete; a missing value is not zero crime.
Install the packages, then run the notebook cell.
python -m pip install requests
import requests
base = "https://cde.ucr.cjis.gov/LATEST"
catalog = requests.get(f"{base}/agency/byStateAbbr/RI", timeout=20)
catalog.raise_for_status()
agency = catalog.json()["KENT"][0]
summary = requests.get(
f"{base}/summarized/agency/{agency['ori']}/violent-crime",
params={"from": "01-2023", "to": "12-2025", "type": "totals"}, timeout=20,
)
summary.raise_for_status()
series = next(iter(summary.json()["offenses"]["actuals"].values()))
print(agency["ori"], agency["agency_name"], series.get("01-2025"))Test a Useful Signal
Compare agency offense counts while retaining reporting coverage.
Federal Bureau of Investigation is a government source. Last verified 2026-09-28. Temporal coverage: agency summaries for 2023-2025 in HouseHunter's pinned manifest.