Endpoint Playground
Returns the global city ranking for a Numbeo index family, either the continuously-updated current index or a historical periodic snapshot.
14 Oct 2026: 403 cities; 4 fields had a value in every checked item.
Sample value profiles: rank: 1 to 403, median 202; city: “Port Moresby, Papua New Guinea” and 402 other values; indices: median 2 entries.
curl "https://api.crawlora.net/api/v1/numbeo/indices/rankings?index=quality-of-life&scope=current" \
-H "x-api-key: $CRAWLORA_API_KEY"| Parameter | Type | Required | Prefilled value | Description |
|---|---|---|---|---|
| index | string | Yes | quality-of-life | Index family |
| scope | string | No | current | current (default) or historical |
| period | string | No | Required when scope=historical, e.g. 2026-mid or 2025 |
{
"code": 200,
"msg": "OK",
"data": {
"index": "crime",
"scope": "current",
"cities": [
{
"rank": 1,
"city": "Pretoria, South Africa",
"city_slug": "Pretoria",
"indices": [
{
"name": "Crime Index",
"value": 81.7
},
{
"name": "Safety Index",
"value": 18.3
}
]
}
],
"source_url": "https://www.numbeo.com/crime/rankings_current.jsp"
}
}The sample response, schema and code snippets below work without an account. Sending a live request needs an API key.