The Homicide Cities Data Retrieval 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/9507/homicide+cities+data+retrieval+api/17373/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/9507/homicide+cities+data+retrieval+api/17377/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/9507/homicide+cities+data+retrieval+api/17381/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 Cities Data Retrieval 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 Cities Data Retrieval 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.
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:
70ms
Service Level:
100%
Response Time:
5,659ms
Service Level:
100%
Response Time:
63ms
Service Level:
100%
Response Time:
52ms
Service Level:
100%
Response Time:
8,683ms
Service Level:
100%
Response Time:
1,674ms
Service Level:
100%
Response Time:
1,476ms
Service Level:
100%
Response Time:
53ms
Service Level:
100%
Response Time:
55ms
Service Level:
100%
Response Time:
6,970ms