Issue with API? Randomly missing data

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • misiek
    Junior Member
    • Oct 2018
    • 20

    #1

    Issue with API? Randomly missing data

    I am randomly getting some of the data missing from the response. At the same time demo tool returns them for the same calls.

    Here is an example call:

    Code:
    {
        "jsonrpc": "2.0",
        "method": "SportsAPING/v1.0/listMarketCatalogue",
        "params": {
            "filter": {
                "eventIds": [
                    "32930421"
                ]
            },
            "marketProjection": [
                "COMPETITION",
                "EVENT_TYPE",
                "RUNNER_DESCRIPTION",
                "MARKET_DESCRIPTION"
            ],
            "maxResults": "1000"
        }
    }​
    It does not return event type name and market name:

    Code:
    {
        "jsonrpc": "2.0",
        "result": [
            {
                "marketId": "1.223424159",
                "description": {
                    "persistenceEnabled": true,
                    "bspMarket": false,
                    "marketTime": "2024-01-11T19:00:00.000Z",
                    "suspendTime": "2024-01-11T19:00:00.000Z",
                    "bettingType": "ODDS",
                    "turnInPlayEnabled": true,
                    "marketType": "TEAM_B_1",
                    "regulator": "MALTA LOTTERIES AND GAMBLING AUTHORITY",
                    "marketBaseRate": 2.0,
                    "discountAllowed": false,
                    "wallet": "UK wallet",
                    "rules": "<!--Football - Team +1/2/3 --><br>Who will win this match with the stated handicap applied? <br> All bets apply to Full Time according to the match officials, plus any stoppage time. Extra-time/penalty shoot-outs are not included.<br><br></b>For further information please see <a href=http://content.betfair.com/aboutus/content.asp?sWhichKey=Rules%20and%20Regulations#undefined.do style=color:0163ad; text-decoration: underline; target=_blank>Rules & Regs<br><br>\n",
                    "rulesHasDate": true,
                    "priceLadderDescription": {
                        "type": "CLASSIC"
                    }
                },
                "totalMatched": 0.0,
                "runners": [
                    {
                        "selectionId": 28630606,
                        "runnerName": "Fram Reykavik (W) +1",
                        "handicap": 0.0,
                        "sortPriority": 1
                    },
                    {
                        "selectionId": 7273633,
                        "runnerName": "IR Reykjavik (W) -1",
                        "handicap": 0.0,
                        "sortPriority": 2
                    },
                    {
                        "selectionId": 151478,
                        "runnerName": "Draw",
                        "handicap": 0.0,
                        "sortPriority": 3
                    }
                ],
                "eventType": {
                    "id": "1"
                },
                "competition": {
                    "id": "12281061"
                }
            }​
    Then the next call for another market:

    Code:
    {
        "jsonrpc": "2.0",
        "method": "SportsAPING/v1.0/listMarketCatalogue",
        "params": {
            "filter": {
                "eventIds": [
                    "32929458"
                ]
            },
            "marketProjection": [
                "COMPETITION",
                "EVENT_TYPE",
                "RUNNER_DESCRIPTION",
                "MARKET_DESCRIPTION"
            ],
            "maxResults": "1000"
        }
    }​
    and event type name and market name are available:

    Code:
    {
        "jsonrpc": "2.0",
        "result": [
            {
                "marketId": "1.223409332",
                "marketName": "Over/Under 8.5 Goals",
                "description": {
                    "persistenceEnabled": true,
                    "bspMarket": false,
                    "marketTime": "2024-01-11T17:00:00.000Z",
                    "suspendTime": "2024-01-11T17:00:00.000Z",
                    "bettingType": "ODDS",
                    "turnInPlayEnabled": true,
                    "marketType": "OVER_UNDER_85",
                    "regulator": "MALTA LOTTERIES AND GAMBLING AUTHORITY",
                    "marketBaseRate": 2.0,
                    "discountAllowed": false,
                    "wallet": "UK wallet",
                    "rules": "<!--Football - Over/Unders --><br>How many goals will be scored in this match.<br> All bets apply to Full Time according to the match officials, plus any stoppage time. Extra-time/penalty shoot-outs are not included.<br><br></b>For further information please see <a href=http://content.betfair.com/aboutus/content.asp?sWhichKey=Rules%20and%20Regulations#undefined.do style=color:0163ad; text-decoration: underline; target=_blank>Rules & Regs<br><br>\n",
                    "rulesHasDate": true,
                    "priceLadderDescription": {
                        "type": "CLASSIC"
                    }
                },
                "totalMatched": 0.0,
                "runners": [
                    {
                        "selectionId": 2407528,
                        "runnerName": "Under 8.5 Goals",
                        "handicap": 0.0,
                        "sortPriority": 1
                    },
                    {
                        "selectionId": 2407529,
                        "runnerName": "Over 8.5 Goals",
                        "handicap": 0.0,
                        "sortPriority": 2
                    }
                ],
                "eventType": {
                    "id": "1",
                    "name": "Soccer"
                },
                "competition": {
                    "id": "2609677",
                    "name": "Moroccan Botola Pro 1"
                }
            },​
    Last edited by misiek; 11-01-2024, 09:07 AM.
  • jabe
    Senior Member
    • Dec 2014
    • 705

    #2
    I can't see anything wrong with your call, but I note you haven't specified "id" : 1 as in the examples in the documentation. I've specified "id" : 1 in all calls, but I can't remember what it specifies, nor can I find an explanation of its purpose.
    Last edited by jabe; 11-01-2024, 03:04 PM.

    Comment

    • pwebtech
      Member
      • Apr 2021
      • 49

      #3
      I thought (could be wrong now looking at it as, like you say, there doesn't seem to be any documentation on this, and so it's likely just a copy over from demo tool's calls) that the 'id' property was optional but if used was there simply for the user's benefit to match up requests and responses if needed. I.e. the 'id' could be anything you want and is returned in the response from the API.

      Comment

      • stableshade
        Junior Member
        • Apr 2024
        • 1

        #4
        Originally posted by jabe View Post
        I can't see anything wrong with your call, but I note you haven't specified "id" : 1 as in the examples in the documentation. I've specified "id" : 1 in all calls, but I can't remember what it specifies, nor can I find an explanation of its purpose.connections game
        Is it necessary to specify "id"? I want to know how important it is since I didn't specify an id either.

        Comment

        • guanmun2
          Junior Member
          • Apr 2024
          • 1

          #5
          What is the purpose of the 'id' property in the API you mentioned, and how does it assist users in matching up requests and responses?
          poppy playtime chapter 3

          Comment

          Working...
          X