Ir al contenido
GET /v1/words

Word-level boxes & confidence

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/ocr-api

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

Obtener una clave API

Fragmentos de código

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

Respuesta de ejemplo

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

{
    "data": {
        "count": 58,
        "words": [
            {
                "bbox": {
                    "x0": 38,
                    "x1": 167,
                    "y0": 34,
                    "y1": 85
                },
                "text": "Mild",
                "confidence": 96.5
            },
            {
                "bbox": {
                    "x0": 198,
                    "x1": 477,
                    "y0": 36,
                    "y1": 104
                },
                "text": "Splendour",
                "confidence": 96.8
            },
            {
                "bbox": {
                    "x0": 504,
                    "x1": 559,
                    "y0": 37,
                    "y1": 88
                },
                "text": "of",
                "confidence": 97
            },
            {
                "bbox": {
                    "x0": 584,
                    "x1": 671,
                    "y0": 37,
                    "y1": 91
                },
                "text": "the",
                "confidence": 93.3
            },
            {
                "bbox": {
                    "x0": 698,
                    "x1": 1091,
                    "y0": 40,
                    "y1": 93
                },
                "text": "various-vested",
                "confidence": 92.4
            },
            {
                "bbox": {
                    "x0": 1119,
                    "x1": 1294,
                    "y0": 40,
                    "y1": 111
                },
                "text": "Night!",
                "confidence": 96.2
            },
            {
                "bbox": {
                    "x0": 105,
                    "x1": 304,
                    "y0": 111,
                    "y1": 162
                },
                "text": "Mother",
                "confidence": 95.5
            },
            {
                "bbox": {
                    "x0": 331,
                    "x1": 385,
                    "y0": 112,
                    "y1": 163
                },
                "text": "of",
                "confidence": 93.3
            },
            {
                "bbox": {
                    "x0": 411,
                    "x1": 824,
                    "y0": 112,
                    "y1": 184
                },
                "text": "wildly-working",
                "confidence": 91.9
            },
            {
                "bbox": {
                    "x0": 851,
                    "x1": 1048,
                    "y0": 116,
                    "y1": 167
                },
                "text": "visions!",
                "confidence": 96.5
            },
            {
                "bbox": {
                    "x0": 1077,
                    "x1": 1195,
                    "y0": 116,
                    "y1": 168
                },
                "text": "hail",
                "confidence": 36.1
            },
            {
     
…