Some events found via the Visualizer and/or the website cannot be found via the API?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • bfexchange
    Junior Member
    • Jan 2024
    • 6

    #1

    Some events found via the Visualizer and/or the website cannot be found via the API?

    I have seen this many times?


    The following is just one example....


    Competition: Millwall U21 v Colchester U21
    Date: 2024-02-12


    I can find it in the Visulaizer as Event ID 33012977
    https://docs.developer.betfair.com/v...ts-operations/

    I can see the markets for this event in the website at
    https://www.betfair.com/exchange/plu...tting-33012977


    Is it a difference of the test API vs the Live API? I am using the exact same session information and credentials to talk to the API as I do within the Visualizer.


    I don't want to subscribe and then find out so many events are just not available via the API.

    Thank you.


  • BetfairDeveloperProgram
    Administrator
    • Oct 2008
    • 680

    #2
    Hi bfexchange

    The market mentioned in the example is no longer available on the Betfair website.

    The Visualiser itself is a user interface that makes direct calls to the Betfair API so all markets available on the website should be available whether you are making direct API requests or requests via the Visualiser tools.

    If you notice the issue again please provide full details of the API requests you are making that aren't returning the market information as expected. This will help us to advise you further.

    Kind Regards

    Neil

    Comment

    • bfexchange
      Junior Member
      • Jan 2024
      • 6

      #3
      It happens quite often unless maybe I am doing something wrong

      This is another example

      https://www.betfair.com/exchange/plu...tting-33014273

      In Visualizer I can see the event ID is
      33014273

      I have sent these 3 API filter requests, none of them find it:

      {'textQuery': 'Glentoran', 'eventTypeIds': ['1'], 'inPlayOnly': 1}

      {'textQuery': 'Glentoran', 'eventTypeIds': ['1'], 'turnInPlayEnabled': 1}

      {'textQuery': 'Glentoran', 'eventTypeIds': ['1'], 'marketStartTime': {'to': '2024-02-13T05:00:00Z'}}​

      Comment

      • bfexchange
        Junior Member
        • Jan 2024
        • 6

        #4
        See attached
        Attached Files

        Comment

        • bfexchange
          Junior Member
          • Jan 2024
          • 6

          #5
          Also, I just tried this request filter below which contains ONLY the event ID and no other limiting parameters, and the API returns 0 results.


          {"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listEvents", "params": {"filter":{"eventIds":["33014273"]}}, "id": 1}


          The code works for 90% or more of events, so it doesn't seem to be the code. It just doesn't see certain events, no matter what filter I use. And it is only with certain events, it is not randomly failing or anything like thst. It is specific only to certain events.There is no error return in the JSON response, just 0 results.
          Last edited by bfexchange; 13-02-2024, 09:29 AM.

          Comment

          • bfexchange
            Junior Member
            • Jan 2024
            • 6

            #6
            Here is a 3rd example:

            Competition: Chittagong Abahani v Brothers Union


            3 filters below with 0 results returned by API:

            {'textQuery': 'Chittagong', 'eventTypeIds': ['1'], 'inPlayOnly': 1}

            {'textQuery': 'Chittagong', 'eventTypeIds': ['1'], 'turnInPlayEnabled': 1}

            {'textQuery': 'Chittagong', 'eventTypeIds': ['1'], 'marketStartTime': {'to': '2024-02-14T05:00:00Z'}}


            Found in website:
            https://www.betfair.com/exchange/plu...et/1.224791748

            Found in visualizer:
            33016372

            90% of other events work fine. Just every so often this happens, but only for certain events. It's not a random issue.
            Last edited by bfexchange; 13-02-2024, 10:18 AM.

            Comment

            • bfexchange
              Junior Member
              • Jan 2024
              • 6

              #7
              Another filter sent with API code (simple filter with only event ID):


              request:

              {"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listEvents", "params": {"filter":{"eventIds":["33016372"]}}, "id": 1}


              response:

              ​{'jsonrpc': '2.0', 'result': [], 'id': 1}

              Comment

              • BetfairDeveloperProgram
                Administrator
                • Oct 2008
                • 680

                #8
                Hi bfexchange,

                The earlier event are now settled so can longer be located.

                However, the below request returns the expected result both via the Visualiser and when testing directly.

                [{"jsonrpc": "2.0", "method": "SportsAPING/v1.0/listEvents", "params": {"filter":{"eventIds":["33016372"]}}, "id": 1}

                [{"jsonrpc":"2.0","result":[{"event":{"id":"33016372","name":"Chittagong Abahani v Brothers Union","countryCode":"BD","timezone":"GMT","openDa te":"2024-02-13T09:00:00.000Z"},"marketCount":20}],"id":1}]

                Please check and confirm the specific endpoints you are sending the requests to and if the issue continues, please contact us via bdp@betfair.com

                Kind Regards

                Neil

                Comment

                Working...
                X