Naar de inhoud
GET /v1/dye-weight

Dye weight from depth of shade

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

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

Voorbeeldrespons

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