When requesting a list of markets per sport, POST request is:
Base URL /get_all_markets_per_sport
Required fields for this call are sport_id and token.
With the above details the API provides the following message:
<markets timestamp="1613571248404"> <market id="323" name="1st Half Double Chance"> <outcomes> <outcome id="70" name="12"/> <outcome id="69" name="1X"/> <outcome id="71" name="X2"/> </outcomes> </market> <market id="392" name="1st Half totals home team "> <outcomes> <outcome id="6" name="Over"/> <outcome id="7" name="Under"/> </outcomes> </market> <market id="393" name="1st Half totals away team "> <outcomes> <outcome id="6" name="Over"/> <outcome id="7" name="Under"/> </outcomes> </market> <market id="10" name="3-way"> <outcomes> <outcome id="1" name="1"/> <outcome id="3" name="2"/> <outcome id="2" name="X"/> </outcomes> </market> <market id="396" name="1st Half european handicap "> <outcomes> <outcome id="1" name="1"/> <outcome id="3" name="2"/> <outcome id="2" name="X"/> </outcomes> </market> <market id="207" name="Highest Scoring Half"> <outcomes> <outcome id="93" name="1st"/> <outcome id="94" name="2nd"/> <outcome id="95" name="Equal"/> </outcomes> </market> <market id="208" name="Matchbet + Totals"> <outcomes> <outcome id="107" name="Over and away"/> <outcome id="106" name="Over and draw"/> <outcome id="105" name="Over and home"/> <outcome id="104" name="Under and away"/> <outcome id="103" name="Under and draw"/> <outcome id="102" name="Under and home"/> </outcomes> </market> </markets>
Tag markets has only one attribute which is timestamp with date and time that message was created.
Under that tag there is a tag named market that has ID of market and its name.
Under 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.
0 Comments