get_state_crime_estimates
Get FBI crime estimates for a US state over a range of years.
Returns annual crime estimate data from the FBI Crime Data Explorer
for the specified state and crime category.
Args:
state: Two-letter US state abbreviation (e.g. 'CA', 'TX', 'NY').
crime_type: Type of crime to query. Options: violent-crime, property-crime,
burglary, larceny, motor-vehicle-theft, homicide, robbery,
aggravated-assault. Default: violent-crime.
from_year: Start year for the data range (default 2015).
to_year: End year for the data range (default 2023).
get_national_crime_estimates
Get national FBI crime trend estimates over a range of years.
Returns annual national crime estimate data from the FBI Crime Data
Explorer for the specified crime category.
Args:
crime_type: Type of crime to query. Options: violent-crime, property-crime,
burglary, larceny, motor-vehicle-theft, homicide, robbery,
aggravated-assault. Default: violent-crime.
from_year: Start year for the data range (default 2015).
to_year: End year for the data range (default 2023).
get_state_arrests
Get arrest data for a US state by offense category.
Returns arrest statistics from the FBI Crime Data Explorer broken down
by offense category for the specified state and year range.
Args:
state: Two-letter US state abbreviation (e.g. 'CA', 'TX', 'NY').
from_year: Start year for the data range (default 2015).
to_year: End year for the data range (default 2023).
compare_state_crime
Compare crime rates across multiple US states for a single year.
Fetches crime estimates for each state and returns them side by side
for easy comparison. Useful for grant narratives requiring regional context.
Args:
states: Comma-separated two-letter state abbreviations (e.g. 'CA,TX,NY').
crime_type: Type of crime to compare. Options: violent-crime, property-crime,
burglary, larceny, motor-vehicle-theft, homicide, robbery,
aggravated-assault. Default: violent-crime.
year: The year to compare (default 2022).