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/,
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.1.0.tar.gz
(46.5 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.1.0.tar.gz.
File metadata
- Download URL: fbi_data_api-0.1.0.tar.gz
- Upload date:
- Size: 46.5 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9ee275dc450f59f0ae72c260cea1d24e51801639721fe8afa2e976555ce67496
|
|
| MD5 |
21c7bf3007bf9369e83ebf173b370b24
|
|
| BLAKE2b-256 |
fafd0873dfc7f6702cd4015d34475e5daf05387c7df6e24d9e05b95d1f0b8f9e
|
File details
Details for the file fbi_data_api-0.1.0-py3-none-any.whl.
File metadata
- Download URL: fbi_data_api-0.1.0-py3-none-any.whl
- Upload date:
- Size: 5.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
725ff5b5cc96518d8699e5ce9fdd2bfbf0208f4d2a901762a6c6585bfac283d1
|
|
| MD5 |
88bc3c0cc9899a84d8d79d35b823dba0
|
|
| BLAKE2b-256 |
3095c7a59ebc838451226259b497c61d69ceea9d8ed8b797d6e01c84ee31f662
|