Zum Inhalt springen
GET /v1/floss

Floss / skein estimate

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/crossstitch-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten 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
}