Naar de inhoud
GET /v1/materials

Metal density reference

Probeer het live

10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.

Aangepaste headers (optioneel)
api.oanor.com/metalweight-api

Het werkt. Haal een API-key op en gebruik hem in je project.

Verkrijg een API-sleutel

Codefragmenten

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_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste 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
}