/v1/metal
Spot price of a metal
Live testen
10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.
Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.
API-Key holenCode-Snippets
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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}