Travel risk ranking
GET
/v1/advisories/rankingEvery destination scored from what each government tells its own citizens about going there: 10 points for avoid all travel, 5 for avoid non-essential travel, 3 for caution or advice against parts, 0 for normal precautions, averaged across every government that rates it, out of 10, and ranked from the highest. Each destination carries its score 30 days before, how the governments split across the four levels, and the shade the world map gives it, set by the strongest advice more than 10% of the governments give, so one government alone never sets the colour.
Intel plan and upKey requiredJSON or CSVCached until the next release
Parameters
| Name | Type | Description |
|---|---|---|
| destoptional | string query | Destination: one or more ISO codes, comma separated e.g. KE |
| limitoptional | integer query | Rows per page, 1 to 1000 e.g. 100 |
| cursoroptional | string query | The next value from the previous page |
Request
# Travel risk ranking
curl "https://api.tourismapi.com/v1/advisories/ranking?limit=10" \
-H "X-API-Key: $TOURISM_API_KEY"const res = await fetch("https://api.tourismapi.com/v1/advisories/ranking?limit=10", {
headers: { "X-API-Key": process.env.TOURISM_API_KEY }
});
if (!res.ok) throw new Error(`Tourism API ${res.status}`);
const { meta, data } = await res.json();
console.log(meta.data_as_of, data);import os, requests
r = requests.get(
"https://api.tourismapi.com/v1/advisories/ranking?limit=10",
headers={"X-API-Key": os.environ["TOURISM_API_KEY"]},
timeout=10,
)
r.raise_for_status()
body = r.json()
print(body["meta"]["data_as_of"], body["data"])$ch = curl_init("https://api.tourismapi.com/v1/advisories/ranking?limit=10");
curl_setopt_array($ch, [
CURLOPT_RETURNTRANSFER => true,
CURLOPT_HTTPHEADER => ["X-API-Key: " . getenv("TOURISM_API_KEY")],
]);
$body = json_decode(curl_exec($ch), true);
print_r($body["data"]);
Example response
{
"meta": {
"request_id": "req_10f11b83f0",
"data_as_of": "2026-11-29T04:49:04Z",
"count": 250,
"ranked": 246,
"destinations": 250,
"points": {
"3": 10,
"2": 5,
"1": 3,
"0": 0
},
"scale": [
"normal precautions",
"caution, or advice against travel to parts",
"avoid non-essential travel",
"avoid all travel"
],
"note": "score is the average of each government's points for the destination, out of 10: avoid all travel 10, avoid non-essential travel 5, caution or advice against parts 3, normal precautions 0. rank counts from the highest score, equal scores sharing a rank; a destination rated by fewer than 3 governments has a score and no rank. levels_split counts the governments at each level for the whole country; parts_warnings those advising against parts beyond it. map_level is the strongest level more than 10% of the governments give, map_parts_level the strongest advice against parts more than 10% give where it goes further; a government's advice about its own country is left out."
},
"data": [
{
"rank": 1,
"destination": "AF",
"destination_name": "Afghanistan",
"score": 10,
"score_30_days_ago": 10,
"change": 0,
"governments": 30,
"levels_split": [
0,
0,
30
],
"parts_warnings": 0,
"map_level": 3,
"map_parts_level": null
},
{
"rank": 1,
"destination": "CF",
"destination_name": "Central African Republic",
"score": 10,
"score_30_days_ago": 10,
"change": 0,
"governments": 21,
"levels_split": [
0,
0,
21
],
"parts_warnings": 0,
"map_level": 3,
"map_parts_level": null
},
{
"rank": 3,
"destination": "SY",
"destination_name": "Syria",
"score": 9.8,
"score_30_days_ago": 9.6,
"change": 0.2,
"governments": 32,
"levels_split": [
0,
1,
31
],
"parts_warnings": 0,
"map_level": 3,
"map_parts_level": null
}
]
}Response fields
| Field | Type | Example |
|---|---|---|
| rank | number | 1 |
| destination | string | AF |
| destination_name | string | Afghanistan |
| score | number | 10 |
| score_30_days_ago | number | 10 |
| change | number | 0 |
| governments | number | 30 |
| levels_split | array | 3 items |
| parts_warnings | number | 0 |
| map_level | number | 3 |
| map_parts_level | null | null |