The Crime Index API specializes in delivering detailed crime statistics and safety indices for countries worldwide, enabling users to assess and compare safety levels across different regions. The API processes data fields such as 'Country', 'Crime Index', and 'Safety Index', which quantify the relative safety and crime levels in various nations. Crime Index is an estimation of the overall level of crime in a given city or country. We consider crime levels lower than 20 as very low, crime levels between 20 and 40 as low, crime levels between 40 and 60 as moderate, crime levels between 60 and 80 as high, and crime levels higher than 80 as very high. Safety index is, on the other way, quite the opposite of the crime index. If the city has a high safety index, it is considered very safe.
{"countries":["Haiti","Trinidad And Tobago","Jamaica","Puerto Rico","Colombia","Dominican Republic","Bahamas","Cuba","United States"]}
curl --location --request POST 'https://zylalabs.com/api/5998/crime+index+api/8034/obtain+countries+by+region' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"continent":"Required","region":"Required"}'
{"continent":"South America","region":"America","country":"Argentina","year":2025,"crime_index":63.4}
curl --location --request POST 'https://zylalabs.com/api/5998/crime+index+api/8035/get+crime+index+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
{"continent":"South America","region":"America","country":"Argentina","year":2025,"safety_indices":36.6}
curl --location --request POST 'https://zylalabs.com/api/5998/crime+index+api/8036/get+safety+index+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"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 Crime Index API provides comprehensive data on crime rates and safety indices across various countries, allowing users to assess and compare safety levels in different regions.
The Crime Index categorizes crime levels as follows: very low (below 20), low (20-40), moderate (40-60), high (60-80), and very high (above 80).
The Crime Index API processes data fields such as 'Country', 'Crime Index', and 'Safety Index', which quantify the relative safety and crime levels in various nations.
The Safety Index is the opposite of the Crime Index; a higher Safety Index indicates a safer environment. Users can utilize this index to evaluate and compare the safety of different cities or countries.
Yes, the Crime Index API is ideal for research and analysis as it delivers detailed crime statistics and safety indices, enabling users to make informed comparisons and assessments of safety levels globally.
The "obtain countries by region" endpoint returns a list of countries with available crime data based on the specified continent. The "get crime index by country" and "get safety index by country" endpoints return the respective indices for a specified country, including details like continent, region, and year.
Key fields in the response data include 'country', 'crime_index', 'safety_indices', 'continent', 'region', and 'year'. These fields provide essential information for assessing crime and safety levels.
The response data is structured in JSON format. Each endpoint returns an object containing relevant fields, such as country name, indices, and geographical classifications, making it easy to parse and utilize.
The "obtain countries by region" endpoint requires a continent parameter. The "get crime index by country" and "get safety index by country" endpoints require a country parameter, which can be obtained from the first endpoint.
The "obtain countries by region" endpoint provides a list of countries, while the other two endpoints provide specific crime and safety indices for individual countries, allowing for detailed safety assessments.
Users can analyze the crime and safety indices to compare safety levels across countries. For example, a user can assess whether a country with a crime index of 63.4 is safer than one with a crime index of 40.
The Crime Index API aggregates data from various reputable sources, including government reports, law enforcement agencies, and international crime databases, ensuring a comprehensive overview of crime statistics.
Typical use cases include academic research, travel safety assessments, urban planning, and policy-making. Users can leverage the data to identify trends, compare regions, and make informed decisions regarding safety.
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:
2,450ms
Service Level:
100%
Response Time:
9,873ms
Service Level:
100%
Response Time:
9,873ms
Service Level:
100%
Response Time:
9,873ms
Service Level:
100%
Response Time:
3,663ms
Service Level:
100%
Response Time:
8,268ms
Service Level:
100%
Response Time:
412ms
Service Level:
100%
Response Time:
9,873ms
Service Level:
100%
Response Time:
9,873ms
Service Level:
100%
Response Time:
6,660ms
Service Level:
100%
Response Time:
4,579ms
Service Level:
100%
Response Time:
5,290ms
Service Level:
100%
Response Time:
6,159ms
Service Level:
100%
Response Time:
51ms
Service Level:
100%
Response Time:
2,485ms
Service Level:
100%
Response Time:
4,030ms
Service Level:
100%
Response Time:
3,855ms
Service Level:
100%
Response Time:
2,367ms
Service Level:
100%
Response Time:
57ms
Service Level:
100%
Response Time:
742ms