/v1/ratio
Gold/silver and gold/platinum ratios
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
curl "https://api.oanor.com/metals-api/v1/ratio" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/metals-api/v1/ratio", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/metals-api/v1/ratio");
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/ratio",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Gold/silver ratio = ounces of silver to buy one ounce of gold; a classic relative-value gauge.",
"gold_usd": 4337.7,
"silver_usd": 67.83,
"updated_at": "2026-06-09T03:03:08Z",
"platinum_usd": 1765,
"gold_silver_ratio": 63.95,
"gold_platinum_ratio": 2.458
},
"meta": {
"timestamp": "2026-06-09T03:03:24.929Z",
"request_id": "dee84d21-b9df-4fb3-bfab-24ea578c60aa"
},
"status": "ok",
"message": "Ratios retrieved successfully",
"success": true
}