Ir al contenido
GET /v1/design

Design size & fabric

Pruébalo en vivo

10 llamadas gratis al día — sin registro, sin clave API. Pasa por el gateway de oanor.

Encabezados personalizados (opcional)
api.oanor.com/crossstitch-api

Funciona. Consigue una clave API y úsala en tu proyecto.

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

Una respuesta real de este endpoint, capturada en la última comprobación de estado.

{
    "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
}