Ir al contenido
GET /v1/materials

Metal density reference

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/metalweight-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}