/v1/ratio
Gold/silver and gold/platinum ratios
Provalo dal vivo
10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.
Funziona. Prendi una chiave API e usala nel tuo progetto.
Ottieni una chiave APIFrammenti di codice
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_..."}
)
Risposta di esempio
Una risposta reale di questo endpoint, acquisita dall'ultimo 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
}