> ## Documentation Index
> Fetch the complete documentation index at: https://docs.apinn.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Inicio rápido

> Tu primera petición en un minuto.

## 1. Consigue tu clave API

Crea una cuenta en [apinn.io](https://www.apinn.io/signup) — la prueba gratuita incluye **5 000 peticiones / hora**. Tu clave (`pnk_…`) se muestra en tu [área de cliente](https://www.apinn.io/account).

## 2. Haz tu primera petición

Pasa la clave en el header `X-API-Key` en cada llamada.

<CodeGroup>
  ```bash curl theme={null}
  # Historial completo de las cuotas de un evento
  curl https://api.apinn.io/api/odds \
    -H "X-API-Key: TU_CLAVE" \
    -G --data-urlencode "event_id=1608247913" \
       --data-urlencode "full_history=1"
  ```

  ```python Python theme={null}
  import requests

  BASE = "https://api.apinn.io"
  H = {"X-API-Key": "TU_CLAVE"}

  r = requests.get(f"{BASE}/api/odds",
      params={"event_id": 1608247913, "full_history": 1}, headers=H)
  odds = r.json()
  print(f"{len(odds)} movimientos de cuota")
  ```

  ```javascript Node.js theme={null}
  const BASE = "https://api.apinn.io";
  const H = { "X-API-Key": "TU_CLAVE" };

  const r = await fetch(`${BASE}/api/odds?event_id=1608247913&full_history=1`, { headers: H });
  const odds = await r.json();
  console.log(`${odds.length} movimientos de cuota`);
  ```
</CodeGroup>

## 3. Explora el book

```bash theme={null}
# Listar los deportes
curl https://api.apinn.io/api/sports -H "X-API-Key: TU_CLAVE"

# Los partidos en vivo de un deporte (29 = Soccer)
curl "https://api.apinn.io/api/fixtures?sport_id=29&live=1" -H "X-API-Key: TU_CLAVE"

# Las cuotas principales de un partido
curl "https://api.apinn.io/api/odds?event_id=1608247913&main_lines_only=1" -H "X-API-Key: TU_CLAVE"
```

<Tip>
  Cada respuesta devuelve headers de cuota: `X-Quota-Limit`, `X-Quota-Remaining`, `X-Quota-Cost`. Ver [Cuotas y límites](/es/rate-limits).
</Tip>

## Próximos pasos

<CardGroup cols={2}>
  <Card title="Referencia de la API" icon="code" href="/es/api-reference/introduction">
    Todos los endpoints y parámetros.
  </Card>

  <Card title="Flujo en tiempo real" icon="bolt" href="/es/concepts/streaming">
    Recibe los deltas enviados por SSE.
  </Card>
</CardGroup>
