The Homicide Statistics Capture API focuses on the domain of urban crime statistics, specifically providing detailed data on homicide rates across various cities globally. The API processes data fields that include city names, homicide rates per 100,000 inhabitants, population figures, and geographical coordinates. It adheres to standards for statistical reporting and data representation, ensuring accuracy and consistency in the information provided. The API supports requests for specific cities or broader queries for multiple cities, returning structured data in JSON format. Each response includes fields such as 'city', 'homicide_rate', 'population', and 'country', allowing users to easily integrate and analyze crime data. Technical requirements include a valid API key for access, and the API is designed to handle a maximum of 100 requests per minute to ensure performance stability. This API is particularly useful for researchers, policymakers, and law enforcement agencies looking to understand crime trends and address public safety concerns.
[
{
"cities": [
"Colima",
"Durán",
"Ciudad Obregón",
"Zacatecas",
"Nelson Mandela Bay",
"Cajeme",
"Tijuana",
"Guayaquil",
"Uruapan",
"Machala",
"Durban",
"Portoviejo",
"Feira de Santana",
"Kingston",
"Celaya",
"Macapá",
"Port-au-Prince",
"Cape Town",
"uMgungundlovu",
"Ciudad Juárez",
"Acapulco",
"Buffalo City",
"Caucaia",
"Mossoró",
"Irapuato",
"Cuernavaca",
"Salvador",
"New Orleans",
"Manaus",
"Memphis",
"Vitória da Conquista",
"Natal",
"Cancun",
"Chihuahua",
"Fortaleza",
"Cali",
"Morelia",
"Johannesburg",
"Recife",
"Maceió",
"Santa Marta",
"León",
"Teresina",
"San Juan",
"San Pedro Sula",
"Baltimore",
"Buenaventura",
"Ensenada",
"Distrito Central",
"Detroit"
]
}
]
curl --location --request POST 'https://zylalabs.com/api/9511/homicide+statistics+capture+api/17368/get+cities+in+dataset' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
[
{
"city": "Cali",
"country": "Colombia",
"ranking": 36
}
]
curl --location --request POST 'https://zylalabs.com/api/9511/homicide+statistics+capture+api/17372/get+country+and+ranking+by+city' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"city":"Required"}'
[
{
"City": "Cali",
"Country": "Colombia",
"Homicides": 1007,
"Population": 2392381,
"Per_100000": 42.09
}
]
curl --location --request POST 'https://zylalabs.com/api/9511/homicide+statistics+capture+api/17378/get+homicide+rates+by+city' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"city":"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 returns structured data in JSON format, which includes fields such as 'city', 'homicide_rate', 'population', and 'country', making it easy to integrate and analyze the information.
The Homicide Statistics Capture API provides detailed data on homicide rates in cities worldwide, including fields such as 'city', 'homicide_rate' per 100,000 inhabitants, 'population' figures, and 'country'. This structured data is returned in JSON format, making it easy to integrate and analyze.
Researchers and policymakers can leverage the Homicide Statistics Capture API to access comprehensive crime statistics, identify trends in urban crime, and inform public safety initiatives. By retrieving data on specific cities or broader queries, they can analyze homicide rates in relation to population and geographical factors, aiding in decision-making and resource allocation.
The "get cities in dataset" endpoint returns a list of city names included in the homicide rate dataset. This allows users to identify which cities are available for further queries regarding homicide statistics.
The response from the "get homicide rates by city" endpoint includes key fields such as 'City', 'Country', 'Homicides', 'Population', and 'Per_100000', providing comprehensive details about homicide statistics for the specified city.
Users can customize their data requests by specifying parameters such as the city name when using the "get country and ranking by city" or "get homicide rates by city" endpoints. This allows for targeted queries to retrieve specific information.
In the API responses, 'City' refers to the name of the city, 'Country' indicates the nation where the city is located, 'Homicides' represents the total number of homicides reported, 'Population' is the total number of inhabitants, and 'Per_100000' shows the homicide rate per 100,000 people.
The "get country and ranking by city" endpoint provides information about a specified city's ranking in terms of homicide rates and the country it belongs to, allowing users to compare cities within a global context.
The response data is organized in a structured JSON format, where each entry is an object containing relevant fields. This structure facilitates easy parsing and integration into applications for analysis or reporting.
Typical use cases include academic research on crime trends, policy development for public safety initiatives, and law enforcement analysis to identify high-risk areas. Users can compare homicide rates across cities to inform strategic decisions.
Data accuracy is maintained through adherence to statistical reporting standards and regular updates from reliable sources. Quality checks are implemented to ensure consistency and reliability in the information provided.
Please have a look at our Refund Policy: https://zylalabs.com/terms#refund
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:
5,489ms
Service Level:
100%
Response Time:
5,659ms
Service Level:
100%
Response Time:
4,607ms
Service Level:
100%
Response Time:
63ms
Service Level:
100%
Response Time:
1,476ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
1,674ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
875ms
Service Level:
100%
Response Time:
11,987ms
Service Level:
100%
Response Time:
830ms
Service Level:
100%
Response Time:
398ms
Service Level:
100%
Response Time:
746ms
Service Level:
100%
Response Time:
4,497ms
Service Level:
100%
Response Time:
838ms
Service Level:
100%
Response Time:
227ms
Service Level:
100%
Response Time:
683ms
Service Level:
100%
Response Time:
1,010ms