Vai al contenuto
GET /v1/curtain

Curtain fabric

Provalo dal vivo

10 chiamate gratuite al giorno — senza registrazione, senza chiave API. Passa dal gateway oanor.

Intestazioni personalizzate (facoltative)
api.oanor.com/sewing-api

Funziona. Prendi una chiave API e usala nel tuo progetto.

Ottieni una chiave API

Frammenti di codice

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

Risposta di esempio

Una risposta reale di questo endpoint, acquisita dall'ultimo health check.

{
    "data": {
        "note": "Drops = ceil(window width × fullness ÷ fabric width). Each drop is the finished length plus hems (rounded up to the pattern repeat). 2× fullness is standard, 2.5–3× for a luxe gather.",
        "drops": 3,
        "inputs": {
            "fullness": 2.5,
            "fabric_width": 54,
            "window_width": 60,
            "hem_allowance": 16,
            "finished_length": 84
        },
        "cut_length_inches": 100,
        "total_length_yards": 8.3333,
        "fabric_width_needed": 150,
        "total_length_inches": 300,
        "total_length_meters": 7.62
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:09.787Z",
        "request_id": "c6121e11-e087-4bf4-b5ea-97ed2f46edb9"
    },
    "status": "ok",
    "message": "Curtain fabric",
    "success": true
}