/v1/materials
Metal density reference
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/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_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"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
}