Data as a Service
API referenceOdds (pass-through)

Sport Data API

Odds for one market

Odds for one market on one event. ``data`` holds a single element.

GET
/v1/odds/events/{event_id}/markets/{odd_type}
AuthorizationBearer <token>

Your API key: Authorization: Bearer asd_live_… (or asd_test_…).

In: header

Path Parameters

event_id*string

Odds event id as returned by GET /v1/odds/events (letters, digits, :, _, -).

Match^[A-Za-z0-9][A-Za-z0-9:_-]{0,127}$
Lengthlength <= 128
odd_type*string

Market type.

Value in"fastestLap" | "eventWinner" | "secondPlace" | "holeShot" | "heatWinner" | "overUnder" | "multiOverUnder" | "headToHead" | "shows" | "podiums" | "propBets" | "dreamTeam" | "eventExacta" | "heatExacta" | "raceTop10" | "raceTop5" | "raceTop3" | "teamMarkets"

Query Parameters

exactas_type?|

Exacta depth (2, 3 or 4), for the exacta markets.

over_under_sub_market_type?|

Over/under sub-market, when odd_type is overUnder.

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

application/json

curl -X GET "https://platform-api.altsportsleagues.ai/v1/odds/events/string/markets/fastestLap"
null
{
  "object": "error",
  "code": "invalid_request",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}
{
  "object": "error",
  "code": "unauthorized",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}
{
  "object": "error",
  "code": "payment_required",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}
{
  "object": "error",
  "code": "forbidden_plan",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}
{
  "object": "error",
  "code": "not_found",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}
{
  "object": "error",
  "code": "rate_limited",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}
{
  "object": "error",
  "code": "internal_error",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}
{
  "object": "error",
  "code": "upstream_unavailable",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}
{
  "object": "error",
  "code": "upstream_timeout",
  "message": "One human sentence describing what went wrong.",
  "request_id": "req_0123456789abcdef01234567"
}