GET/v1/currencies/{code}
One currency by ISO 4217 code
PARAMETERS
- codepath · stringREQUIRED
- ISO 4217 alphabetic codee.g. JPY
REQUEST
curl "https://api.apialmanac.com/v1/currencies/JPY" \ -H "X-API-Key: YOUR_KEY"
import requests
r = requests.get("https://api.apialmanac.com/v1/currencies/JPY", headers={"X-API-Key": "YOUR_KEY"})
print(r.status_code, r.headers.get("X-Gw-Remaining"))
print(r.json())
const r = await fetch("https://api.apialmanac.com/v1/currencies/JPY", {
headers: { "X-API-Key": "YOUR_KEY" }
});
console.log(r.status, r.headers.get("X-Gw-Remaining"));
console.log(await r.json());
RESPONSE
200OK
{
"code": "JPY",
"name": "Yen",
"numeric": "392",
"minor_unit": 0,
"symbol": "¥",
"kind": "currency",
"entities": [
"Japan"
]
}