/v1/meta
Service metadata
Essayez-le en direct
10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.
Ça marche. Récupérez une clé API et utilisez-la dans votre projet.
Obtenez une clé APIExtraits de code
curl "https://api.oanor.com/metals-api/v1/meta" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/metals-api/v1/meta", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/metals-api/v1/meta");
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/meta",
headers={"x-oanor-key": "oanor_test_..."}
)
Exemple de réponse
Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.
{
"data": {
"metals": [
{
"name": "Gold",
"unit": "troy ounce",
"symbol": "XAU"
},
{
"name": "Silver",
"unit": "troy ounce",
"symbol": "XAG"
},
{
"name": "Platinum",
"unit": "troy ounce",
"symbol": "XPT"
},
{
"name": "Palladium",
"unit": "troy ounce",
"symbol": "XPD"
},
{
"name": "Copper",
"unit": "pound",
"symbol": "HG"
}
],
"source": "gold-api.com (spot) + ECB/Frankfurter (FX), live",
"service": "metals-api",
"endpoints": {
"GET /v1/list": "All metals at once (currency=).",
"GET /v1/meta": "This document.",
"GET /v1/metal": "Spot price of a metal (symbol=XAU|XAG|XPT|XPD|HG, currency=USD|EUR|…).",
"GET /v1/ratio": "Gold/silver and gold/platinum ratios.",
"GET /v1/convert": "Value of a quantity (symbol=, amount=, currency=)."
},
"description": "Live precious & industrial metal spot prices (gold, silver, platinum, palladium, copper) from gold-api, with optional currency conversion via ECB rates. Get one metal's spot (in any currency), list all, value a quantity, or read the gold/silver and gold/platinum ratios. Live, no key. Distinct from generic ticker-quote APIs."
},
"meta": {
"timestamp": "2026-06-09T03:03:25.004Z",
"request_id": "b3426f29-0a35-481e-9eff-adb0145730e6"
},
"status": "ok",
"message": "Meta",
"success": true
}