Naar de inhoud
GET /v1/metals

Official gold, silver, platinum and palladium prices in manat

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "base": "AZN",
        "date": "2026-06-10",
        "count": 4,
        "metals": [
            {
                "code": "XAG",
                "unit": "troy ounce",
                "metal": "Silver",
                "azn_per_ounce": 107.8813
            },
            {
                "code": "XAU",
                "unit": "troy ounce",
                "metal": "Gold",
                "azn_per_ounce": 7096.1485
            },
            {
                "code": "XPD",
                "unit": "troy ounce",
                "metal": "Palladium",
                "azn_per_ounce": 2041.598
            },
            {
                "code": "XPT",
                "unit": "troy ounce",
                "metal": "Platinum",
                "azn_per_ounce": 2817.393
            }
        ],
        "source": "Central Bank of Azerbaijan"
    },
    "meta": {
        "timestamp": "2026-06-10T14:00:20.192Z",
        "request_id": "8d0ddb16-f99b-4d16-b6fa-91fdaadc33a9"
    },
    "status": "ok",
    "message": "Metals retrieved successfully",
    "success": true
}