Skip to main content

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.3.0.tar.gz (28.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

fbi_data_api-0.3.0-py3-none-any.whl (4.9 kB view details)

Uploaded Python 3

File details

Details for the file fbi_data_api-0.3.0.tar.gz.

File metadata

  • Download URL: fbi_data_api-0.3.0.tar.gz
  • Upload date:
  • Size: 28.7 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

Hashes for fbi_data_api-0.3.0.tar.gz
Algorithm Hash digest
SHA256 dd266d3ba20380d0cc9e0071e1158ca9eaf5c409e0b19db84ee43adfc4d801b1
MD5 106f73be926683d08746050a123522f2
BLAKE2b-256 0df63640d1ee8c061aba2f4d91990abc2a8178a96ac3123fba925eb86cbddf41

See more details on using hashes here.

File details

Details for the file fbi_data_api-0.3.0-py3-none-any.whl.

File metadata

  • Download URL: fbi_data_api-0.3.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

Hashes for fbi_data_api-0.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 f9c483260c416e7e994d01da45f6893d90172ecfb8756906bb54650d5c128fc7
MD5 d396b1e93d8ee9e5b33ee023097201ea
BLAKE2b-256 88d6f4bca42e13c1c5933ba7d6b2df762424ec896b8c95648c4b52c1fc807976

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page