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, first sign in to your account and navigate to the API you want to use. From the API's Pricing section, choose a plan and complete the subscription process. Once subscribed, return to the API page and you will see your API Access Key displayed at the top of the documentation page. You can use this key 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.
The free trial lasts for 7 days and allows you to make up to 50 API requests.
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. If the API offers a free trial, you will see a "Free 7-Day Trial" option in its Pricing section. The trial lasts for 7 days and allows up to 50 API requests, enabling you to evaluate the API before subscribing to a paid plan.
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.
You can monitor your API usage through the response headers included with every request:
x-zyla-api-calls-monthly-used: Shows the total number of API requests you have used during the current billing period.
x-zyla-api-calls-monthly-remaining: Shows the number of API requests you have remaining for the current billing period.
Yes, you can cancel your subscription at any time. Simply go to the Pricing section of the API you're subscribed to and click the "Unsubscribe" button.
Please note that upgrades, downgrades, and cancellations take effect immediately. Once your subscription is canceled, access to the service will end immediately, regardless of any remaining API calls in your quota.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
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:
6,970ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
63ms