/v1/exchange-rates
US Treasury reporting exchange rates
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/treasury-api/v1/exchange-rates" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/treasury-api/v1/exchange-rates", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/treasury-api/v1/exchange-rates");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
"https://api.oanor.com/treasury-api/v1/exchange-rates",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"count": 200,
"results": [
{
"country": "Euro Zone",
"currency": "Euro",
"record_date": "2026-03-31",
"exchange_rate": 0.87,
"effective_date": "2026-03-31",
"country_currency": "Euro Zone-Euro"
},
{
"country": "Cyprus",
"currency": "Euro",
"record_date": "2025-12-31",
"exchange_rate": 0.851,
"effective_date": "2025-12-31",
"country_currency": "Cyprus-Euro"
},
{
"country": "Euro Zone",
"currency": "Euro",
"record_date": "2025-12-31",
"exchange_rate": 0.851,
"effective_date": "2025-12-31",
"country_currency": "Euro Zone-Euro"
},
{
"country": "Euro Zone",
"currency": "Euro",
"record_date": "2025-09-30",
"exchange_rate": 0.852,
"effective_date": "2025-09-30",
"country_currency": "Euro Zone-Euro"
},
{
"country": "Euro Zone",
"currency": "Euro",
"record_date": "2025-06-30",
"exchange_rate": 0.853,
"effective_date": "2025-06-30",
"country_currency": "Euro Zone-Euro"
},
{
"country": "Austria",
"currency": "Euro",
"record_date": "2025-03-31",
"exchange_rate": 0.924,
"effective_date": "2025-03-31",
"country_currency": "Austria-Euro"
},
{
"country": "Belgium",
"currency": "Euro",
"record_date": "2025-03-31",
"exchange_rate": 0.924,
"effective_date": "2025-03-31",
"country_currency": "Belgium-Euro"
},
{
"country": "Croatia",
"currency": "Euro",
"record_date": "2025-03-31",
"exchange_rate": 0.924,
"effective_date": "2025-03-31",
"country_currency": "Croatia-Euro"
},
{
"country": "Cross Border",
"currency": "Euro",
"record_date": "2025-03-31",
"exchange_rate": 0.92,
"effective_date": "2025-03-31",
"country_currency": "Cross Border-Euro"
},
{
"country": "Cyprus",
"currency": "Euro",
"record_date": "2025-03-31",
"exchange_rate": 0.924,
"effective_date": "2025-03-31",
"country_currency": "Cyprus-Euro"
},
{
"country": "Estonia",
…