Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

You can request a list of competitors per tournament from all matches, outrights, or both, all competitors from matches and outrights. POST request is:

Base URL /get_competitors_for_tournament

Required fields for this call are tournament_id, type and token.

type refers:

0 - to get list of competitors under matches

1 - to get list of competitors under outrights

2 - to get list of competitors from both matches and outrights

With the above details the API provides the following message:

Code Block
<tournament_info timestamp="1635427976765">
  <tournament id="8"/>
  <competitors>
    <competitor id="149940" name="Aguero, Sergio"/>
    <competitor id="253639" name="Alcacer, Paco"/>
    <competitor id="344864" name="Asensio, Marco"/>
    <competitor id="176972" name="Aspas, Iago"/>
    <competitor id="2825" name="Athletic Bilbao"/>
    <competitor id="2836" name="Atletico Madrid"/>
    <competitor id="176974" name="Bacca, Carlos"/>
    <competitor id="175694" name="Bale, Gareth"/>
    <competitor id="149950" name="Benzema, Karim"/>
    <competitor id="177122" name="Braithwaite, Martin"/>
    <competitor id="2820" name="CA Osasuna"/>
    <competitor id="4488" name="Cadiz CF"/>
    <competitor id="2846" name="CF Elche"/>
    <competitor id="371516" name="Correa, Angel"/>
    <competitor id="176830" name="de Jong, Luuk"/>
    <competitor id="495212" name="de Oliveira Junior, Vinicius"/>
    <competitor id="678739" name="de Tomas Gomez, Raul"/>
    <competitor id="286233" name="Dembele, Ousmane"/>
    <competitor id="273209" name="Depay, Memphis"/>
    <competitor id="2885" name="Deportivo Alaves"/>
    <competitor id="363196" name="Diaz, Mariano"/>
    <competitor id="372534" name="Gomez, Maximiliano"/>
    <competitor id="33779" name="Granada CF"/>
    <competitor id="33779" name="Granada CF"/>
    <competitor id="175724" name="Griezmann, Antoine"/>
    <competitor id="149976" name="Hazard, Eden"/>
    <competitor id="495220" name="Iglesias, Borja"/>
    <competitor id="469243" name="Isak, Alexander"/>
    <competitor id="176782" name="Joselu"/>
    <competitor id="446097" name="Jovic, Luka"/>
    <competitor id="758826" name="Llorente, Marcos"/>
    <competitor id="597786" name="Machis, Darwin"/>
    <competitor id="617658" name="Marti, Roger"/>
    <competitor id="617660" name="Mata Arnaiz, Jaime"/>
    <competitor id="495218" name="Mina Lorenzo, Santiago"/>
    <competitor id="833404" name="Mir, Rafa"/>
    <competitor id="495208" name="Moreno, Gerard"/>
    <competitor id="752983" name="Ocampos, Lucas Ariel"/>
    <competitor id="2818" name="Rayo Vallecano"/>
    <competitor id="2821" name="RC Celta de Vigo"/>
    <competitor id="2826" name="RCD Mallorca"/>
    <competitor id="2816" name="Real Betis Seville"/>
    <competitor id="2833" name="Sevilla FC"/>
    <competitor id="150048" name="Soldado Rillo, Roberto"/>
    <competitor id="593778" name="Soler, Carlos"/>
    <competitor id="150052" name="Suarez, Luis"/>
    <competitor id="344902" name="Williams, Inaki"/>
  </competitors>
</tournament_info>

...

Under that tag there are tags named tournament and competitors. Tag named tournament has ID of tournament and its name. Competitors tag which contains data for all competitors, placed into child competitor tags. Tags competitor have attribute representing ID of competitor and name attribute that represents name of the competitor

...

Here you can get available competitors for Matches and Outrights by providing the relative id and token

Page Tree
rootCompetitors List
startDepth1