Naar de inhoud
GET /v1/ratio

Gold/silver and gold/platinum ratios

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/metals-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}