Interface for extracting data assets from the FBI Crime Data API.
Project description
FBI Crime Data API
This is a wrapper around the FBI Crime Data API, the first of its kind as of March 2026.
Example
After signing up for an API key in https://api.data.gov/signup/,
pip install fbi-data-api
from fbi_api import FBI
# If no api_key is passed, your environment variable FBI_API_KEY is automatically invoked.
api = FBI(api_key = your_api_key)
metadata = api.get_metadata(state_abbr = "all")
# ORI stands for Originating Agency Identifer (ORI), uniquely identifying the law enforcement
agencies that report to the FBI. The ORIs in a state can be extracted from api.get_metadata().
crime_statistics = api.get_crime_statistics(ori = "ILCPD0000", year = 2024, offense = "Violent Crimes")
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
fbi_data_api-0.2.0.tar.gz
(46.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file fbi_data_api-0.2.0.tar.gz.
File metadata
- Download URL: fbi_data_api-0.2.0.tar.gz
- Upload date:
- Size: 46.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c2d27f521623f6060fe32c3fee2ac2a6d94bf23667b71b24638e90f7fe13e89b
|
|
| MD5 |
ff98d1826fb789c48b134eae8df83f46
|
|
| BLAKE2b-256 |
1819cee2f29fed57df6907f257b85dd7a2d07753a3f94b77aff65a2c197b1fea
|
File details
Details for the file fbi_data_api-0.2.0-py3-none-any.whl.
File metadata
- Download URL: fbi_data_api-0.2.0-py3-none-any.whl
- Upload date:
- Size: 4.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.10.10 {"installer":{"name":"uv","version":"0.10.10","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
710a8a62d0153b43d32d01fdcc1f065c9466cbe4a13c172daec60a3a6136b877
|
|
| MD5 |
cef88d83196966fd0ce42068e7798ddc
|
|
| BLAKE2b-256 |
3bf5803e8dcbcddfeae214293205ee462dc6823a27aaa73bf109fcc4297ee735
|