The Police Shooting Stats API allows developers and researchers to access detailed statistics on individuals fatally shot by the police in the United States, as categorized by race and year. The API is designed to enable targeted data retrieval through specific endpoints with filtering capabilities, ensuring optimized data delivery.
{"year":2017,"race":"White","total_incidents":458}
curl --location --request POST 'https://zylalabs.com/api/5992/police+shooting+stats+api/8011/police+shooting+stats+by+race+and+year' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"race":"Required","year":"Required"}'
{"2024":{"Gun":545,"Knife":199,"Vehicle":46,"Toy weapon":19,"Unarmed":23,"Other":44,"Unknown":101}}
curl --location --request POST 'https://zylalabs.com/api/5992/police+shooting+stats+api/8012/get+dead+stats+by+weapon+type' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"year":"Required"}'
| Header | Description |
|---|---|
Authorization
|
[Required] Should be Bearer access_key. See "Your API Access Key" above when you are subscribed. |
No long-term commitment. Upgrade, downgrade, or cancel anytime. Free Trial includes up to 50 requests.
The API is designed with specific endpoints that allow for targeted data retrieval. You can filter the data by various parameters, including race and year, to optimize the information you receive based on your research needs.
The Police Shooting Stats API provides structured access to statistical data on individuals fatally shot by the police in the U.S., categorized by race and year. This allows for detailed analysis of trends and patterns over time.
The "police shooting stats by race and year" endpoint returns statistics on fatal police shootings categorized by race and year. The "get dead stats by weapon type" endpoint provides data on fatalities by weapon type used by individuals shot by police.
Key fields include "year," "race," and "total_incidents" for the race and year endpoint, while the weapon type endpoint includes the year and counts of fatalities for each weapon category, such as "Gun," "Knife," and "Unarmed."
The response data is structured in JSON format. For the race and year endpoint, it returns an object with year, race, and total incidents. The weapon type endpoint returns a nested object with years as keys and weapon type counts as values.
Users can specify parameters such as "race" (white, black, hispanic, other, unknown) and "year" (2017-2024) for the race and year endpoint. The weapon type endpoint does not require additional parameters, as it returns data for all weapon types.
The race and year endpoint provides data on fatal police shootings segmented by race and year, while the weapon type endpoint offers statistics on fatalities categorized by the type of weapon carried by individuals.
Users can customize requests by selecting specific races and years for the "police shooting stats by race and year" endpoint. This allows for focused analysis on particular demographics or timeframes.
Typical use cases include academic research on police violence trends, policy analysis for law enforcement practices, and advocacy work aimed at addressing racial disparities in police shootings.
Data accuracy is maintained through rigorous sourcing from official reports and databases on police shootings. Regular updates and quality checks ensure the reliability of the statistics provided by the API.
To obtain your API key, you first need to sign in to your account and subscribe to the API you want to use. Once subscribed, go to your Profile, open the Subscription section, and select the specific API. Your API key will be available there and can be used to authenticate your requests.
You can’t switch APIs during the free trial. If you subscribe to a different API, your trial will end and the new subscription will start as a paid plan.
If you don’t cancel before the 7th day, your free trial will end automatically and your subscription will switch to a paid plan under the same plan you originally subscribed to, meaning you will be charged and gain access to the API calls included in that plan.
The free trial ends when you reach 50 API requests or after 7 days, whichever comes first.
No, the free trial is available only once, so we recommend using it on the API that interests you the most. Most of our APIs offer a free trial, but some may not include this option.
Yes, we offer a 7-day free trial that allows you to make up to 50 API calls at no cost, so you can test our APIs without any commitment.
Zyla API Hub is like a big store for APIs, where you can find thousands of them all in one place. We also offer dedicated support and real-time monitoring of all APIs. Once you sign up, you can pick and choose which APIs you want to use. Just remember, each API needs its own subscription. But if you subscribe to multiple ones, you'll use the same key for all of them, making things easier for you.
Service Level:
100%
Response Time:
4,115ms
Service Level:
100%
Response Time:
1,476ms
Service Level:
100%
Response Time:
4,607ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
1,674ms
Service Level:
100%
Response Time:
4,952ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
63ms
Service Level:
100%
Response Time:
6,078ms
Service Level:
100%
Response Time:
5,607ms
Service Level:
100%
Response Time:
3,298ms
Service Level:
100%
Response Time:
8,591ms
Service Level:
100%
Response Time:
3,781ms
Service Level:
100%
Response Time:
170ms
Service Level:
100%
Response Time:
498ms
Service Level:
100%
Response Time:
4,506ms
Service Level:
100%
Response Time:
3,891ms
Service Level:
100%
Response Time:
5,451ms