[{"countries":["United States","Puerto Rico","Bahamas","Cuba","Dominican Republic","Haiti","Trinidad And Tobago","Jamaica","Canada"]}]
curl --location --request POST 'https://zylalabs.com/api/6075/crime+insights+api/8254/acquire+countries+by+region' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"continent":"Required","region":"Required"}'
[{"continent":"North America","region":"America","country":"United States","year":2025,"crime_index":49.2}]
curl --location --request POST 'https://zylalabs.com/api/6075/crime+insights+api/8255/crime+index+by+country' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{"country":"Required"}'
[{"continent":"North America","region":"America","country":"United States","year":2025,"safety_indices":50.8}]
curl --location --request POST 'https://zylalabs.com/api/6075/crime+insights+api/8256/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 Insights 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 Insights API focuses on providing comprehensive crime data and safety indices for nations across the globe, allowing users to evaluate and contrast safety conditions in various areas. Data fields like "Country," "Crime Index," and "Safety Index," which measure the relative safety and crime levels in different countries, are processed by the API. An estimate of the general level of crime in a particular city or nation is called the Crime Index. Crime levels below 20 are regarded as very low, those between 20 and 40 as low, those between 40 and 60 as moderate, those between 60 and 80 as high, and those over 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.
The Crime Insights API provides comprehensive data on crime rates and safety indices for countries worldwide, including fields like 'Country,' 'Crime Index,' and 'Safety Index.'
The Crime Index estimates the general level of crime in a particular city or nation. It is categorized as very low (below 20), low (20-40), moderate (40-60), high (60-80), and very high (over 80).
The Safety Index is the opposite of the Crime Index; a high Safety Index indicates a very safe city or country, while a low Safety Index suggests higher risk levels.
Yes, the Crime Insights API allows users to evaluate and contrast safety conditions and crime rates across various countries, making it easy to perform comparisons.
The API provides in-depth data, but the frequency of updates may vary. It is advisable to check the API documentation for specific details regarding data refresh rates.
The "acquire countries by region" endpoint returns a list of countries with available crime data for a specified continent. The "crime index by country" and "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 understanding crime and safety levels.
The response data is structured as an array of JSON objects. Each object contains relevant fields such as country name, indices, and geographical classifications, making it easy to parse and utilize.
The "acquire countries by region" endpoint requires a continent parameter, while the "crime index by country" and "safety index by country" endpoints require a country parameter. Users can specify these parameters to customize their data requests.
The API covers countries across various continents, including Africa, America, Asia, Europe, and Oceania. It also categorizes regions within these continents, such as Eastern Europe or Southern Asia, providing extensive geographical coverage.
Users can analyze the crime and safety indices to assess and compare safety levels across countries. For example, comparing the crime index of two countries can help identify safer travel destinations or areas for investment.
Typical use cases include travel planning, risk assessment for businesses, academic research on crime trends, and policy-making for public safety initiatives. The data aids in informed decision-making regarding safety.
The API sources its data from reputable crime statistics and safety reports. Regular quality checks and validation processes are implemented to ensure the accuracy and reliability of 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