/v1/metal
Spot price of a metal
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/metals-api/v1/metal" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/metals-api/v1/metal", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/metals-api/v1/metal");
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/metal",
headers={"x-oanor-key": "oanor_test_..."}
)
Respuesta de ejemplo
Una respuesta real de este endpoint, capturada en la última comprobación de estado.
{
"data": {
"name": "Gold",
"unit": "troy ounce",
"price": 4337.7002,
"symbol": "XAU",
"currency": "USD",
"price_usd": 4337.7002,
"updated_at": "2026-06-09T03:03:08Z"
},
"meta": {
"timestamp": "2026-06-09T03:03:24.821Z",
"request_id": "95a6504b-55b2-4641-90b7-11024f0fa7ff"
},
"status": "ok",
"message": "Metal spot retrieved successfully",
"success": true
}