When requesting a list of markets per sport, POST request is:
Base URL /get_all_markets_per_sport
Required fields field for this call are is the sport_idand token.
With the above details the API provides the following message:
Code Block |
---|
<markets timestamp="1613571248404"> </market> <market id="3237008" name="1stHome - HalfTotal Double ChanceGoals" spread="false"> <outcomes> <outcomes> <outcome id="7072" name="120"/> <outcome id="691" name="1X1"/> <outcome id="713" name="X22"/> <outcome </outcomes> </market> <market id="392id="223" name="2+"/> <outcome id="76" name="1st Half totals home team "> <outcomes> 3"/> <outcome id="675" name="Over3+"/> <outcome id="7228" name="Under4+"/> </outcomes> </market> <market id="3937009" name="1stAway Half- totalsTotal away team goals" spread="false"> <outcomes> <outcomes> <outcome id="672" name="Over0"/> <outcome id="71" name="Under1"/> <outcome </outcomes> </market> <marketid="3" name="2"/> <outcome id="10223" name="3-way2+"/> <outcomes> <outcome id="176" name="13"/> <outcome id="375" name="23+"/> <outcome id="2228" name="X4+"/> </outcomes> </market> <market id="3967010" name="1stAsian Half european handicap Handicaps" spread="true"> <outcomes> <outcomes> <outcome id="1" name="1"/> <outcome id="3" name="2"/> <outcome id="2" name="X"/> </outcomes> </market> <market id="2077011" name="HighestAsian Scoring HalfTotals"> <outcomes> <outcome id spread="93" name="1st"/true"> <outcomes> <outcome id="946" name="2ndOver"/> <outcome id="957" name="EqualUnder"/> </outcomes> </market> <market id="2087012" name="Matchbet + TotalsOver/Under Lines" spread="true"> <outcomes> <outcome id="1076" name="Over and away"/> <outcome id="1067" name="Over and drawUnder"/> </outcomes> </market> <market <outcome id="1057013" name="Over and home"/> European Handicap 3-way" spread="true"> <outcomes> <outcome id="1041" name="Under and away1"/> <outcome id="1033" name="Under and draw2"/> <outcome id="1022" name="Under and homeX"/> </outcomes> </market> </markets> |
Tag markets has only one attribute which is timestamp with date and time when message was created.
Under that tag there is a tag named market that has ID and Name of the market and its nameif it has Spread or not.
Under the tag market there is outcomes tag which contains data for all outcomes placed into child outcome tags. Tags outcome have attribute representing id of outcome and name attribute that represents name of the outcome.
...