# fbi-ucr-api

> Minimalist Node.js wrapper for the FBI Uniform Crime Reporting API

Latest version **1.1.0** (published 2018-12-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install fbi-ucr-api
pnpm add fbi-ucr-api
yarn add fbi-ucr-api
bun add fbi-ucr-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.1.0 |
| Published | 2018-12-24 |
| First published | 2018-09-03 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 114.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Matthew Zhao |
| Maintainers | oceanwall |
| Keywords | FBI, UCR, Uniform, Crime, Reporting, API, Data, NIBRS, SRS, Agency, Police |

## Links

- npm: https://www.npmjs.com/package/fbi-ucr-api
- Repository: https://github.com/Oceanwall/FBI-Crime-Data-API-Wrapper
- Homepage: https://github.com/Oceanwall/FBI-Crime-Data-API-Wrapper#readme
- Issues: https://github.com/Oceanwall/FBI-Crime-Data-API-Wrapper/issues
- npm.io page: https://npm.io/package/fbi-ucr-api

## Dependencies (2)

- [dotenv](https://npm.io/package/dotenv.md) ^6.0.0
- [node-fetch](https://npm.io/package/node-fetch.md) ^2.2.0

## Alternatives

- [@libsql/sqlite3](https://npm.io/package/@libsql/sqlite3.md) — 39.8K weekly downloads
- [@fortemi/core](https://npm.io/package/@fortemi/core.md) — 461 weekly downloads
- [cdb-converter](https://npm.io/package/cdb-converter.md) — 341 weekly downloads
- [@uplo/adapter-prisma](https://npm.io/package/@uplo/adapter-prisma.md) — 75 weekly downloads
- [typeorm-aios](https://npm.io/package/typeorm-aios.md) — 30 weekly downloads

## Recent versions

- 1.1.0 (latest) — 2018-12-24
- 1.0.0 — 2018-09-03

## README

# FBI (Uniform) Crime Data API Wrapper

Minimalist FBI Uniform Crime Data (UCR) API Wrapper.

Fulfills most if not all of the functionality indicated by the [FBI Uniform Crime Data API found here](https://crime-data-explorer.fr.cloud.gov/api). Extends additional helpful functionality (optimized performance, additional queries, easier usage).

## Basic Usage

```
require('dotenv').config();

const FBI_Wrapper = require("fbi-ucr-api");
let wrapper = new FBI_Wrapper(process.env.API_KEY);

// Promises

wrapper.getVictimsByORI("MI2802800", "burglary", "age").then((results) => {
  console.log(results);
});

// Asynchronous Function

async function something() {
  let results = await wrapper.getVictimsByState("TX", "burglary", "age");
  console.log(results);
}
```

Additional examples for how to use these methods can be found in examples/index.js.

For information about how to use a .env file, see [documentation for dotenv](https://www.npmjs.com/package/dotenv).

## Testing

```
npm test

// Or if testing running individual category tests:

mocha test/testFileName.js --no-timeouts
```

Tests check the intended return types and error handling capabilities of functions.

**Note:** Running all of the tests may take a significant amount of time (roughly 2 minutes) due to all of the GET requests made by the API wrapper.

## Additional Remarks

**I am aware of the issue where attempting to get arson / crime estimate statistics by region returns undefined.**<br>
This is a server error on the part of the FBI dataset, and I do not know when it will be resolved.

If anybody knows a better way to do error checking for this API wrapper (without necessitating as many as 4 lines of error checking  calls per function), please let me know!

To understand the data provided by this API wrapper, it can be helpful to look at other projects that have used this data. One such (official US Government) project is the FBI's [crime data explorer](https://crime-data-explorer.fr.cloud.gov/), which visualizes this information.

[Find this package on npm here](https://www.npmjs.com/package/fbi-ucr-api).

This API wrapper is licensed under the MIT License. Feel free to fork and change!

Maintenance may occasionally occur, but don't expect it.

<!--
TODO LIST:
(x) Complete all default methods
(x) Document all default methods
(x) Change return types (from Promise -> Object to Promise -> Array for that which can be isolated)
(x) Write test cases for all default methods
(x) Come up with extra methods that extend functionality
(x) Document all methods
(x) Write test cases for all methods
(x) Error checking for all methods (check parameters? ensure correct typing?)
(x) Mention known bug (dataset server down, not returning info)
-->

## API_DOCUMENTATION

<!-- Generated by documentation.js. Update this documentation by updating the source code. -->

### Table of Contents

-   [constructor][1]
    -   [Parameters][2]
-   [getAgencies][3]
-   [getAgenciesByCoordinates][4]
    -   [Parameters][5]
-   [getAgenciesByRegion][6]
    -   [Parameters][7]
-   [getAgenciesByState][8]
    -   [Parameters][9]
-   [getAgencyByORI][10]
    -   [Parameters][11]
-   [getStates][12]
    -   [Parameters][13]
-   [getAllStates][14]
-   [getStatesByRegion][15]
    -   [Parameters][16]
-   [getStateByAbbreviation][17]
    -   [Parameters][18]
-   [getRegions][19]
-   [getRegionsByName][20]
    -   [Parameters][21]
-   [getPoliceByNation][22]
-   [getPoliceByRegion][23]
    -   [Parameters][24]
-   [getPoliceByState][25]
    -   [Parameters][26]
-   [getPoliceByORI][27]
    -   [Parameters][28]
-   [getVictimsByNation][29]
    -   [Parameters][30]
-   [getVictimsByRegion][31]
    -   [Parameters][32]
-   [getVictimsByState][33]
    -   [Parameters][34]
-   [getVictimsByORI][35]
    -   [Parameters][36]
-   [getOffendersByNation][37]
    -   [Parameters][38]
-   [getOffendersByRegion][39]
    -   [Parameters][40]
-   [getOffendersByState][41]
    -   [Parameters][42]
-   [getOffendersByORI][43]
    -   [Parameters][44]
-   [getCrimeCountByNation][45]
    -   [Parameters][46]
-   [getCrimeCountByRegion][47]
    -   [Parameters][48]
-   [getCrimeCountByState][49]
    -   [Parameters][50]
-   [getCrimeCountByORI][51]
    -   [Parameters][52]
-   [getCrimesByORI][53]
    -   [Parameters][54]
-   [getCrimeByORI][55]
    -   [Parameters][56]
-   [getMultipleCrimesByORI][57]
    -   [Parameters][58]
-   [getDetailedArsonStatsByNation][59]
-   [getDetailedArsonStatsByRegion][60]
    -   [Parameters][61]
-   [getDetailedArsonStatsByState][62]
    -   [Parameters][63]
-   [getParticipationByNation][64]
-   [getParticipationByRegion][65]
    -   [Parameters][66]
-   [getParticipationByState][67]
    -   [Parameters][68]
-   [getParticipationByORI][69]
    -   [Parameters][70]
-   [getCrimeEstimatesByNation][71]
-   [getCrimeEstimatesByRegion][72]
    -   [Parameters][73]
-   [getCrimeEstimatesByState][74]
    -   [Parameters][75]

## constructor

Creates a new FBI_Wrapper object, which is used to more easily access the FBI UCR API.<br>

### Parameters

-   `userAPIkey` **[String][76]** The api.data.gov API key, which is required to access the FBI UCR API. API Keys can be generated here: [https://api.data.gov/signup/][77]
-   `strictErrorChecking` **[Boolean][78]** NOW DEPRECATED, DO NOT USE. Disabled error checking by the wrapper. (optional, default `true`)

## getAgencies

Gets information about all agencies in the United States.<br>
If desiring to get information about all agencies in the U.S in an array form, consider using getAgenciesByRegion and passing in the "U.S" territories parameter.<br>

Returns **[Object][79]** Information about each agency in the U.S, subdivided into states that are further subdivided into agency objects (identified by their ORI-9 (Department Originating Agency Identifier Number, character length 9)).

## getAgenciesByCoordinates

Gets information about all the agencies within _range_ kilometers of the provided coordinates.

### Parameters

-   `latitude` **[Number][80]** Desired latitude to center agency search around.
-   `longitude` **[Number][80]** Desired longitude to center agency search around.
-   `range` **[Number][80]** Length (km) of circular radius in which to find agencies. (optional, default `50`)

Returns **[Array][81]** Information about all the agencies within _range_ kilometers of the provided coordinates

## getAgenciesByRegion

Gets information about all agencies in a specific region.<br>
Permitted region numerical codes are 0, 1, 2, 3, 4, 99<br>
Permitted region string names are "U.S. Territories", "Northeast", "Midwest", "South", "West", "Other".<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).

Returns **[Array][81]** Information about all the agencies in that specific region. Undefined if a bad region name is provided.

## getAgenciesByState

Gets information about all agencies in a given state<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State abbreviation
-   `pageNumber` **[Number][80]** For states with many agencies, data is delivered in multiple "pages", as indicated by the pagination property/object in the returned object. This property allows you to select which page of results you want (Pages are 0-indexed). (optional, default `0`)

Returns **[Object][79]** Information about each agency in a given state.

## getAgencyByORI

Gets information about a specific agency, as identified by the provided ORI-9.<br>
If no ORI is provided, then gets information about all agencies in the United States.<br>

### Parameters

-   `ori` **[String][76]** The ORI of the desired agency. (optional, default `""`)

Returns **[Object][79]** Information about the desired agency, or if no ORI is provided, information about each agency in the U.S.

## getStates

Gets identifying information about all the states in the U.S, such as their ID, abbreviation, and region.<br>
Expressed in separate pages (20 results per page). If desiring all states at once, use getAllStates()<br>

### Parameters

-   `pageNumber` **[Number][80]** Denotes a specific page of results to view, as indicated by the pagination property/object. Each call only returns 20 states at a time. (optional, default `0`)

Returns **[Object][79]** Information about (20) states.

## getAllStates

Gets identifying information about all the states in the U.S, such as their ID, abbreviation, and region<br>

Returns **[Array][81]** Information about all US states.

## getStatesByRegion

Gets identifying information about all states in a specified region<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).

Returns **[Array][81]** Information about all states in that region.

## getStateByAbbreviation

Gets identifying information about a specific state based on its abbreviation.<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State abbreviation (two characters long, like TX).

Returns **[Object][79]** Identifying information about that state.

## getRegions

Gets identifying information about all the regions in the U.S<br>

Returns **[Array][81]** Information about all regions in the U.S

## getRegionsByName

Gets identifying information about a specific region based on its name or numerical code.<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).

Returns **[Object][79]** Information about that specific region.

## getPoliceByNation

Gets nationwide police employment statistics for each year (up to 1960).<br>

Returns **[Array][81]** Nationwide police employment statistics for each year

## getPoliceByRegion

Gets regionwide police employment statistics for each year (up to 1960).<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).

Returns **[Array][81]** Regionwide police employment statistics for each year

## getPoliceByState

Gets statewide police employment statistics for each year (up to 1960).<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State Abbreviation, two characters long

Returns **[Array][81]** Statewide police employment statistics for each year

## getPoliceByORI

Get police employment statistics for a certain agency (hypothetically up the 1960, but many agencies didn't start recording information until later).<br>

### Parameters

-   `ori` **[String][76]** The ORI of the desired agency.

Returns **[Array][81]** Agency police employment statistics for each year, in addition to other details about the agency (such as the population that year of the served area).

## getVictimsByNation

Given a specific offense and a classification criteria for the victims, returns for each year the number of victims (of said offense) that fall into each category of the classification criteria.<br>
This method encompasses nation-wide data.<br>
Possible offenses are: "violent_crime", "homicide", "rape-legacy", "rape-revised", "robbery", "aggravated-assault", "property-crime", "burglary", "larceny", "motor-vehicle-theft", and "arson".<br>
Possible classifications are: "age", "count", "ethnicity", "race", and "sex".<br>
Note that entries are not guaranteed to be in any order, and also be aware that for some years, not all agencies reported data, so data might be skewed from before 2005.<br>

### Parameters

-   `offense` **[String][76]** The offense to find victims of.
-   `classification` **[String][76]** The classification criteria by which the victims will be categorized.

Returns **[Object][79]** Entries for each year containing the # of (nation-wide victims of the given offense) in each category type.

## getVictimsByRegion

Given a specific offense and a classification criteria for the victims, returns for each year the number of victims (of said offense) that fall into each category of the classification criteria.<br>
This method encompasses region-wide data.<br>
Additional information can be found under method getVictimsByNation<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).
-   `offense` **[String][76]** The offense to find victims of.
-   `classification` **[String][76]** The classification criteria by which the victims will be categorized.

Returns **[Object][79]** Entries for each year containing the # of (region-wide victims of the given offense) in each category type.

## getVictimsByState

Given a specific offense and a classification criteria for the victims, returns for each year the number of victims (of said offense) that fall into each category of the classification criteria.<br>
This method encompasses state-wide data.<br>
Additional information can be found under method getVictimsByNation<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State Abbreviation, two characters long
-   `offense` **[String][76]** The offense to find victims of.
-   `classification` **[String][76]** The classification criteria by which the victims will be categorized.

Returns **[Object][79]** Entries for each year containing the # of (state-wide victims of the given offense) in each category type.

## getVictimsByORI

Given a specific offense and a classification criteria for the victims, returns for each year the number of victims (of said offense) that fall into each category of the classification criteria.<br>
This method encompasses agency-wide data.<br>
Additional information can be found under method getVictimsByNation<br>

### Parameters

-   `ori` **[String][76]** The ORI of the agency in question
-   `offense` **[String][76]** The offense to find victims of.
-   `classification` **[String][76]** The classification criteria by which the victims will be categorized.

Returns **[Object][79]** Entries for each year containing the # of (agency-wide victims of the given offense) in each category type.

## getOffendersByNation

Given a specific offense and a classification criteria for the offenders, returns for each year the number of offenders (who committed said offense) that fall into each category of the classification criteria.<br>
This method encompasses nation-wide data.<br>
Additional information can be found under method getVictimsByNation<br>

### Parameters

-   `offense` **[String][76]** The offense for which to find offenders.
-   `classification` **[String][76]** The classification criteria by which the offenders will be categorized.

Returns **[Object][79]** Entries for each year containing the # of (nation-wide offenders who committed the given offense) in each category type.

## getOffendersByRegion

Given a specific offense and a classification criteria for the offenders, returns for each year the number of offenders (who committed said offense) that fall into each category of the classification criteria.<br>
This method encompasses region-wide data.<br>
Additional information can be found under method getVictimsByNation<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).
-   `offense` **[String][76]** The offense for which to find offenders.
-   `classification` **[String][76]** The classification criteria by which the offenders will be categorized.

Returns **[Object][79]** Entries for each year containing the # of (region-wide offenders who committed the given offense) in each category type.

## getOffendersByState

Given a specific offense and a classification criteria for the offenders, returns for each year the number of offenders (who committed said offense) that fall into each category of the classification criteria.<br>
This method encompasses state-wide data.<br>
Additional information can be found under method getVictimsByNation<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State Abbreviation, two characters long
-   `offense` **[String][76]** The offense for which to find offenders.
-   `classification` **[String][76]** The classification criteria by which the offenders will be categorized.

Returns **[Object][79]** Entries for each year containing the # of (state-wide offenders who committed the given offense) in each category type.

## getOffendersByORI

Given a specific offense and a classification criteria for the offenders, returns for each year the number of offenders (who committed said offense) that fall into each category of the classification criteria.<br>
This method encompasses agency-wide data.<br>
Additional information can be found under method getVictimsByNation<br>

### Parameters

-   `ori` **[String][76]** The ORI of the agency in question
-   `offense` **[String][76]** The offense for which to find offenders.
-   `classification` **[String][76]** The classification criteria by which the offenders will be categorized.

Returns **[Object][79]** Entries for each year containing the # of (agency-wide offenders who committed the given offense) in each category type.

## getCrimeCountByNation

Given a specific offense, returns for each year the number of incidents and (offense occurrences) that occurred involving that offense.<br>
Note that the difference between an incident and an offense is that within an incident, a person could have committed multiple offenses.<br>
This method encompasses nation-wide data.<br>
Additional information can be found under method getVictimsByNation<br>

### Parameters

-   `offense` **[String][76]** The offense for which to find the # of incidents and occurrences.

Returns **[Array][81]** Entries for each year containing the # of incidents and (offense occurrences) involving the given offense

## getCrimeCountByRegion

Given a specific offense, returns for each year the number of incidents and (offense occurrences) that occurred involving that offense.<br>
This method encompasses region-wide data.<br>
Additional information can be found under method getCrimeCountByNation<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).
-   `offense` **[String][76]** The offense for which to find the # of incidents and occurrences.

Returns **[Array][81]** Entries for each year containing the # of incidents and (offense occurrences) involving the given offense

## getCrimeCountByState

Given a specific offense, returns for each year the number of incidents and (offense occurrences) that occurred involving that offense.<br>
This method encompasses state-wide data.<br>
Additional information can be found under method getCrimeCountByNation<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State Abbreviation, two characters long
-   `offense` **[String][76]** The offense for which to find the # of incidents and occurrences.

Returns **[Array][81]** Entries for each year containing the # of incidents and (offense occurrences) involving the given offense

## getCrimeCountByORI

Given a specific offense, returns for each year the number of incidents and (offense occurrences) that occurred involving that offense.<br>
This method encompasses agency-wide data.<br>
Additional information can be found under method getCrimeCountByNation<br>

### Parameters

-   `ori` **[String][76]** The ORI of the agency in question
-   `offense` **[String][76]** The offense for which to find offenders.

Returns **[Array][81]** Entries for each year containing the # of incidents and (offense occurrences) involving the given offense

## getCrimesByORI

Get detailed statistics about the offenses committed within the jurisdiction of a particular agency.<br>
If no one type of offense is specified, then this method returns statistics about all types of offenses.<br>
If looking for (a) specific offense(s), note that it is much faster to use getCrimeByOri or getMultipleCrimesByORI.<br>

### Parameters

-   `ori` **[String][76]** The ORI of the agency in question
-   `offense` **[String][76]** The offense for which to find statistics. If no offense is specified, then get statistics about all offenses. (optional, default `"offenses"`)

Returns **([Object][79] \| [Array][81])** Entries for each year containing detailed statistics about (each offense). If looking up a specific offense, returns an object. Otherwise, returns an array.

## getCrimeByORI

Get detailed statistics about an offense committed within the jurisdiction of a particular agency.<br>
Transmits more bandwidth, but is significantly faster (2.5x) than relying on the default API exposed by getCrimesByORI.<br>

### Parameters

-   `ori` **[String][76]** The ORI of the agency in question.
-   `offense` **[String][76]** The offense for which to find statistics.

Returns **[Array][81]** Entries for each year containing detailed statistics about the offense. Returns undefined if the ORI provided is not valid.

## getMultipleCrimesByORI

Get detailed statistics about multiple offenses committed within the jurisdiction of a particular agency.<br>
Transmits more bandwidth, but is significantly faster (2.5x) than relying on the default API exposed by getCrimesByORI.<br>

### Parameters

-   `ori` **[String][76]** The ORI of the agency in question.
-   `offenses` **[Array][81]** The offenses for which to find statistics.

Returns **[Array][81]** Entries for each year containing detailed statistics about the offenses. Array of arrays, where an index into the returned array matches with that of the offenses array passsed in. Returns undefined if the ORI provided is not valid.

## getDetailedArsonStatsByNation

For each year, gets detailed statistics about arson, including the # of reports and estimated property damage.<br>
This method encompasses nation-wide data.<br>

Returns **[Array][81]** Entries for each year detailing arson statistics

## getDetailedArsonStatsByRegion

For each year, gets detailed statistics about arson, including the # of reports and estimated property damage.<br>
Note that this method separates its statistics into states, providing individual arson statistics for each state within the region.<br>
This method encompasses region-wide data.<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).

Returns **[Array][81]** Entries for each year detailing arson statistics.

## getDetailedArsonStatsByState

For each year, gets detailed statistics about arson, including the # of reports and estimated property damage.<br>
This method encompasses state-wide data.<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State Abbreviation, two characters long

Returns **[Array][81]** Entries for each year detailing arson statistics.

## getParticipationByNation

For each year, returns the total number of agencies in the U.S in addition to what type of data they submit (SRS, NIBRS).<br>
SRS is the old hierarchical crime reporting system (Summary Reporting System) that only collects a limited range of data.<br>
NIBRS is the new system (National Incident-Based Reporting System) that allows for more extensive data collection (more crime categories).<br>

Returns **[Array][81]** Entries for each year detailing the number of agencies and how many collect what type of information

## getParticipationByRegion

For each year, returns the total number of agencies in the specified region in addition to what type of data they submit (SRS, NIBRS).<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).

Returns **[Array][81]** Entries for each year detailing the number of agencies and how many collect what type of information

## getParticipationByState

For each year, returns the total number of agencies in the specified state in addition to what type of data they submit (SRS, NIBRS).<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State Abbreviation, two characters long

Returns **[Array][81]** Entries for each year detailing the number of agencies and how many collect what type of information

## getParticipationByORI

For each year, returns the type of data that this specific agency has been reporting, in addition to other relevant data about the agency.<br>

### Parameters

-   `ori` **[String][76]** The ORI of the agency in question

Returns **[Array][81]** Entries for each year detailing the number of agencies and how many collect what type of information

## getCrimeEstimatesByNation

For each year, returns the estimated number of crimes (in different categories) that occurred.<br>
This method encompasses nation-wide data.<br>

Returns **[Array][81]** Entries for each year detailing the estimated number of crimes that occurred.

## getCrimeEstimatesByRegion

For each year, returns the estimated number of crimes (in different categories) that occurred.<br>
Note that this method breaks down its statistics into states, providing estimates for each state within the region.<br>
This method encompasses region-wide data.<br>

### Parameters

-   `regionName` **([Number][80] \| [String][76])** This region's numerical code. Note that this parameter can also be a String (the region's name).

Returns **[Array][81]** Entries for each year detailing the estimated number of crimes that occurred.

## getCrimeEstimatesByState

For each year, returns the estimated number of crimes (in different categories) that occurred.<br>
This method encompasses state-wide data.<br>

### Parameters

-   `stateAbbreviation` **[String][76]** State Abbreviation, two characters long

Returns **[Array][81]** Entries for each year detailing the estimated number of crimes that occurred.

[1]: #constructor

[2]: #parameters

[3]: #getagencies

[4]: #getagenciesbycoordinates

[5]: #parameters-1

[6]: #getagenciesbyregion

[7]: #parameters-2

[8]: #getagenciesbystate

[9]: #parameters-3

[10]: #getagencybyori

[11]: #parameters-4

[12]: #getstates

[13]: #parameters-5

[14]: #getallstates

[15]: #getstatesbyregion

[16]: #parameters-6

[17]: #getstatebyabbreviation

[18]: #parameters-7

[19]: #getregions

[20]: #getregionsbyname

[21]: #parameters-8

[22]: #getpolicebynation

[23]: #getpolicebyregion

[24]: #parameters-9

[25]: #getpolicebystate

[26]: #parameters-10

[27]: #getpolicebyori

[28]: #parameters-11

[29]: #getvictimsbynation

[30]: #parameters-12

[31]: #getvictimsbyregion

[32]: #parameters-13

[33]: #getvictimsbystate

[34]: #parameters-14

[35]: #getvictimsbyori

[36]: #parameters-15

[37]: #getoffendersbynation

[38]: #parameters-16

[39]: #getoffendersbyregion

[40]: #parameters-17

[41]: #getoffendersbystate

[42]: #parameters-18

[43]: #getoffendersbyori

[44]: #parameters-19

[45]: #getcrimecountbynation

[46]: #parameters-20

[47]: #getcrimecountbyregion

[48]: #parameters-21

[49]: #getcrimecountbystate

[50]: #parameters-22

[51]: #getcrimecountbyori

[52]: #parameters-23

[53]: #getcrimesbyori

[54]: #parameters-24

[55]: #getcrimebyori

[56]: #parameters-25

[57]: #getmultiplecrimesbyori

[58]: #parameters-26

[59]: #getdetailedarsonstatsbynation

[60]: #getdetailedarsonstatsbyregion

[61]: #parameters-27

[62]: #getdetailedarsonstatsbystate

[63]: #parameters-28

[64]: #getparticipationbynation

[65]: #getparticipationbyregion

[66]: #parameters-29

[67]: #getparticipationbystate

[68]: #parameters-30

[69]: #getparticipationbyori

[70]: #parameters-31

[71]: #getcrimeestimatesbynation

[72]: #getcrimeestimatesbyregion

[73]: #parameters-32

[74]: #getcrimeestimatesbystate

[75]: #parameters-33

[76]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String

[77]: https://api.data.gov/signup/

[78]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Boolean

[79]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object

[80]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Number

[81]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array

---
_Source: https://npm.io/package/fbi-ucr-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
