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") 

agency_metrics = api.get_agency_metrics(ori = "NY0303000", year = 2024)

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:

https://github.com/teddythepooh/fbi_api/tree/main/examples

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.6.0.tar.gz (51.2 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.6.0-py3-none-any.whl (6.2 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: fbi_data_api-0.6.0.tar.gz
  • Upload date:
  • Size: 51.2 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.6.0.tar.gz
Algorithm Hash digest
SHA256 e14a85781776976d8fdb84b780f2e2ccbb36954a0cdd1000e441cbbd27b60f33
MD5 fdd6dae23168c69cb0b363c410ac3e5b
BLAKE2b-256 f97086bcbcd9aa96e7ec89fca021ea6591fcb02048d036e837dd5e18fa931f56

See more details on using hashes here.

File details

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

File metadata

  • Download URL: fbi_data_api-0.6.0-py3-none-any.whl
  • Upload date:
  • Size: 6.2 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.6.0-py3-none-any.whl
Algorithm Hash digest
SHA256 177f699597c8550a0f892a79ae73088adeae24fc00321434552ef3a1a50d9e8a
MD5 383480554a8b111b109148744edc96d2
BLAKE2b-256 6aae4b0b6757dfac87c3df105e1e177921c760a746943f15f45ddd0aa3af6597

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