Zum Inhalt springen
GET /v1/rate

Rate for one pair (with inverse)

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/currencyconverter-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

curl "https://api.oanor.com/currencyconverter-api/v1/rate" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/currencyconverter-api/v1/rate", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/currencyconverter-api/v1/rate");
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/currencyconverter-api/v1/rate",
    headers={"x-oanor-key": "oanor_test_..."}
)

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "to": "JPY",
        "from": "GBP",
        "rate": 214.659824,
        "source": "open.er-api.com",
        "inverse": 0.00465853,
        "last_update": "Thu, 11 Jun 2026 00:02:31 +0000",
        "next_update": "Fri, 12 Jun 2026 00:15:41 +0000"
    },
    "meta": {
        "timestamp": "2026-06-11T07:48:43.321Z",
        "request_id": "f46637b0-de61-49a3-9a4c-8d93eb4e3fb8"
    },
    "status": "ok",
    "message": "Rate retrieved successfully",
    "success": true
}