Aller au contenu
GET /v1/floss

Floss / skein estimate

Essayez-le en direct

10 appels gratuits par jour — sans inscription, sans clé API. Passe par la passerelle oanor.

En-têtes personnalisés (facultatif)
api.oanor.com/crossstitch-api

Ça marche. Récupérez une clé API et utilisez-la dans votre projet.

Obtenez une clé API

Extraits de code

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

Exemple de réponse

Une réponse réelle de ce endpoint, capturée lors du dernier contrôle de santé.

{
    "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
}