Zum Inhalt springen
GET /v1/design

Design size & fabric

Live testen

10 freie Calls pro Tag — keine Anmeldung, kein API-Key. Geht durchs oanor-Gateway.

Eigene Header (optional)
api.oanor.com/crossstitch-api

Funktioniert. Hol dir einen API-Key und nutze sie in deinem Projekt.

API-Key holen

Code-Snippets

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

Beispiel-Response

Echte Antwort dieses Endpoints, erfasst beim letzten Health-Check.

{
    "data": {
        "note": "Design size = stitch count ÷ fabric count (stitches per inch). Add a margin (≈3\") each side for the hoop and finishing. A higher count makes a smaller, finer piece.",
        "inputs": {
            "margin": 3,
            "fabric_count": 14,
            "stitch_width": 140,
            "stitch_height": 98
        },
        "converted": {
            "fabric_count": 18,
            "design_width_inches": 7.7778,
            "design_height_inches": 5.4444
        },
        "total_stitches": 13720,
        "design_width_cm": 25.4,
        "fabric_width_cm": 40.64,
        "design_height_cm": 17.78,
        "fabric_height_cm": 33.02,
        "design_width_inches": 10,
        "fabric_width_inches": 16,
        "design_height_inches": 7,
        "fabric_height_inches": 13
    },
    "meta": {
        "timestamp": "2026-06-06T07:14:09.146Z",
        "request_id": "0b08efc5-c3b6-43b2-a409-ec2c783cf507"
    },
    "status": "ok",
    "message": "Design size",
    "success": true
}