Sports API.
Covers the documented Sports HTTP endpoints: schedules (per-date, live, prematch and per-tournament), individual fixtures, fixture and result changes, sport-event summaries and timelines, the sport/category/tournament/season catalogue, and player/competitor/venue profiles.
Every function returns {:ok, struct} | {:error, UOF.API.Error.t()}, where
the struct is an UOF.Schemas.API.Sports.* embedded schema, takes an
optional lang (ISO code, default "en"), and accepts a trailing opts
keyword list merged into the Req request (see UOF.API.Utils.HTTP).
For client-side conveniences over these endpoints — lazily streaming the full
prematch catalogue and filtering sport events by liveodds booking state —
see UOF.API.Sports.Fixtures.
Summary
Functions
List all the available categories for the given sport.
Get the details of the given competitor.
Get the details of the given fixture.
Get a list of all the fixtures that have changed.
Get a list of all live fixtures.
Get the details of the given player.
Get a lists of almost all fixtures Betradar offers prematch odds for.
Get a lists of all the fixtures that have changed results.
Get a list of all the fixtures scheduled to start at the given date (in UTC).
Get all the seasons of the given tournament.
List all the tournaments for the given sport.
List all the available sports.
Get information and results for the given fixture.
Get detailed information (including event timeline) for the given sport event.
Get details about the given tournament.
Get the schedule of the given tournament.
Get the details of the given venue.
Functions
List all the available categories for the given sport.
Get the details of the given competitor.
Get the details of the given fixture.
Get a list of all the fixtures that have changed.
Defaults to changes in the last 24 hours. Pass filters to narrow the
results:
:after- only return changes after this point in time (aDateTime,NaiveDateTime, or an already-formatted ISO8601 string). Use this to catch up on changes missed during downtime longer than 24 hours.:sport- only return changes for the given sport urn (e.g."sr:sport:1").
Get a list of all live fixtures.
Get the details of the given player.
Get a lists of almost all fixtures Betradar offers prematch odds for.
Get a lists of all the fixtures that have changed results.
Same optional filters as fixture_changes/3.
Get a list of all the fixtures scheduled to start at the given date (in UTC).
Get all the seasons of the given tournament.
List all the tournaments for the given sport.
List all the available sports.
Get information and results for the given fixture.
Get detailed information (including event timeline) for the given sport event.
Prematch, Live or Post-match. Prematch details are very brief. Post-match
details include results.
Get details about the given tournament.
Get the schedule of the given tournament.
Get the details of the given venue.