[{"countries":["Haiti","Trinidad And Tobago","Jamaica","Peru","Guyana","Brazil","Argentina","Colombia","Puerto Rico","Dominican Republic","Chile","Ecuador","Venezuela","Honduras","El Salvador","Guatemala","Bahamas"]}]
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"}'
After signing up, every developer is assigned a personal API access key, a unique combination of letters and digits provided to access to our API endpoint. To authenticate with the Crime Index API simply include your bearer token in the Authorization header.
| 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.
(Save 2 months with annual billing 🎉)
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.
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