Μετάβαση στο περιεχόμενο
GET /v1/thread-length

Floss length and skeins

Δοκιμάστε το ζωντανά

10 δωρεάν κλήσεις την ημέρα — χωρίς εγγραφή, χωρίς κλειδί API. Μέσω του gateway του oanor.

Προσαρμοσμένες κεφαλίδες (προαιρετικά)
api.oanor.com/embroidery-api

Δουλεύει. Πάρε ένα κλειδί API και χρησιμοποίησέ το στο έργο σου.

Λάβετε ένα κλειδί API

Αποσπάσματα κώδικα

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

Παράδειγμα απόκρισης

Πραγματική απόκριση αυτού του endpoint, από τον τελευταίο έλεγχο υγείας.

{
    "data": {
        "note": "Floss use is estimated from the geometry of a full cross on the fabric: front two diagonals plus the back returns is about (2√2 + 2) ÷ fabric count inches per stitch. 5,000 stitches on 14-count is roughly 1,724 inches — about 44 m of finished stitching. A 6-strand skein is ~8 m, so stitching with 2 strands yields ~24 m of usable thread per skein; this is a planning estimate — buy a little extra and dye-lot match.",
        "inputs": {
            "strands": 2,
            "fabric_count": 14,
            "stitch_count": 5000
        },
        "total_thread_m": 43.8,
        "skeins_estimate": 1.83,
        "total_thread_in": 1724.4,
        "thread_per_stitch_in": 0.3449
    },
    "meta": {
        "timestamp": "2026-06-07T08:17:53.163Z",
        "request_id": "61c11709-b67d-4bb2-acee-1836ce8803d2"
    },
    "status": "ok",
    "message": "Thread length",
    "success": true
}