/v1/liquor-ratio
Bath volume from liquor ratio
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/dye-api/v1/liquor-ratio" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dye-api/v1/liquor-ratio", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dye-api/v1/liquor-ratio");
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/dye-api/v1/liquor-ratio",
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": "Bath volume = the weight of goods (in kg) × the liquor ratio, the litres of dye-bath per kilo of fabric — a 20:1 ratio is 20 L of water for every kg. Lower ratios (8–15:1) save water, dye and energy and exhaust deeper; higher ratios (20–40:1) level more evenly on delicate or pale work. The ratio sets how much auxiliary you then add at a given g/L (see /v1/auxiliary).",
"inputs": {
"liquor_ratio": 20,
"fabric_weight_g": 250
},
"bath_volume_l": 5
},
"meta": {
"timestamp": "2026-06-07T08:17:56.349Z",
"request_id": "7b8be088-653e-4666-94d3-25eea9a1d943"
},
"status": "ok",
"message": "Liquor ratio",
"success": true
}