FlashLive Sports

फ्रीमियम
द्वारा Tipsters CO | अपडेट किया गया 10일 전 | Sports
लोकप्रियता

9.9 / 10

लेटेंसी

442ms

सेवा का स्तर

100%

Health Check

100%

सभी चर्चाओं पर वापस जाएं

Stable ID for Engligh Premier League?

Rapid account: Robbo 99
robbo99
일 년 전

Hi,
I haven’t found a way to obtain or identify the permanent ID for a league, eg EPL.

For example, if I want to return upcoming fixtures from that league, I use ‘GET Tournament Fixtures events’, which works, but it requires the TOURNAMENT_STAGE_ID of ‘nunhS7Vn’, which seems to represent this season’s EPL only?

What happens next season, will this ID still work or does it change? If it does change each season, through which query would I obtain the new season’s TOURNAMENT_STAGE_ID?

Thanks !

Rapid account: Robbo 99
robbo99 Commented 일 년 전

Even better solution, if anyone needs a tip!

How to obtain the CURRENT season ID for a particular league (this code apparently changes every season for every league):

GET Tournaments list (sport=1) and look for LEAGUE_NAME=“EPL” and get the first “STAGES” object, then the “STAGE_ID” !

Rapid account: Robbo 99
robbo99 Commented 일 년 전

Oh, I think I just worked it out, if anyone else is wondering:

  • GET Tournaments list (sport=1) and look for LEAGUE_NAME=“EPL” and get the ACTUAL_TOURNAMENT_SEASON_ID: “nmP0jyrt”
  • Then, GET Season data (season_id = “nmP0jyrt”) and look for “TOURNAMENT_STAGE_ID”

Result: This season’s EPL ID: “nunhS7Vn”

Rapid account: Robbo 99
robbo99 Commented 일 년 전

OK, thanks for your reply.
So it does change every year, cheers!

Rapid account: Tipsters
tipsters Commented 일 년 전

Hello!
For this season’s EPL only
Use @/v1/tournaments/stages/data endpoint
Regards. Tipsters.

चर्चा में शामिल हों - नीचे टिप्पणी जोड़ें:

नई टिप्पणियाँ पोस्ट करने के लिए लॉग इन / साइनअप करें