Cross-rate grid
GET
/v1/fx/matrixHow many of one currency each other buys, for 2 to 10 currencies on one day: the newest day held, or the last day on or before the date asked.
On every plan, Free includedKey requiredJSON or CSVCached until the next release
Parameters
| Name | Type | Description |
|---|---|---|
| currenciesoptional | string query | 2 to 10 ISO 4217 codes, comma separated (USD,EUR,GBP,JPY,CNY,THB when left out) e.g. USD,EUR,THB |
| dateoptional | date query | A day (today when left out for holidays, the newest day held for rates) e.g. 2026-12-25 |
Request
# Cross rates between up to ten currencies
curl "https://api.tourismapi.com/v1/fx/matrix" \
-H "X-API-Key: $TOURISM_API_KEY"const res = await fetch("https://api.tourismapi.com/v1/fx/matrix", {
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/fx/matrix",
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/fx/matrix");
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_fc035d12c3",
"data_as_of": "2026-11-07T04:51:50Z",
"count": 1,
"read": "rates[A][B] is how many B one A buys",
"asked_for": null
},
"data": {
"date": "2026-11-06",
"currencies": [
"JPY",
"CNY",
"THB"
],
"rates": {
"USD": {
"USD": 1,
"EUR": 0.895656,
"GBP": 0.747112,
"JPY": 158.325,
"CNY": 6.67129,
"THB": 33.5504
},
"EUR": {
"USD": 1.1165,
"EUR": 1,
"GBP": 0.83415,
"JPY": 176.77,
"CNY": 7.4485,
"THB": 37.459
},
"GBP": {
"USD": 1.33849,
"EUR": 1.19883,
"GBP": 1,
"JPY": 211.916,
"CNY": 8.92945,
"THB": 44.9068
},
"JPY": {
"USD": 0.00631612,
"EUR": 0.00565707,
"GBP": 0.00471884,
"JPY": 1,
"CNY": 0.0421367,
"THB": 0.211908
},
"CNY": {
"USD": 0.149896,
"EUR": 0.134255,
"GBP": 0.111989,
"JPY": 23.7323,
"CNY": 1,
"THB": 5.02907
},
"THB": {
"USD": 0.0298059,
"EUR": 0.0266959,
"GBP": 0.0222683,
"JPY": 4.71903,
"CNY": 0.198844,
"THB": 1
}
}
}
}Response fields
| Field | Type | Example |
|---|---|---|
| date | string | 2026-11-06 |
| currencies | array | 3 items |
| rates | object | object |