Zum Inhalt springen
GET /v1/convert

Value of a quantity of metal

Live testen

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

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

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

API-Key holen

Code-Snippets

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

Beispiel-Response

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

{
    "data": {
        "name": "Gold",
        "unit": "troy ounce",
        "amount": 2,
        "symbol": "XAU",
        "currency": "EUR",
        "unit_price": 3758.8341,
        "total_value": 7517.67
    },
    "meta": {
        "timestamp": "2026-06-09T03:03:24.239Z",
        "request_id": "dbc60e3e-ffd7-4eb5-981e-fa72064499fd"
    },
    "status": "ok",
    "message": "Conversion retrieved successfully",
    "success": true
}