Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

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

Base URL /get_tournaments_for_sport

Required fields for this call are sport_id and token.

With the above details the API provides the following message:

<sport_tournaments timestamp="1645705082645">
	<sport id="1" name="Soccer"/>
	<categories>
		<category id="500" name="Angola">
			<tournaments>
				<tournament id="2171" name="Girabola"/>
			</tournaments>
		</category>
		<category id="852" name="Cambodia">
			<tournaments>
				<tournament id="19250" name="Cambodian Premier League"/>
			</tournaments>
		</category>
		<category id="476" name="Sudan">
			<tournaments>
				<tournament id="6547" name="Premier League"/>
			</tournaments>
		</category>
		<category id="131" name="Wales">
			<tournaments>
				<tournament id="254" name="Cymru Premier"/>
				<tournament id="367" name="League Cup"/>
				<tournament id="388" name="FAW Welsh Cup"/>
				<tournament id="29242" name="Cymru Championship South"/>
				<tournament id="29244" name="Cymru Championship, North"/>
			</tournaments>
		</category>
		<category id="1" name="England">
			<tournaments>
				<tournament id="17" name="Premier League"/>
				<tournament id="18" name="Championship"/>
				<tournament id="19" name="FA Cup"/>
				<tournament id="21" name="EFL Cup"/>
				<tournament id="24" name="League One"/>
				<tournament id="25" name="League Two"/>
				<tournament id="173" name="National League"/>
				<tournament id="334" name="EFL Trophy"/>
				<tournament id="346" name="Community Shield"/>
				<tournament id="1696" name="FA Cup, Qualification"/>
			</tournaments>
		</category>
		<category id="155" name="Sweden Amateur">
			<tournaments>
				<tournament id="1016" name="U21"/>
				<tournament id="2539" name="U19"/>
			</tournaments>
		</category>
		<category id="278" name="Kazakhstan">
			<tournaments>
				<tournament id="682" name="Premier League"/>
				<tournament id="749" name="Kazakhstan Cup"/>
				<tournament id="773" name="Super Cup"/>
				<tournament id="785" name="Pervaya Liga"/>
			</tournaments>
		</category>
		<category id="280" name="Paraguay">
			<tournaments>
				<tournament id="1254" name="Segunda Division"/>
				<tournament id="27098" name="Primera Division, Apertura"/>
				<tournament id="27100" name="Primera Division, Clausura"/>
				<tournament id="27214" name="Primera Division Reserve, Apertura"/>
				<tournament id="29003" name="Copa Paraguay"/>
				<tournament id="87707" name="U19 Minor League"/>
			</tournaments>
		</category>
		<category id="44" name="Portugal">
			<tournaments>
				<tournament id="238" name="Primeira Liga"/>
				<tournament id="239" name="Liga Portugal 2"/>
				<tournament id="327" name="League Cup"/>
				<tournament id="336" name="Taca de Portugal"/>
				<tournament id="345" name="Super Cup"/>
				<tournament id="1133" name="U19 Championship"/>
				<tournament id="14758" name="Campeonato de Portugal"/>
				<tournament id="19274" name="Campeonato Nacional, Women"/>
				<tournament id="26080" name="U23 Championship"/>
				<tournament id="28735" name="U23 Taca Revelacao"/>
				<tournament id="34900" name="Liga Portugal 3"/>
			</tournaments>
		</category>
		<category id="368" name="Indonesia">
			<tournaments>
				<tournament id="1015" name="Liga 1"/>
				<tournament id="20560" name="Liga 2"/>
			</tournaments>
		</category>
	</categories>
</sport_tournaments>

Tag sport_tournaments has only one attribute which is timestamp with date and time when 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.

  • No labels

0 Comments

You are not logged in. Any changes you make will be marked as anonymous. You may want to Log In if you already have an account.