How to determine for each competition the associatesd

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • 000Wizy000
    Junior Member
    • Dec 2024
    • 3

    #1

    How to determine for each competition the associatesd

    Hi!

    I want to save the sports and competitions in my database. In the competitions table, I have the sport_id foreign key.

    I know that in the 'SportsAPING/v1.0/listCompetitions' method I can send all sport IDs in a single request but, In response I don't have the associated sport ID from the Betfair API. I tried to make the request for each sport from my database but, it gave me this error:

    ```
    {
    "token": "",
    "product": "7bsIh7LEHJ3GSzsy",
    "status": "FAIL",
    "error": "TEMPORARY_BAN_TOO_MANY_REQUESTS"
    }
    ​```
    How do I call that method with all sports IDs and get the associated sport?
    Thanks!
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    Generally we need to see the code that was being used to make the call to the API. Without that, the returned message is meaningless.

    This text from the documentation might be helpful: "Returns a list of Competitions (i.e., World Cup 2013) associated with the markets selected by the MarketFilter. Currently only Football markets have an associated competition."

    Also worth noting that if the website does not have any current events scheduled for a competition, the competition data does not exist and cannot be retrieved via listCompetitions.

    Comment

    Working...
    X