When requesting a list of player markets per sport, POST request is:
Base URL /get_player_markets_per_sport
Required field for this call is the sport_id
With the above details the API provides the following message:
<player_markets timestamp="1614360492833"> <sport id="1" name="Soccer"/> <markets> <market id="1" name="First Goal"/> <market id="2" name="Any Time"/> <market id="3" name="Last Goal"/> <market id="4" name="2 Or More"/> <market id="5" name="Hat-Trick"/> <market id="7" name="1st or Last"/> <market id="17" name="15 Minutes"/> <market id="18" name="1st Half"/> </markets> </player_markets>
Tag player_markets has only one attribute which is timestamp with date and time when message was created.
Under that tag there is a tag named sport that has ID of sport and its name, and tag markets which contains data for all outcomes placed into child market tags.
Tags market have attribute representing id of outcome and name attribute that represents name of the outcome.
Add Comment