/v1/floss
Floss / skein estimate
Probeer het live
10 gratis calls per dag — geen registratie, geen API-key. Loopt via de oanor-gateway.
Het werkt. Haal een API-key op en gebruik hem in je project.
Verkrijg een API-sleutelCodefragmenten
curl "https://api.oanor.com/crossstitch-api/v1/floss" \ -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/crossstitch-api/v1/floss", {
headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/crossstitch-api/v1/floss");
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/crossstitch-api/v1/floss",
headers={"x-oanor-key": "oanor_test_..."}
)
Voorbeeldrespons
Een echte respons van dit endpoint, vastgelegd bij de laatste health check.
{
"data": {
"note": "Skeins ≈ ceil(stitches ÷ stitches-per-skein); ~1,200 stitches/skein is typical for 2 strands on 14-count (more on finer counts). Buy at least one skein per colour — partial colours still need a whole skein.",
"inputs": {
"colors": 8,
"stitches": 5000,
"stitches_per_skein": 1200
},
"skeins_to_buy": 8,
"skeins_by_thread": 5
},
"meta": {
"timestamp": "2026-06-06T07:14:09.238Z",
"request_id": "12f5977b-d6ba-42aa-bc8b-fd2c493a5e0e"
},
"status": "ok",
"message": "Floss estimate",
"success": true
}