/v1/dye-weight
Dye weight from depth of shade
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/dye-api/v1/dye-weight" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/dye-api/v1/dye-weight", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/dye-api/v1/dye-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/dye-api/v1/dye-weight",
headers={"x-oanor-key": "oanor_test_..."}
)
Beispiel-Response
Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.
{
"data": {
"note": "Dye weight = the weight of fabric (WOF) × the depth of shade, the percentage of dye on the weight of the goods. A 2 % shade on 100 g of fabric uses 2 g of dye; pale shades run under 0.5 %, deep blacks 4 % or more. Working on-weight-of-fabric is what makes a dye recipe scale and repeat — the same percentage gives the same colour whether you dye a swatch or a bolt.",
"inputs": {
"fabric_weight_g": 250,
"depth_of_shade_pct": 1.5
},
"dye_weight_g": 3.75
},
"meta": {
"timestamp": "2026-06-07T08:17:56.278Z",
"request_id": "1bc7a84e-20a3-40da-862a-fcbe813e38fb"
},
"status": "ok",
"message": "Dye weight",
"success": true
}