Departures
GET
/v1/departuresTrips abroad by residents of a country: the outbound side of the same flows.
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 |
Request
# Residents travelling abroad
curl "https://api.tourismapi.com/v1/departures?country=CL,BA,AT&from=2025-01&to=2026-08" \
-H "X-API-Key: $TOURISM_API_KEY"const res = await fetch("https://api.tourismapi.com/v1/departures?country=CL,BA,AT&from=2025-01&to=2026-08", {
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/departures?country=CL,BA,AT&from=2025-01&to=2026-08",
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/departures?country=CL,BA,AT&from=2025-01&to=2026-08");
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_3ad052948b",
"data_as_of": "2026-10-20T04:48:00Z",
"count": 3,
"measure": "departures"
},
"data": [
{
"country": "CL",
"series": "sr_r3pa07sb",
"name": "CHL, _Z, DEPARTURES, PS, _T, _Z, _Z, A",
"unit": "PS",
"freq": "A",
"observations": []
},
{
"country": "BA",
"series": null,
"observations": [],
"note": "No departures series held for BA."
},
{
"country": "AT",
"series": "sr_f8fd0f1e",
"name": "Trips by duration, purpose and main destination: All countries of the world, Total, 1 night or over",
"unit": "Number",
"freq": "A",
"observations": [
{
"period": "2025",
"value": 30456817
}
]
}
]
}Response fields
| Field | Type | Example |
|---|---|---|
| country | string | CL |
| series | string | sr_r3pa07sb |
| name | string | CHL, _Z, DEPARTURES, PS, _T, _Z, _Z, A |
| unit | string | PS |
| freq | string | A |
| observations | array | 0 items |