Benchmark
GET
/v1/stats/benchmarkA country's yearly total indexed to 2019 = 100, beside the average of the other countries in its region (or a peer list you choose). 45 countries.
Analyst plan and upKey requiredJSON or CSVCached until the next release
Parameters
| Name | Type | Description |
|---|---|---|
| countryrequired | string query | ISO code of a country that carries this statistic (listed at /v1/countries/{iso}) e.g. JP |
| peersoptional | region | list query | The region (default) or your own comma-separated list of ISO codes e.g. region |
Request
# A country against its region, on one index
curl "https://api.tourismapi.com/v1/stats/benchmark?country=JP" \
-H "X-API-Key: $TOURISM_API_KEY"const res = await fetch("https://api.tourismapi.com/v1/stats/benchmark?country=JP", {
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/stats/benchmark?country=JP",
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/stats/benchmark?country=JP");
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_c5f566d177",
"data_as_of": "2026-10-20T04:48:18Z",
"count": 11,
"country": "JP",
"method": {
"region": "East Asia & Pacific",
"peers": [
"AU",
"KH",
"KR",
"LA",
"NC",
"NZ",
"PH",
"SG",
"VN",
"VU"
],
"basis": "2019 = 100, whole years only"
}
},
"data": [
{
"year": "2015",
"country": 61.9,
"region": 74.9
},
{
"year": "2016",
"country": 75.4,
"region": 84.2
},
{
"year": "2017",
"country": 90,
"region": 86.3
}
]
}Response fields
| Field | Type | Example |
|---|---|---|
| year | string | 2015 |
| country | number | 61.9 |
| region | number | 74.9 |