Visitor spend
GET
/v1/spendWhat visitors spent, in local currency, or converted at each period's reference rate.
Developer plan and upKey requiredJSON or CSVCached until the next release
Parameters
| Name | Type | Description |
|---|---|---|
| countryoptional | string query | One or more ISO codes, comma separated e.g. CL,BA,AT |
| freqoptional | M | Q | A query | Frequency: monthly, quarterly or annual e.g. M |
| fromoptional | period query | First period to return e.g. 2025-01 |
| tooptional | period query | Last period to return e.g. 2026-08 |
| currencyoptional | string query | Convert money to this ISO 4217 currency at each period's rate e.g. USD |
Request
# Visitor spend in local currency or converted
curl "https://api.tourismapi.com/v1/spend?country=CL,BA,AT&from=2025-01&to=2026-08¤cy=USD" \
-H "X-API-Key: $TOURISM_API_KEY"const res = await fetch("https://api.tourismapi.com/v1/spend?country=CL,BA,AT&from=2025-01&to=2026-08¤cy=USD", {
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/spend?country=CL,BA,AT&from=2025-01&to=2026-08¤cy=USD",
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/spend?country=CL,BA,AT&from=2025-01&to=2026-08¤cy=USD");
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_b34a6c9ee0",
"data_as_of": "2026-11-07T04:49:21Z",
"count": 3,
"measure": "spend",
"currency": "USD",
"converted_at": "the average rate of each period"
},
"data": [
{
"country": "CL",
"series": "sr_a33w090d",
"name": "CHL, EXP, USD, _T, A",
"unit": "USD",
"freq": "A",
"observations": []
},
{
"country": "BA",
"series": "sr_8p5h436g",
"name": "Travel receipts (balance of payments, credit), quarterly: Million euro, Services: travel, Total economy, Total economy, Credit, Rest of the world",
"unit": "NR",
"freq": "Q",
"observations": [
{
"period": "2025-Q4",
"value": 448.9
},
{
"period": "2026-Q1",
"value": 291.9
},
{
"period": "2026-Q2",
"value": 423.1
}
],
"note": "This series is not in a currency we can convert; shown as published."
},
{
"country": "AT",
"series": "sr_e1j960jt",
"name": "Travel receipts (balance of payments, credit), quarterly: Million euro, Services: travel, Total economy, Total economy, Credit, Rest of the world",
"unit": "NR",
"freq": "Q",
"observations": [
{
"period": "2025-Q4",
"value": 5280
},
{
"period": "2026-Q1",
"value": 9229
},
{
"period": "2026-Q2",
"value": 4632
}
],
"note": "This series is not in a currency we can convert; shown as published."
}
]
}Response fields
| Field | Type | Example |
|---|---|---|
| country | string | CL |
| series | string | sr_a33w090d |
| name | string | CHL, EXP, USD, _T, A |
| unit | string | USD |
| freq | string | A |
| observations | array | 0 items |