214 countries and territories189 of 193 UN membersmonthly to 2026-09back to 1926
Documentation / Compare and rank / 29 of 75

Compare countries

GET/v1/compare

One measure for several countries on a shared period grid, with each country's definition noted.

Developer plan and upKey requiredJSON or CSVCached until the next release
Parameters
NameTypeDescription
countryoptionalstring
query
One or more ISO codes, comma separated
e.g. CL,BA,AT
measurerequiredstring
query
arrivals, nights, spend, departures, occupancy or capacity
e.g. arrivals
fromoptionalperiod
query
First period to return
e.g. 2025-01
tooptionalperiod
query
Last period to return
e.g. 2026-08
Request
# Several countries side by side, same definitions
curl "https://api.tourismapi.com/v1/compare?country=CL,BA,AT&measure=arrivals&from=2025-01&to=2026-08" \
  -H "X-API-Key: $TOURISM_API_KEY"
Ready
Example response
{
    "meta": {
        "request_id": "req_332f112500",
        "data_as_of": "2026-10-20T04:48:17Z",
        "count": 19,
        "measure": "arrivals",
        "series": {
            "CL": null,
            "BA": null,
            "AT": "sr_tn5yvzzv"
        }
    },
    "data": [
        {
            "period": "2025-01",
            "CL": null,
            "BA": null,
            "AT": 3491284
        },
        {
            "period": "2025-02",
            "CL": null,
            "BA": null,
            "AT": 3524043
        },
        {
            "period": "2025-03",
            "CL": null,
            "BA": null,
            "AT": 3144123
        }
    ]
}
Response fields
FieldTypeExample
periodstring2025-01
CLnullnull
BAnullnull
ATnumber3491284