The Homicide Stats API is dedicated to delivering detailed statistics on intentional homicide victims, sourced from the United Nations Office on Drugs and Crime. This API encompasses a wide array of data fields, including region, subregion, country, source, and annual counts of intentional homicides from 2000 to 2021, as well as the corresponding rates per 100,000 population.
{"subregions":["Latin America and the Caribbean","Northern America"]}
curl --location --request POST 'https://zylalabs.com/api/6128/homicide+stats+api/8398/get+subregions+by+region' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"region":"Required"}'
{"countries":["Anguilla","Antigua and Barbuda","Argentina","Aruba","Bahamas","Barbados","Belize","Bermuda","Bolivia (Plurinational State of)","Brazil","British Virgin Islands","Cayman Islands","Chile","Colombia","Costa Rica","Cuba","Cura\u00e7ao","Dominica","Dominican Republic","Ecuador","El Salvador","French Guiana","Grenada","Guadeloupe","Guatemala","Guyana","Haiti","Honduras","Jamaica","Mexico","Nicaragua","Panama","Paraguay","Peru","Puerto Rico","Saint Kitts and Nevis","Saint Lucia","Saint Vincent and the Grenadines","Suriname","Trinidad and Tobago","Uruguay","Venezuela (Bolivarian Republic of)"]}
curl --location --request POST 'https://zylalabs.com/api/6128/homicide+stats+api/8399/get+countries+by+subregions' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"subregion":"Required"}'
{"country":"Argentina","year":2021,"source":"CTS\/MoS","total_homicides":20353,"rate_per_100k":221.94}
curl --location --request POST 'https://zylalabs.com/api/6128/homicide+stats+api/8400/get+homicide+statistics+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required","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 Homicide Stats API provides comprehensive statistics on intentional homicide victims, including annual counts and rates per 100,000 population across various regions and countries from the year 2000 to 2021.
The data in the Homicide Stats API is sourced from the United Nations Office on Drugs and Crime, ensuring reliability and accuracy.
To access statistics for a specific country, you can use the API's query parameters to filter results by country name or code, allowing you to retrieve relevant homicide data for that location.
Yes, the Homicide Stats API includes data on homicide rates for various regions and subregions, enabling users to analyze trends and comparisons across different geographical areas.
The Homicide Stats API covers homicide statistics from the year 2000 to 2021, providing a comprehensive view of trends over the last two decades.
This endpoint returns a list of subregions filtered by the specified region. The response includes an array of subregion names, allowing users to understand regional divisions within the selected area.
The response includes fields such as "country," "year," "source," "total_homicides," and "rate_per_100k," providing detailed annual homicide data for the specified country.
Users can customize requests by specifying parameters such as "region" for subregions and "subregion" for countries. This allows for targeted data retrieval based on geographical interests.
The API covers five main regions: Americas, Asia, Africa, Europe, and Oceania. Each region can be further explored through subregions and countries for detailed homicide statistics.
The response data is structured in JSON format, with key-value pairs representing various data fields. For example, the homicide statistics response includes fields like "total_homicides" and "rate_per_100k" for easy interpretation.
Typical use cases include academic research, policy analysis, public health assessments, and crime trend analysis. Users can leverage the data to identify patterns and inform decision-making.
Users can analyze the data by comparing homicide rates across countries or regions, identifying trends over time, and visualizing statistics for presentations or reports, enhancing their understanding of homicide patterns.
The data is sourced from the United Nations Office on Drugs and Crime, which implements rigorous data collection and validation processes. This ensures high reliability and accuracy in the statistics provided.
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:
991ms
Service Level:
100%
Response Time:
2,140ms
Service Level:
100%
Response Time:
947ms
Service Level:
100%
Response Time:
1,024ms
Service Level:
100%
Response Time:
1,520ms
Service Level:
100%
Response Time:
406ms
Service Level:
100%
Response Time:
271ms
Service Level:
100%
Response Time:
249ms
Service Level:
100%
Response Time:
462ms
Service Level:
100%
Response Time:
117ms
Service Level:
100%
Response Time:
1,241ms
Service Level:
100%
Response Time:
134ms
Service Level:
100%
Response Time:
1,586ms
Service Level:
100%
Response Time:
729ms
Service Level:
100%
Response Time:
19ms
Service Level:
100%
Response Time:
1,115ms
Service Level:
100%
Response Time:
323ms
Service Level:
100%
Response Time:
396ms
Service Level:
100%
Response Time:
12,216ms
Service Level:
100%
Response Time:
885ms