Skip to content
GET /v1/curtain

Curtain fabric

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/sewing-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

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

Example response

A real response from this endpoint, captured by the latest 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
}