Versions Compared

Key

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

...

When requesting a list of all categoriestournaments, POST request is:

Base URL /get_tournaments_for_sport

...

Code Block
<sport_tournaments timestamp="1613741505909">
  <sport id="2" name="Basketball"/>
  <categories>
    <category id="Albania" name="837">
      <tournaments>
       <tournament id="19386" name="Group A"/>
      </tournaments>
    </category>
    <category id="Argentina" name="264">
      <tournaments>
        <tournament id="1680" name="LNB"/>
        <tournament id="17817" name="Liga Argentina"/>
        <tournament id="50209" name="Liga de Desarrollo"/>
        <tournament id="56493" name="Torneo Federal"/>
      </tournaments>
    </category>
    <category id="Armenia" name="1670">
      <tournaments>
       <tournament id="78746" name="Armenian Cup"/>
      </tournaments>
    </category>
    <category id="Australia" name="113">
      <tournaments>
        <tournament id="1506" name="WNBL"/>
        <tournament id="1524" name="NBL"/>
      </tournaments>
    </category>
    <category id="Austria" name="170">
      <tournaments>
        <tournament id="297" name="Bundesliga"/>
        <tournament id="300" name="AWBL"/>
        <tournament id="1470" name="Cup"/>
        <tournament id="140000596" name="Abl"/>
      </tournaments>
    </category>
  </categories>
</sport_tournaments>

Tag sport_tournaments hasonly one attribute which is timestamp with date and time that message was created.

Under that tag there are tags named sport and categories. Tag named sport has ID of sport and sport name. Tag categories contains tags category with attributes id and name.

Under category is tag tournaments that contains tags tournament with attributes id and name.

...

All matches per tournament and number of days list

When requesting a list of upcoming matches, POST request is:

Base URL /get_fixtures_for_tournament

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

With the above details the API provides the following message:

Code Block
<tournament_fixtures timestamp="1613747295271">
  <tournament id="18" name="Championship"/>
  <fixtures_fixture>
    <fixture id="match:23217017" start_time="2021-02-19T19:45:00+0000">
      <sport id="1" name="Soccer"/>
      <category id="1" name="England"/>
        <competitors>
          <competitor id="competitor:24" name="Watford FC"/>
          <competitor id="competitor:27" name="Derby County"/>
        </competitors>
    </fixture>
    <fixture id="match:23216999" start_time="2021-02-20T12:30:00+0000">
      <sport id="1" name="Soccer"/>
      <category id="1" name="England"/>
        <competitors>
          <competitor id="competitor:11" name="Coventry City"/>
          <competitor id="competitor:50" name="Brentford FC"/>
        </competitors>
    </fixture>
    <fixture id="match:23216995" start_time="2021-02-20T15:00:00+0000">
    <sport id="1" name="Soccer"/>
    <category id="1" name="England"/>
      <competitors>
        <competitor id="competitor:58" name="Bristol City"/>
        <competitor id="competitor:23" name="Barnsley"/>
      </competitors>
     </fixture>
  </fixtures_fixture>
</tournament_fixtures>

Tag sport_tournaments hasonly one attribute which is timestamp with date and time that message was created.

...