/v1/materials
Metal density reference
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/metalweight-api/v1/materials" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/metalweight-api/v1/materials", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/metalweight-api/v1/materials");
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/metalweight-api/v1/materials",
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": {
"note": "Typical engineering densities. Pass material=<name> or an explicit density to the weight/cost endpoints.",
"materials": {
"tin": 7280,
"gold": 19320,
"lead": 11340,
"zinc": 7140,
"brass": 8500,
"steel": 7850,
"bronze": 8800,
"copper": 8960,
"nickel": 8900,
"silver": 10490,
"aluminum": 2700,
"chromium": 7190,
"platinum": 21450,
"titanium": 4500,
"tungsten": 19300,
"aluminium": 2700,
"cast_iron": 7200,
"magnesium": 1740,
"wrought_iron": 7700,
"stainless_steel": 8000
},
"density_unit": "kg/m³"
},
"meta": {
"timestamp": "2026-06-04T01:59:10.145Z",
"request_id": "cf33f935-2eb8-4d5a-81b3-ecc4d5f0c72c"
},
"status": "ok",
"message": "Metal density reference",
"success": true
}