/v1/ratio
Gold/silver and gold/platinum ratios
Try it live
10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.
It works. Grab an API key and use it in your project.
Get an API keyCode 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_..."}
)
Example response
A real response from this endpoint, captured by the latest 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
}