/v1/melt-weight
Cast weight and metal to melt
Pruébalo en vivo
10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.
Funciona. Consigue una clave API y úsala en tu proyecto.
Obtener una clave APIFragmentos de código
curl "https://api.oanor.com/casting-api/v1/melt-weight" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/casting-api/v1/melt-weight", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/casting-api/v1/melt-weight");
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/casting-api/v1/melt-weight",
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": "The casting weight = its volume × the metal density (grey iron ~7.2, steel ~7.85, aluminium ~2.70, brass ~8.5 g/cm³). But you must melt more than the part: the sprue, runners and risers are remelted scrap, so the metal to pour = casting weight ÷ the casting yield (the fraction that ends up as good casting, often 50–75 % for sand work). A 7 kg iron casting at 70 % yield needs about 10 kg in the ladle.",
"inputs": {
"yield_pct": 70,
"volume_cm3": 1000,
"density_g_cm3": 7
},
"cast_weight_g": 7000,
"cast_weight_kg": 7,
"metal_to_melt_g": 10000,
"metal_to_melt_kg": 10
},
"meta": {
"timestamp": "2026-06-07T08:17:50.241Z",
"request_id": "ee9060ea-8668-4ea1-9373-f339a8e3631d"
},
"status": "ok",
"message": "Melt weight",
"success": true
}