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")
crime_statistics = api.get_crime_statistics(ori = "NY0303000", year = 2024, offense = "Violent Crimes")
To see fbi-data-api in action, go to the repo's examples directory:
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.5.0.tar.gz
(436.1 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.5.0.tar.gz.
File metadata
- Download URL: fbi_data_api-0.5.0.tar.gz
- Upload date:
- Size: 436.1 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 |
cd571d726ad90b85701b0e1f2daaa254747da04ed02e0dd1a9c18f6feb7f5304
|
|
| MD5 |
43ea2d40058141d5efbcc044a8d4539d
|
|
| BLAKE2b-256 |
70e978c9420a03650b81b80ba77acbcba8b23c4dd27216d81a43f8e170d8deb4
|
File details
Details for the file fbi_data_api-0.5.0-py3-none-any.whl.
File metadata
- Download URL: fbi_data_api-0.5.0-py3-none-any.whl
- Upload date:
- Size: 5.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 |
20daa111403ce926f8d9e1d03ddd579221c00e1a116f662ffe600e78a7393173
|
|
| MD5 |
03b1c33e11d2f5b05c6949b69410a01c
|
|
| BLAKE2b-256 |
a18233739bf2111bf3ed54f0d8da3fb0de0b2f7356c545573c538dc636a2dc80
|