This API provides comprehensive global crime data for the year 2025, offering both the Numbeo Crime Index (1–100) and the Numbeo Safety Index (100–1) for countries around the world. It is designed for users who need reliable, structured, and up-to-date information on perceived crime levels and safety conditions in different regions.
The Numbeo Crime Index is a perception-based metric ranging from 0 to 100, where higher values indicate higher perceived levels of crime within a country. Conversely, the Safety Index is an inverse score, also ranging from 0 to 100, where higher values indicate greater perceived safety. These indices are compiled from survey data reflecting how residents and visitors perceive crime, safety, and related risks in each location.
The API allows users to access country-level rankings, compare crime and safety scores across regions, and identify global trends in perceived criminal activity. For example, countries such as Venezuela, Papua New Guinea, and Haiti rank among those with the highest perceived crime rates, while others such as the United Arab Emirates, Qatar, and Andorra are among the safest according to the Safety Index.
[
{
"countries": [
"Venezuela",
"Papua New Guinea",
"Haiti",
"Afghanistan",
"South Africa",
"Honduras",
"Trinidad and Tobago",
"Syria",
"Jamaica",
"Peru",
"Nigeria",
"Angola",
"Guyana",
"Cameroon",
"Bolivia",
"Brazil",
"Somalia",
"Yemen",
"Namibia",
"Argentina",
"Ecuador",
"Bangladesh",
"Puerto Rico",
"Colombia",
"Zimbabwe",
"Chile",
"Dominican Republic",
"Mozambique",
"United States Virgin Islands",
"Paraguay",
"El Salvador",
"Guatemala",
"Bahamas",
"Fiji",
"Libya",
"Kenya",
"France",
"Ivory Coast",
"Kyrgyzstan",
"Uganda",
"North Korea",
"Costa Rica",
"Maldives",
"Tanzania",
"Mexico",
"Botswana",
"Belize",
"Algeria",
"Mongolia",
"Uruguay",
"Cambodia",
"Myanmar",
"Nicaragua",
"Ethiopia",
"Iran",
"Mauritius",
"Belarus",
"Belgium",
"United States",
"Malaysia",
"United Kingdom",
"New Zealand",
"Sweden",
"Morocco",
"Ireland",
"Egypt",
"Australia",
"Ukraine",
"Italy",
"Lebanon",
"Greece",
"Indonesia",
"Canada",
"Zambia",
"Sudan",
"Ghana",
"Kazakhstan",
"Tunisia",
"Barbados",
"Albania",
"India",
"Moldova",
"Pakistan",
"Philippines",
"Iraq",
"Malta",
"Palestine",
"Panama",
"Sri Lanka",
"Turkey",
"North Macedonia",
"Vietnam",
"Jordan",
"Germany",
"Russia",
"Thailand",
"Serbia",
"Latvia",
"Nepal",
"Spain",
"Bulgaria",
"Montenegro",
"Cuba",
"Luxembourg",
"Hungary",
"Cyprus",
"Norway",
"Kuwait",
"Lithuania",
"Portugal",
"Azerbaijan",
"Israel",
"Slovakia",
"Cayman Islands",
"Austria",
"Brunei",
"Poland",
"Uzbekistan",
"Romania",
"Netherlands",
"Rwanda",
"Finland",
"Czechia",
"Switzerland",
"Georgia",
"Denmark",
"Iceland",
"Croatia",
"South Korea",
"Bahrain",
"China",
"Saudi Arabia",
"Slovenia",
"Estonia",
"Monaco",
"Japan",
"Singapore",
"Armenia",
"Hong Kong",
"Oman",
"Taiwan",
"Qatar",
"United Arab Emirates",
"Andorra"
]
}
]
curl --location --request POST 'https://zylalabs.com/api/12353/fetch+crime+rates+data+api/23326/countries' --header 'Authorization: Bearer YOUR_API_KEY' --header 'Content-Type: application/json' --data-raw '{}'
[
{
"Crime Index Numbeo (1-100) 2025": 63.4,
"Safety Index Numbeo (100-1) 2025": 36.6
}
]
curl --location --request POST 'https://zylalabs.com/api/12353/fetch+crime+rates+data+api/23327/crime+rate+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 "Countries" endpoint returns detailed crime rate statistics for specific countries, including various crime types and year-on-year comparisons. The "Crime Rate by Country" endpoint provides the Numbeo Crime Index and Safety Index for a specified country, reflecting perceived crime levels and safety.
Key fields in the response data include "Crime Index Numbeo (1-100)" and "Safety Index Numbeo (100-1)" for the "Crime Rate by Country" endpoint. The "Countries" endpoint returns a list of countries along with their respective crime statistics.
The response data is structured in JSON format. For the "Countries" endpoint, it returns an array of countries, while the "Crime Rate by Country" endpoint returns an object with the country name as the key and its crime and safety indices as values.
Users can specify the country name when using the "Crime Rate by Country" endpoint. The "Countries" endpoint does not require parameters, as it retrieves data for all available countries.
Typical use cases include research on global safety metrics, policy-making for crime prevention, and personal safety assessments for travelers. Users can analyze trends and compare crime rates across different regions.
The data is sourced from Numbeo, which compiles crime and safety indices based on survey responses from residents and visitors regarding their perceptions of crime and safety in various locations.
Users can analyze the indices to identify high-risk areas or safe countries for travel. The structured JSON format allows for easy integration into applications or data visualization tools for further analysis.
If the API returns partial or empty results, users should verify the country name for accuracy. Additionally, they can check if the country is included in the dataset, as not all countries may have available data.
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:
9,873ms
Service Level:
100%
Response Time:
9,873ms
Service Level:
100%
Response Time:
9,873ms
Service Level:
100%
Response Time:
8,268ms
Service Level:
100%
Response Time:
2,211ms
Service Level:
100%
Response Time:
3,663ms
Service Level:
100%
Response Time:
390ms
Service Level:
100%
Response Time:
134ms
Service Level:
100%
Response Time:
2,072ms
Service Level:
100%
Response Time:
415ms