/v1/metals
Official gold, silver, platinum and palladium prices in manat
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
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_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"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
}