Skip to Content
Referencia de la APICuotas del evento

Cuotas de Evento

Obtén todas las cuotas de un evento específico con filtrado opcional por sportsbook y tipo de mercado. Devuelve una lista paginada de entradas de cuotas.

GET /api/v1/events/{eventId}/odds

Este es un endpoint de conveniencia equivalente a GET /api/v1/odds?event={eventId}. Ambos devuelven los mismos datos; utiliza el que mejor se adapte a la estructura de tu URL.

AutenticaciónPermalink for this section

Requiere una API key mediante la cabecera X-API-Key, la cabecera Authorization: Bearer o el parámetro de consulta api_key. Disponible en todos los planes.

Parámetros de RutaPermalink for this section

ParámetroTipoObligatorioDescripción
eventIdstringIdentificador único del evento (p. ej., evt_nba_bos_lal_20260208)

Parámetros de ConsultaPermalink for this section

ParámetroTipoPor defectoDescripción
sportsbookstringallFiltrar por sportsbook. Separados por comas para varios (p. ej., draftkings,pinnacle)
marketstringallFiltrar por tipo de mercado. Separados por comas para varios (p. ej., moneyline,spread)
limitinteger50Resultados por página (máximo 200)
offsetinteger0Desplazamiento de paginación

Cabeceras de RespuestaPermalink for this section

Todas las respuestas incluyen las cabeceras estándar de rate limit y metadatos:

CabeceraDescripción
X-RateLimit-LimitMáximo de solicitudes por minuto para tu plan
X-RateLimit-RemainingSolicitudes restantes en la ventana actual
X-RateLimit-ResetMarca de tiempo Unix en la que se reinicia la ventana del rate limit
X-Data-DelayRetardo de datos para tu plan (p. ej., 0s, 60s)
X-Request-IdIdentificador único de la solicitud para depuración

Objeto OddsPermalink for this section

CampoTipoDescripción
idstringIdentificador único de la cuota
sportsbookstringIdentificador del sportsbook (p. ej., draftkings, pinnacle)
event_idstringIdentificador del evento padre
market_typestringTipo de mercado: moneyline, spread, total, player_prop, etc.
selectionstringLa selección (nombre del equipo, nombre del jugador, Over/Under)
selection_typestringhome, away, over, under
linenumber | nullValor de la línea para mercados de spread/total, null para moneyline
odds.americannumberCuotas americanas (p. ej., -110, +150)
odds.decimalnumberCuotas decimales (p. ej., 1.909)
odds.probabilitynumberProbabilidad implícita (p. ej., 0.5238)
timestampstringHora ISO 8601 en que SharpAPI refrescó por última vez esta cuota a través de su pipeline — avanza en cada ciclo de ingesta. Es una señal de frescura del feed / actividad (igual que el timestamp de OpticOdds); NO es cuándo cambió el precio por última vez. Consulta Entendiendo el campo timestamp.

Ejemplos de SolicitudesPermalink for this section

Obtener todas las cuotas de un eventoPermalink for this section

curl -X GET "https://api.sharpapi.io/api/v1/events/evt_nba_bos_lal_20260208/odds" \ -H "X-API-Key: YOUR_API_KEY"

Filtrar por sportsbook y mercadoPermalink for this section

curl -X GET "https://api.sharpapi.io/api/v1/events/evt_nba_bos_lal_20260208/odds?sportsbook=draftkings,pinnacle&market=moneyline,spread" \ -H "X-API-Key: YOUR_API_KEY"

Paginar todas las cuotasPermalink for this section

# First page curl -X GET "https://api.sharpapi.io/api/v1/events/evt_nba_bos_lal_20260208/odds?limit=50&offset=0" \ -H "X-API-Key: YOUR_API_KEY" # Next page curl -X GET "https://api.sharpapi.io/api/v1/events/evt_nba_bos_lal_20260208/odds?limit=50&offset=50" \ -H "X-API-Key: YOUR_API_KEY"

RespuestaPermalink for this section

Éxito (200)Permalink for this section

{ "data": [ { "id": "dk_evt_nba_bos_lal_20260208_ml_home", "sportsbook": "draftkings", "event_id": "evt_nba_bos_lal_20260208", "market_type": "moneyline", "selection": "Boston Celtics", "selection_type": "home", "line": null, "odds": { "american": -180, "decimal": 1.556, "odds_probability": 0.643 }, "timestamp": "2026-02-08T12:05:00Z" }, { "id": "dk_evt_nba_bos_lal_20260208_ml_away", "sportsbook": "draftkings", "event_id": "evt_nba_bos_lal_20260208", "market_type": "moneyline", "selection": "Los Angeles Lakers", "selection_type": "away", "line": null, "odds": { "american": 155, "decimal": 2.55, "odds_probability": 0.392 }, "timestamp": "2026-02-08T12:05:00Z" }, { "id": "pin_evt_nba_bos_lal_20260208_ml_home", "sportsbook": "pinnacle", "event_id": "evt_nba_bos_lal_20260208", "market_type": "moneyline", "selection": "Boston Celtics", "selection_type": "home", "line": null, "odds": { "american": -175, "decimal": 1.571, "odds_probability": 0.636 }, "timestamp": "2026-02-08T12:03:00Z" }, { "id": "dk_evt_nba_bos_lal_20260208_spread_home", "sportsbook": "draftkings", "event_id": "evt_nba_bos_lal_20260208", "market_type": "spread", "selection": "Boston Celtics", "selection_type": "home", "line": -6.5, "odds": { "american": -110, "decimal": 1.909, "odds_probability": 0.524 }, "timestamp": "2026-02-08T12:05:00Z" }, { "id": "dk_evt_nba_bos_lal_20260208_total_over", "sportsbook": "draftkings", "event_id": "evt_nba_bos_lal_20260208", "market_type": "total", "selection": "Over", "selection_type": "over", "line": 224.5, "odds": { "american": -110, "decimal": 1.909, "odds_probability": 0.524 }, "timestamp": "2026-02-08T12:05:00Z" } ], "meta": { "count": 5, "total": 48, "pagination": { "limit": 50, "offset": 0, "has_more": false, "next_offset": null }, "updated_at": "2026-02-08T12:05:00Z", "filters": { "sportsbook": "all", "market": "all" } } }

Respuestas de ErrorPermalink for this section

404 Not Found

{ "error": { "code": "not_found", "message": "Event not found", "docs": "https://docs.sharpapi.io/en/api-reference/events-odds" } }

401 Unauthorized

{ "error": { "code": "unauthorized", "message": "Missing or invalid API key", "docs": "https://docs.sharpapi.io/en/authentication" } }

429 Rate Limited

{ "error": { "code": "rate_limited", "message": "Rate limit exceeded. Upgrade your tier for higher limits.", "docs": "https://docs.sharpapi.io/en/pricing" } }

Endpoints RelacionadosPermalink for this section

  • Events - Listar y buscar eventos
  • Event Details - Obtener detalles del evento con datos de mercado integrados
  • Event Markets - Listar tipos de mercado disponibles para un evento
  • Odds Snapshot - Obtener cuotas de todos los eventos
  • Best Odds - Obtener las mejores cuotas en todos los sportsbooks
Last updated on