Naar de inhoud
GET /v1/weft

Weft yarn

Probeer het live

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

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

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

Verkrijg een API-sleutel

Codefragmenten

curl "https://api.oanor.com/weaving-api/v1/weft" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/weaving-api/v1/weft", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/weaving-api/v1/weft");
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/weaving-api/v1/weft",
    headers={"x-oanor-key": "oanor_test_..."}
)

Voorbeeldrespons

Een echte respons van dit endpoint, vastgelegd bij de laatste health check.

{
    "data": {
        "note": "Picks = PPI × woven length. Each pick crosses the warp width plus the draw-in. Total weft = picks × that length; add extra for selvedges and bobbin waste.",
        "inputs": {
            "ppi": 12,
            "warp_width": 20,
            "cloth_length": 60,
            "draw_in_percent": 10
        },
        "total_picks": 792,
        "weft_per_pick_inches": 22,
        "total_weft_yarn_yards": 484,
        "total_weft_yarn_inches": 17424
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:08.934Z",
        "request_id": "71230feb-004d-4dec-b3d3-dfb3b60629fe"
    },
    "status": "ok",
    "message": "Weft yarn",
    "success": true
}