Skip to content

Promotional API

Base URL

You can get promotional API base URL from promoApiBaseUrl property in window.serverData object described in Promotional materials section.

Endpoints

Upcoming matches

List upcoming matches for league

GET /upcoming-matches

Parameters:

  • site_id (String) REQUIRED: Site ID from site_id property in window.serverData object
  • league_id (Number) REQUIRED: League ID can be obtained from Tools -> Promo Materials -> Landing Leagues section of Admin Panel.
  • language_code (String) REQUIRED: Two-letter language code. You can use visitorData.languageCode property in window.serverData object

Payload:

{
  "payload": [
    {
      "team_home": "Home Team Name",
      "team_home_logo_url": "https://example.com/image.png",
      "team_away": "Away Team Name",
      "team_away_logo_url": "https://example.com/image.png",
      "starts_at": "2022-01-01 00:00:00",
      "odds": {
        "1": 1.00,
        "x": 1.00,
        "2": 1.00
      }
    }
  ]
}

Last update: January 24, 2024