Aller au contenu
GET /v1/stitches

Stitches/rows for dimensions

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/knitting-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/knitting-api/v1/stitches" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/knitting-api/v1/stitches", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/knitting-api/v1/stitches");
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/knitting-api/v1/stitches",
    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": "Stitches = (width/10)·gauge, rows = (length/10)·row-gauge, with gauge measured per 10 cm. Cast on the rounded stitch count.",
        "rows": 180,
        "inputs": {
            "width_cm": 50,
            "length_cm": 60,
            "rows_per_10cm": 30,
            "stitches_per_10cm": 22
        },
        "stitches": 110,
        "rows_exact": 180,
        "stitches_exact": 110
    },
    "meta": {
        "timestamp": "2026-06-05T19:50:19.840Z",
        "request_id": "0cfd9f42-4dfe-472e-84a1-85755aa766a0"
    },
    "status": "ok",
    "message": "Stitches for dimensions",
    "success": true
}