<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.hattrick.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Neohugin</id>
	<title>Hattrick - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.hattrick.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Neohugin"/>
	<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/wiki/Special:Contributions/Neohugin"/>
	<updated>2026-09-16T00:49:04Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.9</generator>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/teamDetails&amp;diff=37419</id>
		<title>CHPP Development/XML/teamDetails</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/teamDetails&amp;diff=37419"/>
		<updated>2006-10-16T07:02:31Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the basic data for a &#039;&#039;&#039;team&#039;&#039;&#039;. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
Note: It appears that the custom dress kit resets the CHPP settings for Dress and DressAlternate.&lt;br /&gt;
&lt;br /&gt;
{{CHPP Documentation}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
This documentation applies to version 1.7 of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
teamDetails.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view}&lt;br /&gt;
      [{teamID = integer |&lt;br /&gt;
      userID = integer}]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the basic team data.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== userID ===&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted. If neither userID or teamID is supplied, userID defaults to the logged on user&#039;s userID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== User (Within HattrickData) ===&lt;br /&gt;
Container for the data about the user (&amp;quot;owner&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within User) ===&lt;br /&gt;
The globally unique UserID for the owner of the team. Teams without an owner have UserID = 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Language (Within User) ===&lt;br /&gt;
Container for the data about the language the user has chosen as his/her default language.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageID (Within Language) ===&lt;br /&gt;
The globally unique LanguageID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageName (Within Language) ===&lt;br /&gt;
The Language name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HasSupporter (Within User) ===&lt;br /&gt;
Boolean value indicating whether the user is currently a Hattrick Supporter. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Loginname (Within User) ===&lt;br /&gt;
The &amp;quot;username&amp;quot; or &amp;quot;nickname&amp;quot; used in conferences and for login. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Name (Within User) ===&lt;br /&gt;
The user&#039;s personal name or the value HIDDEN to indicate that the user has chosen to hide it. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ICQ (Within User) ===&lt;br /&gt;
The user&#039;s ICQ number (if any). Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SignupDate (Within User) ===&lt;br /&gt;
The date and time when the user signed up for Hattrick. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ActivationDate (Within User) ===&lt;br /&gt;
The date and time when the user gained control of this team. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastLoginDate (Within User) ===&lt;br /&gt;
The date and time when the user last logged on. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamCoach (Within User) ===&lt;br /&gt;
Container for the national teams. An attribute named &#039;&#039;Count&#039;&#039; specifies how many national teams this user coaches. If 0, the child node does not exist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeam (Within NationalTeamCoach) ===&lt;br /&gt;
Container for a National Team. An attribute called &#039;&#039;Index&#039;&#039; signifies the number of the national team in the list (not to be confused with NationalTeamID which is globally unique). Index ranges from 0 to (Count - 1).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamID (Within NationalTeam) ===&lt;br /&gt;
The globally unique identifier of the national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamName (Within NationalTeam) ===&lt;br /&gt;
The name of the national team&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
Container for the data about the team (not supplied for user without team).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The globally unique TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ShortTeamName (Within Team) ===&lt;br /&gt;
The short team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Arena (Within Team) ===&lt;br /&gt;
Container for the data about the team&#039;s home ground.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ArenaID (Within Arena) ===&lt;br /&gt;
The globally unique ArenaID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ArenaName (Within Arena) ===&lt;br /&gt;
The arena name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== League (Within Team) ===&lt;br /&gt;
Container for the data about the league (&amp;quot;Sverige&amp;quot;, &amp;quot;England&amp;quot; and so on) the team is part of.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueID (Within League) ===&lt;br /&gt;
The globally unique LeagueID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueName (Within League) ===&lt;br /&gt;
The League name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Region (Within Team) ===&lt;br /&gt;
Container for the data about the region theteam is located in.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RegionID (Within Region) ===&lt;br /&gt;
The globally unique RegionID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RegionName (Within Region) ===&lt;br /&gt;
The Region name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Trainer (Within Team) ===&lt;br /&gt;
The player that is trainer (&amp;quot;coach&amp;quot;) for the team. (Not to be confused with the &amp;quot;owner&amp;quot;/&amp;quot;user&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerID (Within Trainer) ===&lt;br /&gt;
The globally unique PlayerID of the player that has the job as trainer of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerName (Within Trainer) ===&lt;br /&gt;
The name of the trainer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomePage (Within Team) ===&lt;br /&gt;
The home page URL that the team has specified.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Clubhouse (Within Team) ===&lt;br /&gt;
Exists only if the team has a Clubhouse and if so holds the name of that clubhouse. The URL of the clubhouse will then be http://club.hattrick.org/ClubhouseName/ where ClubhouseName is a placeholder for the value in tag Clubhouse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cup (Within Team) ===&lt;br /&gt;
Data about the team&#039;s cup status. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== StillInCup (Within Cup) ===&lt;br /&gt;
Boolean value stating if the team is still in the cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupID (Within Cup) ===&lt;br /&gt;
The globally unique CupID of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupName (Within Cup) ===&lt;br /&gt;
The name of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendlyBooked (Within Team) ===&lt;br /&gt;
&#039;&#039;&#039;This element is obsolete and will probably be removed within 1-2 months.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The team&#039;s status about if friendly is booked. The value is true if team has booked a friendly, false if not. If the team is playing a match, an attribute named &#039;&#039;Available&#039;&#039; is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendlyTeamID (Within Team) ===&lt;br /&gt;
The team&#039;s status about if a friendly is booked. The value is the opponents globally unique teamID if the team has booked a friendly, 0 if not. If the team is playing a match, an attribute named &#039;&#039;Available&#039;&#039; is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnit (Within Team) ===&lt;br /&gt;
Data about the team&#039;s LeagueLevelUnit (&amp;quot;series&amp;quot;). If the team is playing a qualification match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnitID (Within LeagueLevelUnit) ===&lt;br /&gt;
The globally unique LeagueLevelUnitID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnitName (Within LeagueLevelUnit) ===&lt;br /&gt;
The name of the LeagueLevelUnit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevel (Within LeagueLevelUnit) ===&lt;br /&gt;
Integer value stating the relative level of the LeagueLevelUnit, with 1 indicating the league&#039;s top series.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfVictories (Within Team) ===&lt;br /&gt;
If the team is in a winning streak of at least 2 matches, this integer indicates how many victories in a row it currently has. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfUndefeated (Within Team) ===&lt;br /&gt;
If the team is in a streak of at least 2 matches as undefeated, this integer indicates how many matches in a row it is undefeated. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LogoURL (Within Trainer) ===&lt;br /&gt;
The logo URL that the team has specified. Only supplied if the user has Hattrick Supporter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Fanclub (Within Team) ===&lt;br /&gt;
Container for the data about the team&#039;s fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FanclubID (Within Fanclub) ===&lt;br /&gt;
The globally unique FanclubID. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FanclubName (Within Fanclub) ===&lt;br /&gt;
The name of the fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Guestbook (Within Team) ===&lt;br /&gt;
Container for the data about the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfGuestbookItems (Within Guestbook) ===&lt;br /&gt;
The number of postings in the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PressAnnouncement (Within Team) ===&lt;br /&gt;
Container for the data about the user&#039;s most recent PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Subject (Within PressAnnouncement) ===&lt;br /&gt;
The subject text specified for the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Body (Within PressAnnouncement) ===&lt;br /&gt;
The body of the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SendDate (Within PressAnnouncement) ===&lt;br /&gt;
The time and date when the PressAnnouncement was submitted. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Dress (Within Team) ===&lt;br /&gt;
7 character string representing the dress of the team: First characters is a letter indicating type pf dress. Next two numbers indicate the shirt colour, next two indicate pants colour and final two numbers indicate socks colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DressAlternate (Within Team) ===&lt;br /&gt;
Same as dress, except that it shows the alternate dress.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== BotStatus (Within Team) ===&lt;br /&gt;
Container for the data indicating if a team is a &amp;quot;bot&amp;quot;, that is, has a default and random lineup and players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== IsBot (Within BotStatus) ===&lt;br /&gt;
Boolean. Specifies whether a team is currently a bot or not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== BotSince (Within BotStatus) ===&lt;br /&gt;
The date when the team was made a bot, or 1997-08-30 if the team was made a bot before 2005-12-08. If the team is not a bot, this will return 1900-01-01.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamRank (Within Team) ===&lt;br /&gt;
If the team has an owner, this is the League Rank, a number based on LeagueLevel, postion etc, only counting teams with an owner. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Date format is always YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/teamDetails&amp;diff=37418</id>
		<title>CHPP Development/XML/teamDetails</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/teamDetails&amp;diff=37418"/>
		<updated>2006-10-16T04:35:07Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the basic data for a team. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
Note: It appears that the custom dress kit resets the chpp settings for Dress and DressAlternate.&lt;br /&gt;
&lt;br /&gt;
{{CHPP Documentation}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
This documentation applies to version 1.7 of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
teamDetails.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view}&lt;br /&gt;
      [{teamID = integer |&lt;br /&gt;
      userID = integer}]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the basic team data.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== userID ===&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted. If neither userID or teamID is supplied, userID defaults to the logged on user&#039;s userID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== User (Within HattrickData) ===&lt;br /&gt;
Container for the data about the user (&amp;quot;owner&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within User) ===&lt;br /&gt;
The globally unique UserID for the owner of the team. Teams without an owner have UserID = 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Language (Within User) ===&lt;br /&gt;
Container for the data about the language the user has chosen as his/her default language.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageID (Within Language) ===&lt;br /&gt;
The globally unique LanguageID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageName (Within Language) ===&lt;br /&gt;
The Language name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HasSupporter (Within User) ===&lt;br /&gt;
Boolean value indicating whether the user is currently a Hattrick Supporter. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Loginname (Within User) ===&lt;br /&gt;
The &amp;quot;username&amp;quot; or &amp;quot;nickname&amp;quot; used in conferences and for login. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Name (Within User) ===&lt;br /&gt;
The user&#039;s personal name or the value HIDDEN to indicate that the user has chosen to hide it. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ICQ (Within User) ===&lt;br /&gt;
The user&#039;s ICQ number (if any). Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SignupDate (Within User) ===&lt;br /&gt;
The date and time when the user signed up for Hattrick. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ActivationDate (Within User) ===&lt;br /&gt;
The date and time when the user gained control of this team. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastLoginDate (Within User) ===&lt;br /&gt;
The date and time when the user last logged on. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamCoach (Within User) ===&lt;br /&gt;
Container for the national teams. An attribute named &#039;&#039;Count&#039;&#039; specifies how many national teams this user coaches. If 0, the child node does not exist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeam (Within NationalTeamCoach) ===&lt;br /&gt;
Container for a National Team. An attribute called &#039;&#039;Index&#039;&#039; signifies the number of the national team in the list (not to be confused with NationalTeamID which is globally unique). Index ranges from 0 to (Count - 1).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamID (Within NationalTeam) ===&lt;br /&gt;
The globally unique identifier of the national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamName (Within NationalTeam) ===&lt;br /&gt;
The name of the national team&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
Container for the data about the team (not supplied for user without team).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The globally unique TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ShortTeamName (Within Team) ===&lt;br /&gt;
The short team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Arena (Within Team) ===&lt;br /&gt;
Container for the data about the team&#039;s home ground.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ArenaID (Within Arena) ===&lt;br /&gt;
The globally unique ArenaID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ArenaName (Within Arena) ===&lt;br /&gt;
The arena name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== League (Within Team) ===&lt;br /&gt;
Container for the data about the league (&amp;quot;Sverige&amp;quot;, &amp;quot;England&amp;quot; and so on) the team is part of.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueID (Within League) ===&lt;br /&gt;
The globally unique LeagueID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueName (Within League) ===&lt;br /&gt;
The League name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Region (Within Team) ===&lt;br /&gt;
Container for the data about the region theteam is located in.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RegionID (Within Region) ===&lt;br /&gt;
The globally unique RegionID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RegionName (Within Region) ===&lt;br /&gt;
The Region name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Trainer (Within Team) ===&lt;br /&gt;
The player that is trainer (&amp;quot;coach&amp;quot;) for the team. (Not to be confused with the &amp;quot;owner&amp;quot;/&amp;quot;user&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerID (Within Trainer) ===&lt;br /&gt;
The globally unique PlayerID of the player that has the job as trainer of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerName (Within Trainer) ===&lt;br /&gt;
The name of the trainer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomePage (Within Team) ===&lt;br /&gt;
The home page URL that the team has specified.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Clubhouse (Within Team) ===&lt;br /&gt;
Exists only if the team has a Clubhouse and if so holds the name of that clubhouse. The URL of the clubhouse will then be http://club.hattrick.org/ClubhouseName/ where ClubhouseName is a placeholder for the value in tag Clubhouse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cup (Within Team) ===&lt;br /&gt;
Data about the team&#039;s cup status. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== StillInCup (Within Cup) ===&lt;br /&gt;
Boolean value stating if the team is still in the cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupID (Within Cup) ===&lt;br /&gt;
The globally unique CupID of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupName (Within Cup) ===&lt;br /&gt;
The name of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendlyBooked (Within Team) ===&lt;br /&gt;
&#039;&#039;&#039;This element is obsolete and will probably be removed within 1-2 months.&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
The team&#039;s status about if friendly is booked. The value is true if team has booked a friendly, false if not. If the team is playing a match, an attribute named &#039;&#039;Available&#039;&#039; is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendlyTeamID (Within Team) ===&lt;br /&gt;
The team&#039;s status about if a friendly is booked. The value is the opponents globally unique teamID if the team has booked a friendly, 0 if not. If the team is playing a match, an attribute named &#039;&#039;Available&#039;&#039; is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnit (Within Team) ===&lt;br /&gt;
Data about the team&#039;s LeagueLevelUnit (&amp;quot;series&amp;quot;). If the team is playing a qualification match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnitID (Within LeagueLevelUnit) ===&lt;br /&gt;
The globally unique LeagueLevelUnitID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnitName (Within LeagueLevelUnit) ===&lt;br /&gt;
The name of the LeagueLevelUnit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevel (Within LeagueLevelUnit) ===&lt;br /&gt;
Integer value stating the relative level of the LeagueLevelUnit, with 1 indicating the league&#039;s top series.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfVictories (Within Team) ===&lt;br /&gt;
If the team is in a winning streak of at least 2 matches, this integer indicates how many victories in a row it currently has. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfUndefeated (Within Team) ===&lt;br /&gt;
If the team is in a streak of at least 2 matches as undefeated, this integer indicates how many matches in a row it is undefeated. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LogoURL (Within Trainer) ===&lt;br /&gt;
The logo URL that the team has specified. Only supplied if the user has Hattrick Supporter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Fanclub (Within Team) ===&lt;br /&gt;
Container for the data about the team&#039;s fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FanclubID (Within Fanclub) ===&lt;br /&gt;
The globally unique FanclubID. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FanclubName (Within Fanclub) ===&lt;br /&gt;
The name of the fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Guestbook (Within Team) ===&lt;br /&gt;
Container for the data about the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfGuestbookItems (Within Guestbook) ===&lt;br /&gt;
The number of postings in the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PressAnnouncement (Within Team) ===&lt;br /&gt;
Container for the data about the user&#039;s most recent PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Subject (Within PressAnnouncement) ===&lt;br /&gt;
The subject text specified for the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Body (Within PressAnnouncement) ===&lt;br /&gt;
The body of the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SendDate (Within PressAnnouncement) ===&lt;br /&gt;
The time and date when the PressAnnouncement was submitted. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Dress (Within Team) ===&lt;br /&gt;
7 character string representing the dress of the team: First characters is a letter indicating type pf dress. Next two numbers indicate the shirt colour, next two indicate pants colour and final two numbers indicate socks colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DressAlternate (Within Team) ===&lt;br /&gt;
Same as dress, except that it shows the alternate dress.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== BotStatus (Within Team) ===&lt;br /&gt;
Container for the data indicating if a team is a &amp;quot;bot&amp;quot;, that is, has a default and random lineup and players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== IsBot (Within BotStatus) ===&lt;br /&gt;
Boolean. Specifies whether a team is currently a bot or not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== BotSince (Within BotStatus) ===&lt;br /&gt;
The date when the team was made a bot, or 1997-08-30 if the team was made a bot before 2005-12-08. If the team is not a bot, this will return 1900-01-01.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamRank (Within Team) ===&lt;br /&gt;
If the team has an owner, this is the League Rank, a number based on LeagueLevel, postion etc, only counting teams with an owner. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Date format is always YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/players&amp;diff=37417</id>
		<title>CHPP Development/XML/players</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/players&amp;diff=37417"/>
		<updated>2006-10-16T03:22:06Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the basic data for a team. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
Note: It appears that the custom dress kit resets the chpp settings for Dress and DressAlternate.&lt;br /&gt;
&lt;br /&gt;
{{CHPP Documentation}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
This documentation applies to version 1.7 of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
teamDetails.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view}&lt;br /&gt;
      [{teamID = integer |&lt;br /&gt;
      userID = integer}]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the basic team data.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== userID ===&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted. If neither userID or teamID is supplied, userID defaults to the logged on user&#039;s userID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== User (Within HattrickData) ===&lt;br /&gt;
Container for the data about the user (&amp;quot;owner&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within User) ===&lt;br /&gt;
The globally unique UserID for the owner of the team. Teams without an owner have UserID = 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Language (Within User) ===&lt;br /&gt;
Container for the data about the language the user has chosen as his/her default language.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageID (Within Language) ===&lt;br /&gt;
The globally unique LanguageID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageName (Within Language) ===&lt;br /&gt;
The Language name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HasSupporter (Within User) ===&lt;br /&gt;
Boolean value indicating whether the user is currently a Hattrick Supporter. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Loginname (Within User) ===&lt;br /&gt;
The &amp;quot;username&amp;quot; or &amp;quot;nickname&amp;quot; used in conferences and for login. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Name (Within User) ===&lt;br /&gt;
The user&#039;s personal name or the value HIDDEN to indicate that the user has chosen to hide it. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ICQ (Within User) ===&lt;br /&gt;
The user&#039;s ICQ number (if any). Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SignupDate (Within User) ===&lt;br /&gt;
The date and time when the user signed up for Hattrick. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ActivationDate (Within User) ===&lt;br /&gt;
The date and time when the user gained control of this team. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastLoginDate (Within User) ===&lt;br /&gt;
The date and time when the user last logged on. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamCoach (Within User) ===&lt;br /&gt;
Container for the national teams. An attribute named Count specifies how many national teams this user coaches. If 0, the child node does not exist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeam (Within NationalTeamCoach) ===&lt;br /&gt;
Container for a National Team. An attribute called Index signifies the number of the national team in the list (not to be confused with NationalTeamID which is globally unique). Index ranges from 0 to (Count - 1).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamID (Within NationalTeam) ===&lt;br /&gt;
The globally unique identifier of the national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamName (Within NationalTeam) ===&lt;br /&gt;
The name of the national team&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
Container for the data about the team (not supplied for user without team).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The globally unique TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ShortTeamName (Within Team) ===&lt;br /&gt;
The short team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Arena (Within Team) ===&lt;br /&gt;
Container for the data about the team&#039;s home ground.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ArenaID (Within Arena) ===&lt;br /&gt;
The globally unique ArenaID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ArenaName (Within Arena) ===&lt;br /&gt;
The arena name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== League (Within Team) ===&lt;br /&gt;
Container for the data about the league (&amp;quot;Sverige&amp;quot;, &amp;quot;England&amp;quot; and so on) the team is part of.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueID (Within League) ===&lt;br /&gt;
The globally unique LeagueID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueName (Within League) ===&lt;br /&gt;
The League name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Region (Within Team) ===&lt;br /&gt;
Container for the data about the region theteam is located in.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RegionID (Within Region) ===&lt;br /&gt;
The globally unique RegionID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== RegionName (Within Region) ===&lt;br /&gt;
The Region name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Trainer (Within Team) ===&lt;br /&gt;
The player that is trainer (&amp;quot;coach&amp;quot;) for the team. (Not to be confused with the &amp;quot;owner&amp;quot;/&amp;quot;user&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerID (Within Trainer) ===&lt;br /&gt;
The globally unique PlayerID of the player that has the job as trainer of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerName (Within Trainer) ===&lt;br /&gt;
The name of the trainer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomePage (Within Team) ===&lt;br /&gt;
The home page URL that the team has specified.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Clubhouse (Within Team) ===&lt;br /&gt;
Exists only if the team has a Clubhouse and if so holds the name of that clubhouse. The URL of the clubhouse will then be http://club.hattrick.org/ClubhouseName/ where ClubhouseName is a placeholder for the value in tag Clubhouse.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cup (Within Team) ===&lt;br /&gt;
Data about the team&#039;s cup status. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== StillInCup (Within Cup) ===&lt;br /&gt;
Boolean value stating if the team is still in the cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupID (Within Cup) ===&lt;br /&gt;
The globally unique CupID of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupName (Within Cup) ===&lt;br /&gt;
The name of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendlyBooked (Within Team) ===&lt;br /&gt;
This element is obsolete and will probably be removed within 1-2 months.&lt;br /&gt;
The team&#039;s status about if friendly is booked. The value is true if team has booked a friendly, false if not. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendlyTeamID (Within Team) ===&lt;br /&gt;
The team&#039;s status about if a friendly is booked. The value is the opponents globally unique teamID if the team has booked a friendly, 0 if not. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnit (Within Team) ===&lt;br /&gt;
Data about the team&#039;s LeagueLevelUnit (&amp;quot;series&amp;quot;). If the team is playing a qualification match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnitID (Within LeagueLevelUnit) ===&lt;br /&gt;
The globally unique LeagueLevelUnitID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevelUnitName (Within LeagueLevelUnit) ===&lt;br /&gt;
The name of the LeagueLevelUnit.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueLevel (Within LeagueLevelUnit) ===&lt;br /&gt;
Integer value stating the relative level of the LeagueLevelUnit, with 1 indicating the league&#039;s top series.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfVictories (Within Team) ===&lt;br /&gt;
If the team is in a winning streak of at least 2 matches, this integer indicates how many victories in a row it currently has. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfUndefeated (Within Team) ===&lt;br /&gt;
If the team is in a streak of at least 2 matches as undefeated, this integer indicates how many matches in a row it is undefeated. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LogoURL (Within Trainer) ===&lt;br /&gt;
The logo URL that the team has specified. Only supplied if the user has Hattrick Supporter&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Fanclub (Within Team) ===&lt;br /&gt;
Container for the data about the team&#039;s fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FanclubID (Within Fanclub) ===&lt;br /&gt;
The globally unique FanclubID. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FanclubName (Within Fanclub) ===&lt;br /&gt;
The name of the fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Guestbook (Within Team) ===&lt;br /&gt;
Container for the data about the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfGuestbookItems (Within Guestbook) ===&lt;br /&gt;
The number of postings in the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PressAnnouncement (Within Team) ===&lt;br /&gt;
Container for the data about the user&#039;s most recent PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Subject (Within PressAnnouncement) ===&lt;br /&gt;
The subject text specified for the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Body (Within PressAnnouncement) ===&lt;br /&gt;
The body of the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SendDate (Within PressAnnouncement) ===&lt;br /&gt;
The time and date when the PressAnnouncement was submitted. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Dress (Within Team) ===&lt;br /&gt;
7 character string representing the dress of the team: First characters is a letter indicating type pf dress. Next two numbers indicate the shirt colour, next two indicate pants colour and final two numbers indicate socks colour.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DressAlternate (Within Team) ===&lt;br /&gt;
Same as dress, except that it shows the alternate dress.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== BotStatus (Within Team) ===&lt;br /&gt;
Container for the data indicating if a team is a &amp;quot;bot&amp;quot;, that is, has a default and random lineup and players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== IsBot (Within BotStatus) ===&lt;br /&gt;
Boolean. Specifies whether a team is currently a bot or not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== BotSince (Within BotStatus) ===&lt;br /&gt;
The date when the team was made a bot, or 1997-08-30 if the team was made a bot before 2005-12-08. If the team is not a bot, this will return 1900-01-01.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamRank (Within Team) ===&lt;br /&gt;
If the team has an owner, this is the League Rank, a number based on LeagueLevel, postion etc, only counting teams with an owner. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Date format is always YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/teamDetails&amp;diff=37415</id>
		<title>CHPP Development/XML/teamDetails</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/teamDetails&amp;diff=37415"/>
		<updated>2006-10-16T03:02:43Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the basic data for a team. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
Note: It appears that the custom dress kit resets the chpp settings for Dress and DressAlternate.&lt;br /&gt;
&lt;br /&gt;
{{CHPP Documentation}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
This documentation applies to version 1.7 of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
teamDetails.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view}&lt;br /&gt;
      [{teamID = integer |&lt;br /&gt;
      userID = integer}]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
Value 	Default 	Description&lt;br /&gt;
view 	Default 	View the basic team data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== userID ===&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted. If neither userID or teamID is supplied, userID defaults to the logged on user&#039;s userID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Outdata parameters&lt;br /&gt;
&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
HattrickData&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
FileName (Within HattrickData)&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
UserID (Within HattrickData)&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
Version&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
FetchedDate (Within HattrickData)&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
User (Within HattrickData)&lt;br /&gt;
Container for the data about the user (&amp;quot;owner&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
UserID (Within User)&lt;br /&gt;
The globally unique UserID for the owner of the team. Teams without an owner have UserID = 0.&lt;br /&gt;
&lt;br /&gt;
Language (Within User)&lt;br /&gt;
Container for the data about the language the user has chosen as his/her default language.&lt;br /&gt;
&lt;br /&gt;
LanguageID (Within Language)&lt;br /&gt;
The globally unique LanguageID.&lt;br /&gt;
&lt;br /&gt;
LanguageName (Within Language)&lt;br /&gt;
The Language name.&lt;br /&gt;
&lt;br /&gt;
HasSupporter (Within User)&lt;br /&gt;
Boolean value indicating whether the user is currently a Hattrick Supporter. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
Loginname (Within User)&lt;br /&gt;
The &amp;quot;username&amp;quot; or &amp;quot;nickname&amp;quot; used in conferences and for login. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
Name (Within User)&lt;br /&gt;
The user&#039;s personal name or the value HIDDEN to indicate that the user has chosen to hide it. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
ICQ (Within User)&lt;br /&gt;
The user&#039;s ICQ number (if any). Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
SignupDate (Within User)&lt;br /&gt;
The date and time when the user signed up for Hattrick. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
ActivationDate (Within User)&lt;br /&gt;
The date and time when the user gained control of this team. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
LastLoginDate (Within User)&lt;br /&gt;
The date and time when the user last logged on. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
NationalTeamCoach (Within User)&lt;br /&gt;
Container for the national teams. An attribute named Count specifies how many national teams this user coaches. If 0, the child node does not exist.&lt;br /&gt;
&lt;br /&gt;
NationalTeam (Within NationalTeamCoach)&lt;br /&gt;
Container for a National Team. An attribute called Index signifies the number of the national team in the list (not to be confused with NationalTeamID which is globally unique). Index ranges from 0 to (Count - 1).&lt;br /&gt;
&lt;br /&gt;
NationalTeamID (Within NationalTeam)&lt;br /&gt;
The globally unique identifier of the national team.&lt;br /&gt;
&lt;br /&gt;
NationalTeamName (Within NationalTeam)&lt;br /&gt;
The name of the national team&lt;br /&gt;
&lt;br /&gt;
Team (Within HattrickData)&lt;br /&gt;
Container for the data about the team (not supplied for user without team).&lt;br /&gt;
&lt;br /&gt;
TeamID (Within Team)&lt;br /&gt;
The globally unique TeamID.&lt;br /&gt;
&lt;br /&gt;
TeamName (Within Team)&lt;br /&gt;
The full team name.&lt;br /&gt;
&lt;br /&gt;
ShortTeamName (Within Team)&lt;br /&gt;
The short team name.&lt;br /&gt;
&lt;br /&gt;
Arena (Within Team)&lt;br /&gt;
Container for the data about the team&#039;s home ground.&lt;br /&gt;
&lt;br /&gt;
ArenaID (Within Arena)&lt;br /&gt;
The globally unique ArenaID.&lt;br /&gt;
&lt;br /&gt;
ArenaName (Within Arena)&lt;br /&gt;
The arena name.&lt;br /&gt;
&lt;br /&gt;
League (Within Team)&lt;br /&gt;
Container for the data about the league (&amp;quot;Sverige&amp;quot;, &amp;quot;England&amp;quot; and so on) the team is part of.&lt;br /&gt;
&lt;br /&gt;
LeagueID (Within League)&lt;br /&gt;
The globally unique LeagueID.&lt;br /&gt;
&lt;br /&gt;
LeagueName (Within League)&lt;br /&gt;
The League name.&lt;br /&gt;
&lt;br /&gt;
Region (Within Team)&lt;br /&gt;
Container for the data about the region theteam is located in.&lt;br /&gt;
&lt;br /&gt;
RegionID (Within Region)&lt;br /&gt;
The globally unique RegionID.&lt;br /&gt;
&lt;br /&gt;
RegionName (Within Region)&lt;br /&gt;
The Region name.&lt;br /&gt;
&lt;br /&gt;
Trainer (Within Team)&lt;br /&gt;
The player that is trainer (&amp;quot;coach&amp;quot;) for the team. (Not to be confused with the &amp;quot;owner&amp;quot;/&amp;quot;user&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
PlayerID (Within Trainer)&lt;br /&gt;
The globally unique PlayerID of the player that has the job as trainer of the team.&lt;br /&gt;
&lt;br /&gt;
PlayerName (Within Trainer)&lt;br /&gt;
The name of the trainer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HomePage (Within Team)&lt;br /&gt;
The home page URL that the team has specified.&lt;br /&gt;
&lt;br /&gt;
Clubhouse (Within Team)&lt;br /&gt;
Exists only if the team has a Clubhouse and if so holds the name of that clubhouse. The URL of the clubhouse will then be http://club.hattrick.org/ClubhouseName/ where ClubhouseName is a placeholder for the value in tag Clubhouse.&lt;br /&gt;
&lt;br /&gt;
Cup (Within Team)&lt;br /&gt;
Data about the team&#039;s cup status. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
StillInCup (Within Cup)&lt;br /&gt;
Boolean value stating if the team is still in the cup.&lt;br /&gt;
&lt;br /&gt;
CupID (Within Cup)&lt;br /&gt;
The globally unique CupID of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
CupName (Within Cup)&lt;br /&gt;
The name of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
FriendlyBooked (Within Team)&lt;br /&gt;
This element is obsolete and will probably be removed within 1-2 months.&lt;br /&gt;
The team&#039;s status about if friendly is booked. The value is true if team has booked a friendly, false if not. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
FriendlyTeamID (Within Team)&lt;br /&gt;
The team&#039;s status about if a friendly is booked. The value is the opponents globally unique teamID if the team has booked a friendly, 0 if not. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
LeagueLevelUnit (Within Team)&lt;br /&gt;
Data about the team&#039;s LeagueLevelUnit (&amp;quot;series&amp;quot;). If the team is playing a qualification match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
LeagueLevelUnitID (Within LeagueLevelUnit)&lt;br /&gt;
The globally unique LeagueLevelUnitID.&lt;br /&gt;
&lt;br /&gt;
LeagueLevelUnitName (Within LeagueLevelUnit)&lt;br /&gt;
The name of the LeagueLevelUnit.&lt;br /&gt;
&lt;br /&gt;
LeagueLevel (Within LeagueLevelUnit)&lt;br /&gt;
Integer value stating the relative level of the LeagueLevelUnit, with 1 indicating the league&#039;s top series.&lt;br /&gt;
&lt;br /&gt;
NumberOfVictories (Within Team)&lt;br /&gt;
If the team is in a winning streak of at least 2 matches, this integer indicates how many victories in a row it currently has. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
NumberOfUndefeated (Within Team)&lt;br /&gt;
If the team is in a streak of at least 2 matches as undefeated, this integer indicates how many matches in a row it is undefeated. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
LogoURL (Within Trainer)&lt;br /&gt;
The logo URL that the team has specified. Only supplied if the user has Hattrick Supporter&lt;br /&gt;
&lt;br /&gt;
Fanclub (Within Team)&lt;br /&gt;
Container for the data about the team&#039;s fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
FanclubID (Within Fanclub)&lt;br /&gt;
The globally unique FanclubID. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
FanclubName (Within Fanclub)&lt;br /&gt;
The name of the fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
Guestbook (Within Team)&lt;br /&gt;
Container for the data about the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
NumberOfGuestbookItems (Within Guestbook)&lt;br /&gt;
The number of postings in the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
PressAnnouncement (Within Team)&lt;br /&gt;
Container for the data about the user&#039;s most recent PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
Subject (Within PressAnnouncement)&lt;br /&gt;
The subject text specified for the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
Body (Within PressAnnouncement)&lt;br /&gt;
The body of the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
SendDate (Within PressAnnouncement)&lt;br /&gt;
The time and date when the PressAnnouncement was submitted. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
Dress (Within Team)&lt;br /&gt;
7 character string representing the dress of the team: First characters is a letter indicating type pf dress. Next two numbers indicate the shirt colour, next two indicate pants colour and final two numbers indicate socks colour.&lt;br /&gt;
&lt;br /&gt;
DressAlternate (Within Team)&lt;br /&gt;
Same as dress, except that it shows the alternate dress.&lt;br /&gt;
&lt;br /&gt;
BotStatus (Within Team)&lt;br /&gt;
Container for the data indicating if a team is a &amp;quot;bot&amp;quot;, that is, has a default and random lineup and players.&lt;br /&gt;
&lt;br /&gt;
IsBot (Within BotStatus)&lt;br /&gt;
Boolean. Specifies whether a team is currently a bot or not.&lt;br /&gt;
&lt;br /&gt;
BotSince (Within BotStatus)&lt;br /&gt;
The date when the team was made a bot, or 1997-08-30 if the team was made a bot before 2005-12-08. If the team is not a bot, this will return 1900-01-01.&lt;br /&gt;
&lt;br /&gt;
TeamRank (Within Team)&lt;br /&gt;
If the team has an owner, this is the League Rank, a number based on LeagueLevel, postion etc, only counting teams with an owner. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Date format is always YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples&lt;br /&gt;
&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
Get the data for a specified team&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
Get the data for your own team&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/teamDetails&amp;diff=37414</id>
		<title>CHPP Development/XML/teamDetails</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/teamDetails&amp;diff=37414"/>
		<updated>2006-10-16T02:48:19Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;It appears that the custom dress kit resets the chpp settings for Dress and DressAlternate.&lt;br /&gt;
This page offers XML and HTML interfaces to see the basic data for a team. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
{{CHPP Documentation}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
This documentation applies to version 1.7 of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
teamDetails.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view}&lt;br /&gt;
      [{teamID = integer |&lt;br /&gt;
      userID = integer}]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Indata parameters&lt;br /&gt;
&lt;br /&gt;
outputType&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
actionType&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
Value 	Default 	Description&lt;br /&gt;
view 	Default 	View the basic team data.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
teamID&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted.&lt;br /&gt;
&lt;br /&gt;
userID&lt;br /&gt;
What team/user to show the data for. teamID and userID generates the same result, except that ownerless teams can only be accessed if submitting a teamID and that users without a team can only be accessed if userID is submitted. If neither userID or teamID is supplied, userID defaults to the logged on user&#039;s userID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Outdata parameters&lt;br /&gt;
&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
HattrickData&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
FileName (Within HattrickData)&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
UserID (Within HattrickData)&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
Version&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
FetchedDate (Within HattrickData)&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
User (Within HattrickData)&lt;br /&gt;
Container for the data about the user (&amp;quot;owner&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
UserID (Within User)&lt;br /&gt;
The globally unique UserID for the owner of the team. Teams without an owner have UserID = 0.&lt;br /&gt;
&lt;br /&gt;
Language (Within User)&lt;br /&gt;
Container for the data about the language the user has chosen as his/her default language.&lt;br /&gt;
&lt;br /&gt;
LanguageID (Within Language)&lt;br /&gt;
The globally unique LanguageID.&lt;br /&gt;
&lt;br /&gt;
LanguageName (Within Language)&lt;br /&gt;
The Language name.&lt;br /&gt;
&lt;br /&gt;
HasSupporter (Within User)&lt;br /&gt;
Boolean value indicating whether the user is currently a Hattrick Supporter. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
Loginname (Within User)&lt;br /&gt;
The &amp;quot;username&amp;quot; or &amp;quot;nickname&amp;quot; used in conferences and for login. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
Name (Within User)&lt;br /&gt;
The user&#039;s personal name or the value HIDDEN to indicate that the user has chosen to hide it. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
ICQ (Within User)&lt;br /&gt;
The user&#039;s ICQ number (if any). Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
SignupDate (Within User)&lt;br /&gt;
The date and time when the user signed up for Hattrick. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
ActivationDate (Within User)&lt;br /&gt;
The date and time when the user gained control of this team. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
LastLoginDate (Within User)&lt;br /&gt;
The date and time when the user last logged on. Not supplied if the team is ownerless.&lt;br /&gt;
&lt;br /&gt;
NationalTeamCoach (Within User)&lt;br /&gt;
Container for the national teams. An attribute named Count specifies how many national teams this user coaches. If 0, the child node does not exist.&lt;br /&gt;
&lt;br /&gt;
NationalTeam (Within NationalTeamCoach)&lt;br /&gt;
Container for a National Team. An attribute called Index signifies the number of the national team in the list (not to be confused with NationalTeamID which is globally unique). Index ranges from 0 to (Count - 1).&lt;br /&gt;
&lt;br /&gt;
NationalTeamID (Within NationalTeam)&lt;br /&gt;
The globally unique identifier of the national team.&lt;br /&gt;
&lt;br /&gt;
NationalTeamName (Within NationalTeam)&lt;br /&gt;
The name of the national team&lt;br /&gt;
&lt;br /&gt;
Team (Within HattrickData)&lt;br /&gt;
Container for the data about the team (not supplied for user without team).&lt;br /&gt;
&lt;br /&gt;
TeamID (Within Team)&lt;br /&gt;
The globally unique TeamID.&lt;br /&gt;
&lt;br /&gt;
TeamName (Within Team)&lt;br /&gt;
The full team name.&lt;br /&gt;
&lt;br /&gt;
ShortTeamName (Within Team)&lt;br /&gt;
The short team name.&lt;br /&gt;
&lt;br /&gt;
Arena (Within Team)&lt;br /&gt;
Container for the data about the team&#039;s home ground.&lt;br /&gt;
&lt;br /&gt;
ArenaID (Within Arena)&lt;br /&gt;
The globally unique ArenaID.&lt;br /&gt;
&lt;br /&gt;
ArenaName (Within Arena)&lt;br /&gt;
The arena name.&lt;br /&gt;
&lt;br /&gt;
League (Within Team)&lt;br /&gt;
Container for the data about the league (&amp;quot;Sverige&amp;quot;, &amp;quot;England&amp;quot; and so on) the team is part of.&lt;br /&gt;
&lt;br /&gt;
LeagueID (Within League)&lt;br /&gt;
The globally unique LeagueID.&lt;br /&gt;
&lt;br /&gt;
LeagueName (Within League)&lt;br /&gt;
The League name.&lt;br /&gt;
&lt;br /&gt;
Region (Within Team)&lt;br /&gt;
Container for the data about the region theteam is located in.&lt;br /&gt;
&lt;br /&gt;
RegionID (Within Region)&lt;br /&gt;
The globally unique RegionID.&lt;br /&gt;
&lt;br /&gt;
RegionName (Within Region)&lt;br /&gt;
The Region name.&lt;br /&gt;
&lt;br /&gt;
Trainer (Within Team)&lt;br /&gt;
The player that is trainer (&amp;quot;coach&amp;quot;) for the team. (Not to be confused with the &amp;quot;owner&amp;quot;/&amp;quot;user&amp;quot;).&lt;br /&gt;
&lt;br /&gt;
PlayerID (Within Trainer)&lt;br /&gt;
The globally unique PlayerID of the player that has the job as trainer of the team.&lt;br /&gt;
&lt;br /&gt;
PlayerName (Within Trainer)&lt;br /&gt;
The name of the trainer.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
HomePage (Within Team)&lt;br /&gt;
The home page URL that the team has specified.&lt;br /&gt;
&lt;br /&gt;
Clubhouse (Within Team)&lt;br /&gt;
Exists only if the team has a Clubhouse and if so holds the name of that clubhouse. The URL of the clubhouse will then be http://club.hattrick.org/ClubhouseName/ where ClubhouseName is a placeholder for the value in tag Clubhouse.&lt;br /&gt;
&lt;br /&gt;
Cup (Within Team)&lt;br /&gt;
Data about the team&#039;s cup status. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
StillInCup (Within Cup)&lt;br /&gt;
Boolean value stating if the team is still in the cup.&lt;br /&gt;
&lt;br /&gt;
CupID (Within Cup)&lt;br /&gt;
The globally unique CupID of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
CupName (Within Cup)&lt;br /&gt;
The name of the cup that the team is still in. Only provided if team is still in cup.&lt;br /&gt;
&lt;br /&gt;
FriendlyBooked (Within Team)&lt;br /&gt;
This element is obsolete and will probably be removed within 1-2 months.&lt;br /&gt;
The team&#039;s status about if friendly is booked. The value is true if team has booked a friendly, false if not. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
FriendlyTeamID (Within Team)&lt;br /&gt;
The team&#039;s status about if a friendly is booked. The value is the opponents globally unique teamID if the team has booked a friendly, 0 if not. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
LeagueLevelUnit (Within Team)&lt;br /&gt;
Data about the team&#039;s LeagueLevelUnit (&amp;quot;series&amp;quot;). If the team is playing a qualification match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
LeagueLevelUnitID (Within LeagueLevelUnit)&lt;br /&gt;
The globally unique LeagueLevelUnitID.&lt;br /&gt;
&lt;br /&gt;
LeagueLevelUnitName (Within LeagueLevelUnit)&lt;br /&gt;
The name of the LeagueLevelUnit.&lt;br /&gt;
&lt;br /&gt;
LeagueLevel (Within LeagueLevelUnit)&lt;br /&gt;
Integer value stating the relative level of the LeagueLevelUnit, with 1 indicating the league&#039;s top series.&lt;br /&gt;
&lt;br /&gt;
NumberOfVictories (Within Team)&lt;br /&gt;
If the team is in a winning streak of at least 2 matches, this integer indicates how many victories in a row it currently has. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
NumberOfUndefeated (Within Team)&lt;br /&gt;
If the team is in a streak of at least 2 matches as undefeated, this integer indicates how many matches in a row it is undefeated. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
LogoURL (Within Trainer)&lt;br /&gt;
The logo URL that the team has specified. Only supplied if the user has Hattrick Supporter&lt;br /&gt;
&lt;br /&gt;
Fanclub (Within Team)&lt;br /&gt;
Container for the data about the team&#039;s fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
FanclubID (Within Fanclub)&lt;br /&gt;
The globally unique FanclubID. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
FanclubName (Within Fanclub)&lt;br /&gt;
The name of the fanclub. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
Guestbook (Within Team)&lt;br /&gt;
Container for the data about the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
NumberOfGuestbookItems (Within Guestbook)&lt;br /&gt;
The number of postings in the user&#039;s guestbook. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
PressAnnouncement (Within Team)&lt;br /&gt;
Container for the data about the user&#039;s most recent PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
Subject (Within PressAnnouncement)&lt;br /&gt;
The subject text specified for the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
Body (Within PressAnnouncement)&lt;br /&gt;
The body of the PressAnnouncement. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
SendDate (Within PressAnnouncement)&lt;br /&gt;
The time and date when the PressAnnouncement was submitted. Only supplied if the user has Hattrick Supporter.&lt;br /&gt;
&lt;br /&gt;
Dress (Within Team)&lt;br /&gt;
7 character string representing the dress of the team: First characters is a letter indicating type pf dress. Next two numbers indicate the shirt colour, next two indicate pants colour and final two numbers indicate socks colour.&lt;br /&gt;
&lt;br /&gt;
DressAlternate (Within Team)&lt;br /&gt;
Same as dress, except that it shows the alternate dress.&lt;br /&gt;
&lt;br /&gt;
BotStatus (Within Team)&lt;br /&gt;
Container for the data indicating if a team is a &amp;quot;bot&amp;quot;, that is, has a default and random lineup and players.&lt;br /&gt;
&lt;br /&gt;
IsBot (Within BotStatus)&lt;br /&gt;
Boolean. Specifies whether a team is currently a bot or not.&lt;br /&gt;
&lt;br /&gt;
BotSince (Within BotStatus)&lt;br /&gt;
The date when the team was made a bot, or 1997-08-30 if the team was made a bot before 2005-12-08. If the team is not a bot, this will return 1900-01-01.&lt;br /&gt;
&lt;br /&gt;
TeamRank (Within Team)&lt;br /&gt;
If the team has an owner, this is the League Rank, a number based on LeagueLevel, postion etc, only counting teams with an owner. If the team is playing a match, an attribute named Available is set to false and the container is empty, otherwise to true.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Note: Date format is always YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Examples&lt;br /&gt;
&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
Get the data for a specified team&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
Get the data for your own team&lt;br /&gt;
teamDetails.asp?outputType=XML&amp;amp;actionType=view&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/worldDetails&amp;diff=37410</id>
		<title>CHPP Development/XML/worldDetails</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/worldDetails&amp;diff=37410"/>
		<updated>2006-10-16T00:29:17Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces that presents some overview and global data used in Hattrick, including lists of all leagues. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
{{CHPP Documentation}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 1.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
worldDetails.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {leagues | languages}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| leagues&lt;br /&gt;
| Default&lt;br /&gt;
| Show a list of all leagues.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| languages&lt;br /&gt;
|&lt;br /&gt;
| Show a list of all languages.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageList (Within HattrickData) ===&lt;br /&gt;
Container for the list of languages. An Attribute named Count specifies how many languages it contains. Only provided for actionType = languages. Most languages are not user languages, but since some of them may at some future point become so, the full list is provided. Most of the languages are only used in relation to player&#039;s, to determine their names and only show up in the &amp;quot;I speak...&amp;quot; statement on playerDetails.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Language (Within LanguageList) ===&lt;br /&gt;
Container for the data about a particular language. An Attribute named Index works as a counter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageID (Within Language) ===&lt;br /&gt;
The globally unique LanguageID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LanguageName (Within Language) ===&lt;br /&gt;
The Language name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueList (Within HattrickData) ===&lt;br /&gt;
Container for the list of leagues. An Attribute named Count specifies how many leagues it contains. Only provided for actionType = leagues.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== League (Within LeagueList) ===&lt;br /&gt;
Container for the league. An Attribute named Index works as a counter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueID (Within League) ===&lt;br /&gt;
The globally unique LeagueID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueName (Within League) ===&lt;br /&gt;
The League name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Season (Within League) ===&lt;br /&gt;
The current season number of the league.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchRound (Within League) ===&lt;br /&gt;
The current match round of the league.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ShortName (Within League) ===&lt;br /&gt;
The short name of the league (used in some places with little room on the site).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Continent (Within League) ===&lt;br /&gt;
The name of the continent it is defined to be part of in Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ZoneName (Within League) ===&lt;br /&gt;
The name of the zone the league is defined to be part of in Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EnglishName (Within League) ===&lt;br /&gt;
The English name of the league.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Country (Within League) ===&lt;br /&gt;
Container for the country that is related to the league. It may seem confusing what the difference is between a league and a country. Well, there isn&#039;t much, except that in some cases we refer to CountryID instead of LeagueID. The easiest way to deal with it is perhaps to just say: &amp;quot;It&#039;s the way it is. Just learn to live with it.&amp;quot;. Some things are formally tied to the Country instead of the League. We have chosen to maintain that relationship in the XML output, hence the sub-containers of Country.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CountryID (Within Country) ===&lt;br /&gt;
The globally unique CountryID of country.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CountryName (Within Country) ===&lt;br /&gt;
The name of the country.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CurrencyName (Within Country) ===&lt;br /&gt;
The name of the currency in this country.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CurrencyRate (Within Country) ===&lt;br /&gt;
Decimal value specifying the relative currency rate.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cup (Within League) ===&lt;br /&gt;
Data about the league&#039;s default cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupID (Within Cup) ===&lt;br /&gt;
The globally unique CupID&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupName (Within Cup) ===&lt;br /&gt;
The name of the cup.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ActiveUsers (Within League) ===&lt;br /&gt;
Integer specifying the number of active users in the league, as of last daily count.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== WaitingUsers (Within League) ===&lt;br /&gt;
Integer specifying the number of users on the waiting list in the league. These users are not included in the ActiveUsers, so ActiveUsers + WaitingUsers would give a sort of total number of users.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainingDate (Within League) ===&lt;br /&gt;
The date and time when the next training update will start in this league.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== EconomyDate (Within League) ===&lt;br /&gt;
The date and time when the next economy update will start in this league.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupMatchDate (Within League) ===&lt;br /&gt;
The date and time when the next cup round is being checked for (that is, there are not necessarily any matches to play, if the cup has been finished).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SeriesMatchDate (Within League) ===&lt;br /&gt;
The date and time when the next series match round starts. Some leagues may have several series match dates - then this data gives the date when the first batch for the league starts.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NumberOfLevels (Within League) ===&lt;br /&gt;
Integer representing the number of LeagueLevels (divisions) active for this league.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get a list of all leagues and some relevant information about each ===&lt;br /&gt;
worldDetails.asp?outputType=XML&amp;amp;actionType=leagues&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get a list of all languages ===&lt;br /&gt;
worldDetails.asp?outputType=XML&amp;amp;actionType=languages&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37409</id>
		<title>CHPP Development/XML/matches</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37409"/>
		<updated>2006-10-16T00:19:40Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the the moste recent and upcoming &#039;&#039;&#039;matches&#039;&#039;&#039; for a particular team. The XML interface enables CHPP developers to integrate these data into their applications. &lt;br /&gt;
&lt;br /&gt;
{{CHPP Documentation}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
matches.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | refreshCache}&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [LastMatchDate = Date]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the match list of the team.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| refreshCache&lt;br /&gt;
|&lt;br /&gt;
| Force the server to load the match data directly from the database instead of using the cache files that are normally used.&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; Do not abuse this option. Excessive use of this option may force us to close it for XML/CHPP access. The cache files have intelligently chosen expiry dates and are normally fully up to date. Use of the refreshCache option should be restricted to something that happens when the end user actively choses to do so. And it should never be used more than once in 15 minutes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team to show the matches for.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastMatchDate ===&lt;br /&gt;
Last date to show matches to. If not set, default is 28 days in the future. If more than 50 matches are affected, only the 50 first will be returned. This option should not normally be used by CHPPs, since it bypass the cache.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
The team that the list applies to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The team&#039;s TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full name of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchList (Within Team) ===&lt;br /&gt;
Container for the matches. An attribute named Count specifies how many matches it contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Match (Within MatchList) ===&lt;br /&gt;
A match. An attribute called Index signifies the number of the match in the list (not to be confused with MatchID which is globabbly unique).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchID (Within Match) ===&lt;br /&gt;
The globally unique identifier of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeam (Within Match) ===&lt;br /&gt;
The Home (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamID (Within HomeTeam) ===&lt;br /&gt;
The teamID of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamName (Within HomeTeam) ===&lt;br /&gt;
The team name of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeam (Within Match) ===&lt;br /&gt;
The away (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamID (Within AwayTeam) ===&lt;br /&gt;
The teamID of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamName (Within AwayTeam) ===&lt;br /&gt;
The team name of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchDate (Within Match) ===&lt;br /&gt;
The start date (kick-off) of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchType (Within Match) ===&lt;br /&gt;
Integer defining the type of match:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! MatchType&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 1&lt;br /&gt;
| League match.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 2&lt;br /&gt;
| Qualification match.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 3&lt;br /&gt;
| Cup match (standard league cup).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 4&lt;br /&gt;
| Friendly (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 5&lt;br /&gt;
| Friendly (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 6&lt;br /&gt;
| Not currently in use, but reserved for international competition matches with normal rules (may or may not be implemented at some future point).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 7&lt;br /&gt;
| Hattrick Masters&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 8&lt;br /&gt;
| International friendly (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 9&lt;br /&gt;
| International friendly (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 10&lt;br /&gt;
| National teams competition match (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 11&lt;br /&gt;
| National teams competition match (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 12&lt;br /&gt;
| National teams friendly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeGoals (Within Match) ===&lt;br /&gt;
The number of goals for the home team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayGoals (Within Match) ===&lt;br /&gt;
The number of goals for the away team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Status (Within Match) ===&lt;br /&gt;
A tristate string value specifying whether the match is FINISHED, ONGOING or UPCOMING.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OrdersGiven (Within Match) ===&lt;br /&gt;
A boolean value only supplied for upcoming matches (haven&#039;t started yet) of your own team that signifies whether you have given orders or not. If the request is for another team than your own (even if it is for your opponent), this data is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team and order the server to make a cache refresh (please avoid excessive use) ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=refreshCache&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=Template:CHPP_Documentation&amp;diff=37408</id>
		<title>Template:CHPP Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=Template:CHPP_Documentation&amp;diff=37408"/>
		<updated>2006-10-16T00:15:32Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;background-color: transparent; border: 1px solid #ccc; padding: 5px; font-size:85%;&amp;quot; class=&amp;quot;noprint&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Important!&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Please note that it is strictly forbidden to develop applications that works with this or other XML/hrf files unless you are a CHPP developer. It is also illegal to use other applications than standard browsers or CHPP approved programs to access the data on the site. Violation of these rules might render you to lose your team.&lt;br /&gt;
|- style=&amp;quot;color: red; font-weight: bold;&amp;quot;&lt;br /&gt;
| Only the XML version of this file may be included in CHPP applications.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:CHPP Documentation]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/players&amp;diff=37407</id>
		<title>CHPP Development/XML/players</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/players&amp;diff=37407"/>
		<updated>2006-10-16T00:15:12Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to the list of &#039;&#039;&#039;players&#039;&#039;&#039; for a team. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
{{CHPP Documentation}}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 1.2.6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
players.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | viewOldies | supporterStats}&lt;br /&gt;
      [orderBy = {PlayerNumber | Lastname | PlayerID | Age | MarketValue}]&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [matchTypeCategory = {ALL | LQC | F | NT | WC}]&lt;br /&gt;
      [showAll = {false | true}]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the list of players belonging to a team.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| viewOldies&lt;br /&gt;
|&lt;br /&gt;
| View the list of players who no longer belong to the club but were promoted from the youth squad of this team, or who were part of the start-up squad of the team.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| supporterStats&lt;br /&gt;
|&lt;br /&gt;
| Show players who have played matches for the team, ordered by the number of matches they have played for the team. Requires that the logged on user is a Hattrick Supporter.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| orderBy&lt;br /&gt;
|&lt;br /&gt;
| The field that the outdata PlayerList should be sorted by. Not relevant for actionType = supporterStats.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
The team for which the data should apply to. Defaults to the logged on user&#039;s own TeamID if not supplied.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== matchTypeCategory ===&lt;br /&gt;
Only relevant for actionType = supporterStats. Indicates one of the following types of matches:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| ALL&lt;br /&gt;
| Default&lt;br /&gt;
| All matches.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| LQC&lt;br /&gt;
|&lt;br /&gt;
| League, qualification and cup matches.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|F&lt;br /&gt;
|&lt;br /&gt;
|Friendlies only.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== showAll ===&lt;br /&gt;
Boolean value only relevant for actionType supporterStats. Defaults to false, which means that only the 20 players with most matches are shown. If true, all players are returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
Container for the team to which the data applies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The globally unique TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerList (Within Team) ===&lt;br /&gt;
Container for the list of players. An Attribute named Count specifies how many players it contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Player (Within PlayerList) ===&lt;br /&gt;
Container for a player. An Attribute named Index works as a counter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerID (Within Player) ===&lt;br /&gt;
The globally unique PlayerID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerName (Within Player) ===&lt;br /&gt;
The Player name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerNumber (Within Player) ===&lt;br /&gt;
The number (1 to 99) that the owner (if he/she is Ht Supporter) of the team has assigned this player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Age (Within Player) ===&lt;br /&gt;
The age of the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TSI (Within Player) ===&lt;br /&gt;
The Total Skill Index (TSI) of the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerForm (Within Player) ===&lt;br /&gt;
The current form, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Statement (Within Player) ===&lt;br /&gt;
If the owner is a HT Supporter, he may have provided a Statement from his players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Experience (Within Player) ===&lt;br /&gt;
The experience of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Leadership (Within Player) ===&lt;br /&gt;
The leadership of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Salary (Within Player) ===&lt;br /&gt;
The salary of the player, given in the default currence (Currency rate 1. There are 10 default currency units per US$).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== IsAbroad (Within Player) ===&lt;br /&gt;
The abroad status of the player, given as an integer. 0 for beeing in home country, 1 for beeing in a team abroad.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agreeability (Within Player) ===&lt;br /&gt;
The agreeability of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Aggressiveness (Within Player) ===&lt;br /&gt;
The aggressiveness of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Honesty (Within Player) ===&lt;br /&gt;
The honesty of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueGoals (Within Player) ===&lt;br /&gt;
The number of goals in the league this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupGoals (Within Player) ===&lt;br /&gt;
The number of goals in the cup this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendliesGoals (Within Player) ===&lt;br /&gt;
The number of goals in friendlies this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CareerGoals (Within Player) ===&lt;br /&gt;
The total number goals throughout this player&#039;s carreer. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data have become somewhat corrupt over the years, something that cannot be fixed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CareerHattricks (Within Player) ===&lt;br /&gt;
The total number hattricks throughout this player&#039;s carreer. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of hattricks. Please note that some of these data have become somewhat corrupt over the years, something that cannot be fixed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Specialty (Within Player) ===&lt;br /&gt;
Integer indicating the specialty (if any) of the player:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 0&lt;br /&gt;
| No specialty.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 1&lt;br /&gt;
| Technical.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 2&lt;br /&gt;
| Quick.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 3&lt;br /&gt;
| Powerful.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 4&lt;br /&gt;
| Unpredictable.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 5&lt;br /&gt;
| Head specialist.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TransferListed (Within Player) ===&lt;br /&gt;
Returns 1 if the player is on the transfer list, otherwise 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamID (Within Player) ===&lt;br /&gt;
If the player is enrolled on a national team, this is that national team&#039;s ID. Otherwise will return 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cards (Within Player) ===&lt;br /&gt;
The number of currently accumulated cards. If the player is suspended, this will return 3 (whether the player has actually accumulated 3 bookings, or if he has become suspended by being sent off after 2 bookings in the same game). If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of cards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== InjuryLevel (Within Player) ===&lt;br /&gt;
The number of weeks the player is predicted to be injured. If the player is bruised, a value of 0 is returned. If the player is healthy, a value of -1 is returned. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual InjuryLevel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== StaminaSkill (Within Player) ===&lt;br /&gt;
The stamina skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== KeeperSkill (Within Player) ===&lt;br /&gt;
The keeper skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlaymakerSkill (Within Player) ===&lt;br /&gt;
The playmaker skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ScorerSkill (Within Player) ===&lt;br /&gt;
The scorer skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PassingSkill (Within Player) ===&lt;br /&gt;
The passing skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== WingerSkill (Within Player) ===&lt;br /&gt;
The winger skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DefenderSkill (Within Player) ===&lt;br /&gt;
The defender skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SetPiecesSkill (Within Player) ===&lt;br /&gt;
The set pieces skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OwningTeam (Within Player) ===&lt;br /&gt;
Container for the team that owns the player. Only provided for actionType viewOldies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within OwningTeam) ===&lt;br /&gt;
The globally unique TeamID of the team owning the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within OwningTeam) ===&lt;br /&gt;
The full team name of the team owning the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueName (Within OwningTeam) ===&lt;br /&gt;
The name of the league that team owning the player is located in.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerData (Within Player) ===&lt;br /&gt;
Container for the skills that relate to coach/trainer ability. Only provided if the player has been made into a trainer, &amp;quot;has gained trainer license&amp;quot;. It is provided irrespective of if he is actually serving as the appointed coach of the club or not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerType (Within TrainerData) ===&lt;br /&gt;
Integer indicating the type of trainer:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 0&lt;br /&gt;
| Defensive&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 1&lt;br /&gt;
| Offensive&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 2&lt;br /&gt;
| Balanced&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerSkill (Within TrainerData) ===&lt;br /&gt;
The trainer skill, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CountryID (Within Player) ===&lt;br /&gt;
The CountryID that the player is native of. This is the value that is used to identify what national team the player can be enrolled to. Please note that CountryID is often not the same as LeagueID. You can use (for instance) worldDetails.asp to map a certain CountryID to a LeagueID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Caps (Within Player) ===&lt;br /&gt;
The number of matches played for the national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CapsU20 (Within Player) ===&lt;br /&gt;
The number of matches played for the U-20 national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get a list of all players for your own team ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=view&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get a list of players that were brought up in a team (but is no longer in the team) ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=viewOldies&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get a list of all players that have played a competition match (League, Qual. cup) for your team ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=supporterStats&amp;amp;matchTypeCategory=LQC&amp;amp;showAll=true&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=Template:CHPP_Documentation&amp;diff=37406</id>
		<title>Template:CHPP Documentation</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=Template:CHPP_Documentation&amp;diff=37406"/>
		<updated>2006-10-15T23:35:52Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;{| cellpadding=&amp;quot;0&amp;quot; cellspacing=&amp;quot;0&amp;quot; style=&amp;quot;background-color: transparent; border: 1px solid #ccc; padding: 5px; font-size:85%;&amp;quot; class=&amp;quot;noprint&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
| &#039;&#039;&#039;Important!&#039;&#039;&#039;&lt;br /&gt;
|-&lt;br /&gt;
| Please note that it is strictly forbidden to develop applications that works with this or other XML/hrf files unless you are a CHPP developer. It is also illegal to use other applications than standard browsers or CHPP approved programs to access the data on the site. Violation of these rules might render you to lose your team.&lt;br /&gt;
|- style=&amp;quot;color: red; font-weight: bold;&amp;quot;&lt;br /&gt;
| Only the XML version of this file may be included in CHPP applications.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&amp;lt;includeonly&amp;gt;[[Category:!CHPP Documentation]]&amp;lt;/includeonly&amp;gt;&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/players&amp;diff=37404</id>
		<title>CHPP Development/XML/players</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/players&amp;diff=37404"/>
		<updated>2006-10-15T22:15:29Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to the list of &#039;&#039;&#039;players&#039;&#039;&#039; for a team. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 1.2.6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
players.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | viewOldies | supporterStats}&lt;br /&gt;
      [orderBy = {PlayerNumber | Lastname | PlayerID | Age | MarketValue}]&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [matchTypeCategory = {ALL | LQC | F | NT | WC}]&lt;br /&gt;
      [showAll = {false | true}]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the list of players belonging to a team.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| viewOldies&lt;br /&gt;
|&lt;br /&gt;
| View the list of players who no longer belong to the club but were promoted from the youth squad of this team, or who were part of the start-up squad of the team.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| supporterStats&lt;br /&gt;
|&lt;br /&gt;
| Show players who have played matches for the team, ordered by the number of matches they have played for the team. Requires that the logged on user is a Hattrick Supporter.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| orderBy&lt;br /&gt;
|&lt;br /&gt;
| The field that the outdata PlayerList should be sorted by. Not relevant for actionType = supporterStats.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
The team for which the data should apply to. Defaults to the logged on user&#039;s own TeamID if not supplied.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== matchTypeCategory ===&lt;br /&gt;
Only relevant for actionType = supporterStats. Indicates one of the following types of matches:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| ALL&lt;br /&gt;
| Default&lt;br /&gt;
| All matches.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| LQC&lt;br /&gt;
|&lt;br /&gt;
| League, qualification and cup matches.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
|F&lt;br /&gt;
|&lt;br /&gt;
|Friendlies only.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== showAll ===&lt;br /&gt;
Boolean value only relevant for actionType supporterStats. Defaults to false, which means that only the 20 players with most matches are shown. If true, all players are returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
Container for the team to which the data applies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The globally unique TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerList (Within Team) ===&lt;br /&gt;
Container for the list of players. An Attribute named Count specifies how many players it contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Player (Within PlayerList) ===&lt;br /&gt;
Container for a player. An Attribute named Index works as a counter.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerID (Within Player) ===&lt;br /&gt;
The globally unique PlayerID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerName (Within Player) ===&lt;br /&gt;
The Player name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerNumber (Within Player) ===&lt;br /&gt;
The number (1 to 99) that the owner (if he/she is Ht Supporter) of the team has assigned this player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Age (Within Player) ===&lt;br /&gt;
The age of the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TSI (Within Player) ===&lt;br /&gt;
The Total Skill Index (TSI) of the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerForm (Within Player) ===&lt;br /&gt;
The current form, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Statement (Within Player) ===&lt;br /&gt;
If the owner is a HT Supporter, he may have provided a Statement from his players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Experience (Within Player) ===&lt;br /&gt;
The experience of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Leadership (Within Player) ===&lt;br /&gt;
The leadership of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Salary (Within Player) ===&lt;br /&gt;
The salary of the player, given in the default currence (Currency rate 1. There are 10 default currency units per US$).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== IsAbroad (Within Player) ===&lt;br /&gt;
The abroad status of the player, given as an integer. 0 for beeing in home country, 1 for beeing in a team abroad.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agreeability (Within Player) ===&lt;br /&gt;
The agreeability of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Aggressiveness (Within Player) ===&lt;br /&gt;
The aggressiveness of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Honesty (Within Player) ===&lt;br /&gt;
The honesty of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueGoals (Within Player) ===&lt;br /&gt;
The number of goals in the league this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupGoals (Within Player) ===&lt;br /&gt;
The number of goals in the cup this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendliesGoals (Within Player) ===&lt;br /&gt;
The number of goals in friendlies this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CareerGoals (Within Player) ===&lt;br /&gt;
The total number goals throughout this player&#039;s carreer. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data have become somewhat corrupt over the years, something that cannot be fixed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CareerHattricks (Within Player) ===&lt;br /&gt;
The total number hattricks throughout this player&#039;s carreer. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of hattricks. Please note that some of these data have become somewhat corrupt over the years, something that cannot be fixed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Specialty (Within Player) ===&lt;br /&gt;
Integer indicating the specialty (if any) of the player:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 0&lt;br /&gt;
| No specialty.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 1&lt;br /&gt;
| Technical.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 2&lt;br /&gt;
| Quick.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 3&lt;br /&gt;
| Powerful.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 4&lt;br /&gt;
| Unpredictable.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 5&lt;br /&gt;
| Head specialist.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TransferListed (Within Player) ===&lt;br /&gt;
Returns 1 if the player is on the transfer list, otherwise 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamID (Within Player) ===&lt;br /&gt;
If the player is enrolled on a national team, this is that national team&#039;s ID. Otherwise will return 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cards (Within Player) ===&lt;br /&gt;
The number of currently accumulated cards. If the player is suspended, this will return 3 (whether the player has actually accumulated 3 bookings, or if he has become suspended by being sent off after 2 bookings in the same game). If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of cards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== InjuryLevel (Within Player) ===&lt;br /&gt;
The number of weeks the player is predicted to be injured. If the player is bruised, a value of 0 is returned. If the player is healthy, a value of -1 is returned. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual InjuryLevel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== StaminaSkill (Within Player) ===&lt;br /&gt;
The stamina skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== KeeperSkill (Within Player) ===&lt;br /&gt;
The keeper skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlaymakerSkill (Within Player) ===&lt;br /&gt;
The playmaker skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ScorerSkill (Within Player) ===&lt;br /&gt;
The scorer skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PassingSkill (Within Player) ===&lt;br /&gt;
The passing skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== WingerSkill (Within Player) ===&lt;br /&gt;
The winger skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DefenderSkill (Within Player) ===&lt;br /&gt;
The defender skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SetPiecesSkill (Within Player) ===&lt;br /&gt;
The set pieces skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OwningTeam (Within Player) ===&lt;br /&gt;
Container for the team that owns the player. Only provided for actionType viewOldies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within OwningTeam) ===&lt;br /&gt;
The globally unique TeamID of the team owning the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within OwningTeam) ===&lt;br /&gt;
The full team name of the team owning the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueName (Within OwningTeam) ===&lt;br /&gt;
The name of the league that team owning the player is located in.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerData (Within Player) ===&lt;br /&gt;
Container for the skills that relate to coach/trainer ability. Only provided if the player has been made into a trainer, &amp;quot;has gained trainer license&amp;quot;. It is provided irrespective of if he is actually serving as the appointed coach of the club or not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerType (Within TrainerData) ===&lt;br /&gt;
Integer indicating the type of trainer:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 0&lt;br /&gt;
| Defensive&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 1&lt;br /&gt;
| Offensive&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 2&lt;br /&gt;
| Balanced&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerSkill (Within TrainerData) ===&lt;br /&gt;
The trainer skill, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CountryID (Within Player) ===&lt;br /&gt;
The CountryID that the player is native of. This is the value that is used to identify what national team the player can be enrolled to. Please note that CountryID is often not the same as LeagueID. You can use (for instance) worldDetails.asp to map a certain CountryID to a LeagueID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Caps (Within Player) ===&lt;br /&gt;
The number of matches played for the national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CapsU20 (Within Player) ===&lt;br /&gt;
The number of matches played for the U-20 national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get a list of all players for your own team ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=view&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get a list of players that were brought up in a team (but is no longer in the team) ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=viewOldies&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get a list of all players that have played a competition match (League, Qual. cup) for your team ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=supporterStats&amp;amp;matchTypeCategory=LQC&amp;amp;showAll=true&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/players&amp;diff=37403</id>
		<title>CHPP Development/XML/players</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/players&amp;diff=37403"/>
		<updated>2006-10-15T22:03:42Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to the list of &#039;&#039;&#039;players&#039;&#039;&#039; for a team. The XML interface enables CHPP developers to integrate these data into their applications.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 1.2.6&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
players.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | viewOldies | supporterStats}&lt;br /&gt;
      [orderBy = {PlayerNumber | Lastname | PlayerID | Age | MarketValue}]&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [matchTypeCategory = {ALL | LQC | F | NT | WC}]&lt;br /&gt;
      [showAll = {false | true}]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
Value 	Default 	Description&lt;br /&gt;
view 	Default 	View the list of players belonging to a team.&lt;br /&gt;
viewOldies 		View the list of players who no longer belong to the club but were promoted from the youth squad of this team, or who were part of the start-up squad of the team.&lt;br /&gt;
supporterStats 		Show players who have played matches for the team, ordered by the number of matches they have played for the team. Requires that the logged on user is a Hattrick Supporter.&lt;br /&gt;
orderBy&lt;br /&gt;
The field that the outdata PlayerList should be sorted by. Not relevant for actionType = supporterStats.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
The team for which the data should apply to. Defaults to the logged on user&#039;s own TeamID if not supplied.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== matchTypeCategory ===&lt;br /&gt;
Only relevant for actionType = supporterStats. Indicates one of the following types of matches:&lt;br /&gt;
Value 	Default 	Description&lt;br /&gt;
ALL 	Default 	All matches.&lt;br /&gt;
LQC 		League, qualification and cup matches.&lt;br /&gt;
F 		Friendlies only.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== showAll ===&lt;br /&gt;
Boolean value only relevant for actionType supporterStats. Defaults to false, which means that only the 20 players with most matches are shown. If true, all players are returned.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
Container for the team to which the data applies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The globally unique TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full team name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerList (Within Team) ===&lt;br /&gt;
Container for the list of players. An Attribute named Count specifies how many players it contains.&lt;br /&gt;
&lt;br /&gt;
=== Player (Within PlayerList) ===&lt;br /&gt;
Container for a player. An Attribute named Index works as a counter.&lt;br /&gt;
&lt;br /&gt;
=== PlayerID (Within Player) ===&lt;br /&gt;
The globally unique PlayerID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerName (Within Player) ===&lt;br /&gt;
The Player name.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerNumber (Within Player) ===&lt;br /&gt;
The number (1 to 99) that the owner (if he/she is Ht Supporter) of the team has assigned this player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Age (Within Player) ===&lt;br /&gt;
The age of the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TSI (Within Player) ===&lt;br /&gt;
The Total Skill Index (TSI) of the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlayerForm (Within Player) ===&lt;br /&gt;
The current form, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Statement (Within Player) ===&lt;br /&gt;
If the owner is a HT Supporter, he may have provided a Statement from his players.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Experience (Within Player) ===&lt;br /&gt;
The experience of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Leadership (Within Player) ===&lt;br /&gt;
The leadership of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Salary (Within Player) ===&lt;br /&gt;
The salary of the player, given in the default currence (Currency rate 1. There are 10 default currency units per US$).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== IsAbroad (Within Player) ===&lt;br /&gt;
The abroad status of the player, given as an integer. 0 for beeing in home country, 1 for beeing in a team abroad.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Agreeability (Within Player) ===&lt;br /&gt;
The agreeability of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Aggressiveness (Within Player) ===&lt;br /&gt;
The aggressiveness of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Honesty (Within Player) ===&lt;br /&gt;
The honesty of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueGoals (Within Player) ===&lt;br /&gt;
The number of goals in the league this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CupGoals (Within Player) ===&lt;br /&gt;
The number of goals in the cup this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FriendliesGoals (Within Player) ===&lt;br /&gt;
The number of goals in friendlies this season. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data can sometimes be somewhat corrupt.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CareerGoals (Within Player) ===&lt;br /&gt;
The total number goals throughout this player&#039;s carreer. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of goals. Please note that some of these data have become somewhat corrupt over the years, something that cannot be fixed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CareerHattricks (Within Player) ===&lt;br /&gt;
The total number hattricks throughout this player&#039;s carreer. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of hattricks. Please note that some of these data have become somewhat corrupt over the years, something that cannot be fixed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Specialty (Within Player) ===&lt;br /&gt;
Integer indicating the specialty (if any) of the player:&lt;br /&gt;
Value 	Description&lt;br /&gt;
0 	No specialty.&lt;br /&gt;
1 	Technical.&lt;br /&gt;
2 	Quick.&lt;br /&gt;
3 	Powerful.&lt;br /&gt;
4 	Unpredictable.&lt;br /&gt;
5 	Head specialist.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TransferListed (Within Player) ===&lt;br /&gt;
Returns 1 if the player is on the transfer list, otherwise 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== NationalTeamID (Within Player) ===&lt;br /&gt;
If the player is enrolled on a national team, this is that national team&#039;s ID. Otherwise will return 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Cards (Within Player) ===&lt;br /&gt;
The number of currently accumulated cards. If the player is suspended, this will return 3 (whether the player has actually accumulated 3 bookings, or if he has become suspended by being sent off after 2 bookings in the same game). If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual number of cards.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== InjuryLevel (Within Player) ===&lt;br /&gt;
The number of weeks the player is predicted to be injured. If the player is bruised, a value of 0 is returned. If the player is healthy, a value of -1 is returned. If the team the player belongs to is currently playing a match, a string with value NOT AVAILABLE is returned instead of the actual InjuryLevel.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== StaminaSkill (Within Player) ===&lt;br /&gt;
The stamina skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== KeeperSkill (Within Player) ===&lt;br /&gt;
The keeper skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PlaymakerSkill (Within Player) ===&lt;br /&gt;
The playmaker skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== ScorerSkill (Within Player) ===&lt;br /&gt;
The scorer skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== PassingSkill (Within Player) ===&lt;br /&gt;
The passing skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== WingerSkill (Within Player) ===&lt;br /&gt;
The winger skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== DefenderSkill (Within Player) ===&lt;br /&gt;
The defender skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== SetPiecesSkill (Within Player) ===&lt;br /&gt;
The set pieces skill of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on. Only provided if the player belongs to the logged on user.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OwningTeam (Within Player) ===&lt;br /&gt;
Container for the team that owns the player. Only provided for actionType viewOldies.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within OwningTeam) ===&lt;br /&gt;
The globally unique TeamID of the team owning the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within OwningTeam) ===&lt;br /&gt;
The full team name of the team owning the player.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LeagueName (Within OwningTeam) ===&lt;br /&gt;
The name of the league that team owning the player is located in.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerData (Within Player) ===&lt;br /&gt;
Container for the skills that relate to coach/trainer ability. Only provided if the player has been made into a trainer, &amp;quot;has gained trainer license&amp;quot;. It is provided irrespective of if he is actually serving as the appointed coach of the club or not.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerType (Within TrainerData) ===&lt;br /&gt;
Integer indicating the type of trainer:&lt;br /&gt;
Value 	Description&lt;br /&gt;
0 	Defensive&lt;br /&gt;
1 	Offensive&lt;br /&gt;
2 	Balanced&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TrainerSkill (Within TrainerData) ===&lt;br /&gt;
The trainer skill, given as an integer with 1 indicating disastrous, 2 for wretched and so on.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CountryID (Within Player) ===&lt;br /&gt;
The CountryID that the player is native of. This is the value that is used to identify what national team the player can be enrolled to. Please note that CountryID is often not the same as LeagueID. You can use (for instance) worldDetails.asp to map a certain CountryID to a LeagueID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Caps (Within Player) ===&lt;br /&gt;
The number of matches played for the national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== CapsU20 (Within Player) ===&lt;br /&gt;
The number of matches played for the U-20 national team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get a list of all players for your own team ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=view Try&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get a list of players that were brought up in a team (but is no longer in the team) ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=viewOldies&amp;amp;teamID=373 Try&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get a list of all players that have played a competition match (League, Qual. cup) for your team ===&lt;br /&gt;
players.asp?outputType=XML&amp;amp;actionType=supporterStats&amp;amp;matchTypeCategory=LQC&amp;amp;showAll=true Try&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37402</id>
		<title>CHPP Development/XML/matches</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37402"/>
		<updated>2006-10-15T21:57:29Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the the moste recent and upcoming &#039;&#039;&#039;matches&#039;&#039;&#039; for a particular team. The XML interface enables CHPP developers to integrate these data into their applications. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
matches.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | refreshCache}&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [LastMatchDate = Date]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the match list of the team.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| refreshCache&lt;br /&gt;
|&lt;br /&gt;
| Force the server to load the match data directly from the database instead of using the cache files that are normally used.&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; Do not abuse this option. Excessive use of this option may force us to close it for XML/CHPP access. The cache files have intelligently chosen expiry dates and are normally fully up to date. Use of the refreshCache option should be restricted to something that happens when the end user actively choses to do so. And it should never be used more than once in 15 minutes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team to show the matches for.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastMatchDate ===&lt;br /&gt;
Last date to show matches to. If not set, default is 28 days in the future. If more than 50 matches are affected, only the 50 first will be returned. This option should not normally be used by CHPPs, since it bypass the cache.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Outdata parameters ==&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
The team that the list applies to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The team&#039;s TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full name of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchList (Within Team) ===&lt;br /&gt;
Container for the matches. An attribute named Count specifies how many matches it contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Match (Within MatchList) ===&lt;br /&gt;
A match. An attribute called Index signifies the number of the match in the list (not to be confused with MatchID which is globabbly unique).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchID (Within Match) ===&lt;br /&gt;
The globally unique identifier of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeam (Within Match) ===&lt;br /&gt;
The Home (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamID (Within HomeTeam) ===&lt;br /&gt;
The teamID of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamName (Within HomeTeam) ===&lt;br /&gt;
The team name of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeam (Within Match) ===&lt;br /&gt;
The away (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamID (Within AwayTeam) ===&lt;br /&gt;
The teamID of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamName (Within AwayTeam) ===&lt;br /&gt;
The team name of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchDate (Within Match) ===&lt;br /&gt;
The start date (kick-off) of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchType (Within Match) ===&lt;br /&gt;
Integer defining the type of match:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! MatchType&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 1&lt;br /&gt;
| League match.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 2&lt;br /&gt;
| Qualification match.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 3&lt;br /&gt;
| Cup match (standard league cup).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 4&lt;br /&gt;
| Friendly (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 5&lt;br /&gt;
| Friendly (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 6&lt;br /&gt;
| Not currently in use, but reserved for international competition matches with normal rules (may or may not be implemented at some future point).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 7&lt;br /&gt;
| Hattrick Masters&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 8&lt;br /&gt;
| International friendly (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 9&lt;br /&gt;
| International friendly (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 10&lt;br /&gt;
| National teams competition match (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 11&lt;br /&gt;
| National teams competition match (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 12&lt;br /&gt;
| National teams friendly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeGoals (Within Match) ===&lt;br /&gt;
The number of goals for the home team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayGoals (Within Match) ===&lt;br /&gt;
The number of goals for the away team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Status (Within Match) ===&lt;br /&gt;
A tristate string value specifying whether the match is FINISHED, ONGOING or UPCOMING.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OrdersGiven (Within Match) ===&lt;br /&gt;
A boolean value only supplied for upcoming matches (haven&#039;t started yet) of your own team that signifies whether you have given orders or not. If the request is for another team than your own (even if it is for your opponent), this data is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team and order the server to make a cache refresh (please avoid excessive use) ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=refreshCache&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37401</id>
		<title>CHPP Development/XML/matches</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37401"/>
		<updated>2006-10-15T21:52:07Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the the moste recent and upcoming &#039;&#039;&#039;matches&#039;&#039;&#039; for a particular team. The XML interface enables CHPP developers to integrate these data into their applications. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
matches.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | refreshCache}&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [LastMatchDate = Date]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the match list of the team.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| refreshCache&lt;br /&gt;
|&lt;br /&gt;
| Force the server to load the match data directly from the database instead of using the cache files that are normally used.&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; Do not abuse this option. Excessive use of this option may force us to close it for XML/CHPP access. The cache files have intelligently chosen expiry dates and are normally fully up to date. Use of the refreshCache option should be restricted to something that happens when the end user actively choses to do so. And it should never be used more than once in 15 minutes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team to show the matches for.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastMatchDate ===&lt;br /&gt;
Last date to show matches to. If not set, default is 28 days in the future. If more than 50 matches are affected, only the 50 first will be returned. This option should not normally be used by CHPPs, since it bypass the cache.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outdata parameters ===&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
The team that the list applies to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The team&#039;s TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full name of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchList (Within Team) ===&lt;br /&gt;
Container for the matches. An attribute named Count specifies how many matches it contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Match (Within MatchList) ===&lt;br /&gt;
A match. An attribute called Index signifies the number of the match in the list (not to be confused with MatchID which is globabbly unique).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchID (Within Match) ===&lt;br /&gt;
The globally unique identifier of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeam (Within Match) ===&lt;br /&gt;
The Home (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamID (Within HomeTeam) ===&lt;br /&gt;
The teamID of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamName (Within HomeTeam) ===&lt;br /&gt;
The team name of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeam (Within Match) ===&lt;br /&gt;
The away (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamID (Within AwayTeam) ===&lt;br /&gt;
The teamID of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamName (Within AwayTeam) ===&lt;br /&gt;
The team name of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchDate (Within Match) ===&lt;br /&gt;
The start date (kick-off) of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchType (Within Match) ===&lt;br /&gt;
Integer defining the type of match:&lt;br /&gt;
&lt;br /&gt;
{|  border=&amp;quot;0&amp;quot; cellpadding=&amp;quot;2&amp;quot; cellspacing=&amp;quot;2&amp;quot;&lt;br /&gt;
|- bgcolor=&amp;quot;#cccccc&amp;quot; align=&amp;quot;left&amp;quot;&lt;br /&gt;
! MatchType&lt;br /&gt;
! Description&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 1&lt;br /&gt;
| League match.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 2&lt;br /&gt;
| Qualification match.&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 3&lt;br /&gt;
| Cup match (standard league cup).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 4&lt;br /&gt;
| Friendly (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 5&lt;br /&gt;
| Friendly (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 6&lt;br /&gt;
| Not currently in use, but reserved for international competition matches with normal rules (may or may not be implemented at some future point).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 7&lt;br /&gt;
| Hattrick Masters&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 8&lt;br /&gt;
| International friendly (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 9&lt;br /&gt;
| International friendly (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 10&lt;br /&gt;
| National teams competition match (normal rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 11&lt;br /&gt;
| National teams competition match (cup rules).&lt;br /&gt;
|- bgcolor=&amp;quot;#dddddd&amp;quot; valign=&amp;quot;top&amp;quot;&lt;br /&gt;
| 12&lt;br /&gt;
| National teams friendly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeGoals (Within Match) ===&lt;br /&gt;
The number of goals for the home team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayGoals (Within Match) ===&lt;br /&gt;
The number of goals for the away team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Status (Within Match) ===&lt;br /&gt;
A tristate string value specifying whether the match is FINISHED, ONGOING or UPCOMING.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OrdersGiven (Within Match) ===&lt;br /&gt;
A boolean value only supplied for upcoming matches (haven&#039;t started yet) of your own team that signifies whether you have given orders or not. If the request is for another team than your own (even if it is for your opponent), this data is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team and order the server to make a cache refresh (please avoid excessive use) ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=refreshCache&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37400</id>
		<title>CHPP Development/XML/matches</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37400"/>
		<updated>2006-10-15T21:33:27Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the the moste recent and upcoming &#039;&#039;&#039;matches&#039;&#039;&#039; for a particular team. The XML interface enables CHPP developers to integrate these data into their applications. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
matches.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | refreshCache}&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [LastMatchDate = Date]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; width=&amp;quot;75%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the match list of the team.&lt;br /&gt;
|-&lt;br /&gt;
| refreshCache&lt;br /&gt;
|&lt;br /&gt;
| Force the server to load the match data directly from the database instead of using the cache files that are normally used.&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; Do not abuse this option. Excessive use of this option may force us to close it for XML/CHPP access. The cache files have intelligently chosen expiry dates and are normally fully up to date. Use of the refreshCache option should be restricted to something that happens when the end user actively choses to do so. And it should never be used more than once in 15 minutes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team to show the matches for.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastMatchDate ===&lt;br /&gt;
Last date to show matches to. If not set, default is 28 days in the future. If more than 50 matches are affected, only the 50 first will be returned. This option should not normally be used by CHPPs, since it bypass the cache.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outdata parameters ===&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
The team that the list applies to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The team&#039;s TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full name of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchList (Within Team) ===&lt;br /&gt;
Container for the matches. An attribute named Count specifies how many matches it contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Match (Within MatchList) ===&lt;br /&gt;
A match. An attribute called Index signifies the number of the match in the list (not to be confused with MatchID which is globabbly unique).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchID (Within Match) ===&lt;br /&gt;
The globally unique identifier of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeam (Within Match) ===&lt;br /&gt;
The Home (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamID (Within HomeTeam) ===&lt;br /&gt;
The teamID of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamName (Within HomeTeam) ===&lt;br /&gt;
The team name of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeam (Within Match) ===&lt;br /&gt;
The away (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamID (Within AwayTeam) ===&lt;br /&gt;
The teamID of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamName (Within AwayTeam) ===&lt;br /&gt;
The team name of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchDate (Within Match) ===&lt;br /&gt;
The start date (kick-off) of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchType (Within Match) ===&lt;br /&gt;
Integer defining the type of match:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; width=&amp;quot;75%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! MatchType&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| League match.&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Qualification match.&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Cup match (standard league cup).&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| Friendly (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| Friendly (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| Not currently in use, but reserved for international competition matches with normal rules (may or may not be implemented at some future point).&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| Hattrick Masters&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| International friendly (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| International friendly (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| National teams competition match (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| National teams competition match (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| National teams friendly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeGoals (Within Match) ===&lt;br /&gt;
The number of goals for the home team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayGoals (Within Match) ===&lt;br /&gt;
The number of goals for the away team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Status (Within Match) ===&lt;br /&gt;
A tristate string value specifying whether the match is FINISHED, ONGOING or UPCOMING.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OrdersGiven (Within Match) ===&lt;br /&gt;
A boolean value only supplied for upcoming matches (haven&#039;t started yet) of your own team that signifies whether you have given orders or not. If the request is for another team than your own (even if it is for your opponent), this data is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team and order the server to make a cache refresh (please avoid excessive use) ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=refreshCache&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37399</id>
		<title>CHPP Development/XML/matches</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37399"/>
		<updated>2006-10-15T21:23:18Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This page offers XML and HTML interfaces to see the the moste recent and upcoming matches for a particular team. The XML interface enables CHPP developers to integrate these data into their applications. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Current version ==&lt;br /&gt;
Current version of the XML output is 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
matches.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | refreshCache}&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [LastMatchDate = Date]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; width=&amp;quot;75%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the match list of the team.&lt;br /&gt;
|-&lt;br /&gt;
| refreshCache&lt;br /&gt;
|&lt;br /&gt;
| Force the server to load the match data directly from the database instead of using the cache files that are normally used.&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; Do not abuse this option. Excessive use of this option may force us to close it for XML/CHPP access. The cache files have intelligently chosen expiry dates and are normally fully up to date. Use of the refreshCache option should be restricted to something that happens when the end user actively choses to do so. And it should never be used more than once in 15 minutes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team to show the matches for.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastMatchDate ===&lt;br /&gt;
Last date to show matches to. If not set, default is 28 days in the future. If more than 50 matches are affected, only the 50 first will be returned. This option should not normally be used by CHPPs, since it bypass the cache.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outdata parameters ===&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
The team that the list applies to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The team&#039;s TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full name of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchList (Within Team) ===&lt;br /&gt;
Container for the matches. An attribute named Count specifies how many matches it contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Match (Within MatchList) ===&lt;br /&gt;
A match. An attribute called Index signifies the number of the match in the list (not to be confused with MatchID which is globabbly unique).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchID (Within Match) ===&lt;br /&gt;
The globally unique identifier of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeam (Within Match) ===&lt;br /&gt;
The Home (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamID (Within HomeTeam) ===&lt;br /&gt;
The teamID of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamName (Within HomeTeam) ===&lt;br /&gt;
The team name of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeam (Within Match) ===&lt;br /&gt;
The away (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamID (Within AwayTeam) ===&lt;br /&gt;
The teamID of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamName (Within AwayTeam) ===&lt;br /&gt;
The team name of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchDate (Within Match) ===&lt;br /&gt;
The start date (kick-off) of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchType (Within Match) ===&lt;br /&gt;
Integer defining the type of match:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; width=&amp;quot;75%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! MatchType&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| League match.&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Qualification match.&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Cup match (standard league cup).&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| Friendly (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| Friendly (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| Not currently in use, but reserved for international competition matches with normal rules (may or may not be implemented at some future point).&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| Hattrick Masters&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| International friendly (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| International friendly (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| National teams competition match (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| National teams competition match (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| National teams friendly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeGoals (Within Match) ===&lt;br /&gt;
The number of goals for the home team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayGoals (Within Match) ===&lt;br /&gt;
The number of goals for the away team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Status (Within Match) ===&lt;br /&gt;
A tristate string value specifying whether the match is FINISHED, ONGOING or UPCOMING.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OrdersGiven (Within Match) ===&lt;br /&gt;
A boolean value only supplied for upcoming matches (haven&#039;t started yet) of your own team that signifies whether you have given orders or not. If the request is for another team than your own (even if it is for your opponent), this data is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team and order the server to make a cache refresh (please avoid excessive use) ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=refreshCache&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37398</id>
		<title>CHPP Development/XML/matches</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=CHPP_Development/XML/matches&amp;diff=37398"/>
		<updated>2006-10-15T21:20:59Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;== Current version ==&lt;br /&gt;
Current version of the XML output is 2.2&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Syntax ==&lt;br /&gt;
matches.asp?&lt;br /&gt;
      outputType = {HTML | XML}&lt;br /&gt;
      actionType = {view | refreshCache}&lt;br /&gt;
      [teamID = integer]&lt;br /&gt;
      [LastMatchDate = Date]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Indata parameters ==&lt;br /&gt;
&lt;br /&gt;
=== outputType ===&lt;br /&gt;
Indicates whether the output to the client should be an HTML document or an XML file. Only the XML document may be used for CHPP use.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== actionType ===&lt;br /&gt;
Indicates what type of action the page should perform.&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; width=&amp;quot;75%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! Value&lt;br /&gt;
! Default&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| view&lt;br /&gt;
| Default&lt;br /&gt;
| View the match list of the team.&lt;br /&gt;
|-&lt;br /&gt;
| refreshCache&lt;br /&gt;
|&lt;br /&gt;
| Force the server to load the match data directly from the database instead of using the cache files that are normally used.&lt;br /&gt;
&#039;&#039;&#039;Important:&#039;&#039;&#039; Do not abuse this option. Excessive use of this option may force us to close it for XML/CHPP access. The cache files have intelligently chosen expiry dates and are normally fully up to date. Use of the refreshCache option should be restricted to something that happens when the end user actively choses to do so. And it should never be used more than once in 15 minutes.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== teamID ===&lt;br /&gt;
What team to show the matches for.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== LastMatchDate ===&lt;br /&gt;
Last date to show matches to. If not set, default is 28 days in the future. If more than 50 matches are affected, only the 50 first will be returned. This option should not normally be used by CHPPs, since it bypass the cache.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Outdata parameters ===&lt;br /&gt;
The XML output can contain the following tags/containers:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HattrickData ===&lt;br /&gt;
Generic tag wrapped around all XML data from Hattrick.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FileName (Within HattrickData) ===&lt;br /&gt;
The name of the file that your request was sent to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Version ===&lt;br /&gt;
The current version number of the XML output.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== UserID (Within HattrickData) ===&lt;br /&gt;
The logged on User&#039;s UserID (not to be confused with TeamID). If not logged on, it defaults to 0.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== FetchedDate (Within HattrickData) ===&lt;br /&gt;
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Team (Within HattrickData) ===&lt;br /&gt;
The team that the list applies to.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamID (Within Team) ===&lt;br /&gt;
The team&#039;s TeamID.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== TeamName (Within Team) ===&lt;br /&gt;
The full name of the team.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchList (Within Team) ===&lt;br /&gt;
Container for the matches. An attribute named Count specifies how many matches it contains.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Match (Within MatchList) ===&lt;br /&gt;
A match. An attribute called Index signifies the number of the match in the list (not to be confused with MatchID which is globabbly unique).&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchID (Within Match) ===&lt;br /&gt;
The globally unique identifier of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeam (Within Match) ===&lt;br /&gt;
The Home (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamID (Within HomeTeam) ===&lt;br /&gt;
The teamID of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeTeamName (Within HomeTeam) ===&lt;br /&gt;
The team name of the Home team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeam (Within Match) ===&lt;br /&gt;
The away (formal, not taking arena location into account) team of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamID (Within AwayTeam) ===&lt;br /&gt;
The teamID of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayTeamName (Within AwayTeam) ===&lt;br /&gt;
The team name of the away team in the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchDate (Within Match) ===&lt;br /&gt;
The start date (kick-off) of the match.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== MatchType (Within Match) ===&lt;br /&gt;
Integer defining the type of match:&lt;br /&gt;
&lt;br /&gt;
{| border=&amp;quot;1&amp;quot; width=&amp;quot;75%&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
! MatchType&lt;br /&gt;
! Description&lt;br /&gt;
|-&lt;br /&gt;
| 1&lt;br /&gt;
| League match.&lt;br /&gt;
|-&lt;br /&gt;
| 2&lt;br /&gt;
| Qualification match.&lt;br /&gt;
|-&lt;br /&gt;
| 3&lt;br /&gt;
| Cup match (standard league cup).&lt;br /&gt;
|-&lt;br /&gt;
| 4&lt;br /&gt;
| Friendly (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 5&lt;br /&gt;
| Friendly (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 6&lt;br /&gt;
| Not currently in use, but reserved for international competition matches with normal rules (may or may not be implemented at some future point).&lt;br /&gt;
|-&lt;br /&gt;
| 7&lt;br /&gt;
| Hattrick Masters&lt;br /&gt;
|-&lt;br /&gt;
| 8&lt;br /&gt;
| International friendly (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 9&lt;br /&gt;
| International friendly (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 10&lt;br /&gt;
| National teams competition match (normal rules).&lt;br /&gt;
|-&lt;br /&gt;
| 11&lt;br /&gt;
| National teams competition match (cup rules).&lt;br /&gt;
|-&lt;br /&gt;
| 12&lt;br /&gt;
| National teams friendly.&lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== HomeGoals (Within Match) ===&lt;br /&gt;
The number of goals for the home team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== AwayGoals (Within Match) ===&lt;br /&gt;
The number of goals for the away team. If the match is still upcoming or ongoing, this tag is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Status (Within Match) ===&lt;br /&gt;
A tristate string value specifying whether the match is FINISHED, ONGOING or UPCOMING.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== OrdersGiven (Within Match) ===&lt;br /&gt;
A boolean value only supplied for upcoming matches (haven&#039;t started yet) of your own team that signifies whether you have given orders or not. If the request is for another team than your own (even if it is for your opponent), this data is not sent.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Examples ==&lt;br /&gt;
Requests may be posted as either GET or POST.&lt;br /&gt;
&lt;br /&gt;
=== Get the data for a specified team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&amp;amp;teamID=373&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=view&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
=== Get the data for your own team and order the server to make a cache refresh (please avoid excessive use) ===&lt;br /&gt;
matches.asp?outputType=XML&amp;amp;actionType=refreshCache&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
	<entry>
		<id>https://wiki.hattrick.org/index.php?title=Coach&amp;diff=30604</id>
		<title>Coach</title>
		<link rel="alternate" type="text/html" href="https://wiki.hattrick.org/index.php?title=Coach&amp;diff=30604"/>
		<updated>2006-07-01T04:44:15Z</updated>

		<summary type="html">&lt;p&gt;Neohugin: /* Training Skill */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The coach is a very important figure in Hattrick, responsible for training speed.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==Abilities of a coach==&lt;br /&gt;
&lt;br /&gt;
===Coach types===&lt;br /&gt;
&lt;br /&gt;
There are three different types of coach: &amp;quot;[[Offensive Coach]]&amp;quot;, &amp;quot;[[Defensive Coach]]&amp;quot; or &amp;quot;[[Neutral Coach]]&amp;quot;, affecting the teams&#039; performance (and only performance) during the game.&lt;br /&gt;
&lt;br /&gt;
The type of coach that is best for your team will largely depend on your training type.  See &#039;&#039;&#039;[[Coach tactics]]&#039;&#039;&#039; for more information.&lt;br /&gt;
&lt;br /&gt;
Offensive coaches have an attacking nature and therefore stimulate the team to play more offensively.  This boosts the teams [[attack ratings]].&lt;br /&gt;
&lt;br /&gt;
Defensive coaches have a defensive nature, and boost the team&#039;s [[defence ratings]].  It is often believed they are slightly more effective than offensive coaches&lt;br /&gt;
&lt;br /&gt;
Neutral coaches have no offensive or defensive preference, and therefore boost both the teams attack and defense ratings a little.&lt;br /&gt;
&lt;br /&gt;
=== Training Skill ===&lt;br /&gt;
&lt;br /&gt;
A talented coach knows the right methods of training, allowing young players to improve their abilities faster. [[Training]] (see [[Rules#Training|Chapter 17]]) becomes more effective. The [[Skills#Coach skills / Form / Leadership|skill]] can never be better than excellent.&lt;br /&gt;
&lt;br /&gt;
=== Leadership ===&lt;br /&gt;
&lt;br /&gt;
Even if a coach is good at planning [[training]] activities, he might be a bad [[Leadership|leader]], not inspiring [[players]] to give top performances during [[game]]s. The [[team spirit]] might be spoilt if the coach is a weak leader.&lt;br /&gt;
&lt;br /&gt;
==Changing the coach==&lt;br /&gt;
If your coach disappoints you, you can always get a new one. There are two different ways to go: &lt;br /&gt;
&lt;br /&gt;
===Recruit a coach externally===&lt;br /&gt;
Recruiting externally basically means that you hire a new coach. However, you first decide how good you want him to be (trainer skill and leadership) and what trainer type you want (one who favours [[Coach tactics#Offensive coach|attack]], [[Coach tactics#Defensive coach|defence]] or is [[Coach tactics#Neutral coach|neutral]]). &lt;br /&gt;
&lt;br /&gt;
Each combination of leadership/trainer skill has a fixed price. Then you &amp;quot;buy&amp;quot; him (he is taken from an unseen pool of unemployed coaches - coaches are not included on the [[transfer list]].&lt;br /&gt;
&lt;br /&gt;
===Use existing player===&lt;br /&gt;
This alternative can be somewhat cheaper than the external recruiting - if you have a [[player]] with the right coaching material. &lt;br /&gt;
&lt;br /&gt;
There are a few restrictions: The player&#039;s [[experience]] determines how good a coach he can become. Also, the more experienced he is, the lower his price for a certain [[Skills#Coach skills / Form / Leadership|skill]] level. Players keep their [[leadership]] (already known to you) and you do not pay for their leadership - so, if you have a very experienced player with high leadership, this can be a real bargain. &lt;br /&gt;
&lt;br /&gt;
However, to prevent [[daytrading]] of coaches-to-be, we have another restriction: The player must have been in your [[Team|squad]] for a [[season]] (16 weeks) to be eligible to become your coach. While it will still be possible (in principle) to purchase a player in order to make him coach for a little less, it will require more than a season&#039;s foresight.  &lt;br /&gt;
&lt;br /&gt;
When you hire a new coach, he becomes the coach of your squad (when he arrives, which may take up to a minute after you ordered him) and the old coach stays in the squad (in case you want to keep him as player). If you don&#039;t want him, you will have to [[fire]] him. He can never become coach a second time for your team (although he may go to another team eventually). Also, you cannot sell a player who has become coach. This is important, as otherwise people would start trading coaches and that is not the kind of system we want. All new teams get initial coaches who are of equal skill level (weak).&lt;br /&gt;
&lt;br /&gt;
Useful links to check your future coach are:&amp;lt;br&amp;gt;&lt;br /&gt;
[http://www.manager.brygge.dk/Hattrick/experience.htm Check the experience of the player you want to make a coach]&amp;lt;br&amp;gt;&lt;br /&gt;
[http://introht.com/iht.php?sec=tool-exp&amp;amp;lng=en&amp;amp;menu=4 Calculator which has to be used with the Conversion price of the first side]&lt;br /&gt;
&lt;br /&gt;
==Level of the coach==&lt;br /&gt;
All new coaches of a certain skill level are equal. That is, if you purchase a coach with passable skill, he always becomes &amp;quot;average&amp;quot; passable. There is no &amp;quot;high passable&amp;quot; and &amp;quot;low passable&amp;quot;. However, the increase in the coaches performance between levels is, like with regular player skills, non-linear. This means that the gap between a solid coach and an excellent coach is smaller than the gap between a passable coach and a solid coach in terms of the effect of the training, so a high-level coach might not always be the best solution for you. The common consensus on this matter is that a solid coach is both affordable and advisable for most managers.&lt;br /&gt;
&lt;br /&gt;
===Skills deterioration===&lt;br /&gt;
Coaches will slowly have their leadership skills deteriorate. Deterioration will not start until the coach has been in the club for more than a season. HT&#039;s reasoning is a coach that might seem bustling with energy and inspiration when he first arrives, after a few seasons loses some of his &amp;quot;edge&amp;quot;. He has simply grown bored with the job. &lt;br /&gt;
&lt;br /&gt;
Finally, once a coach reaches [[disastrous]] leadership (and that would typically take perhaps 10 seasons for a coach starting with solid leadership), the deterioration starts hitting his trainer skills instead of the depleted leadership. Let us underline that the deterioration is very slow, although it will go somewhat faster for coaches with very high leadership, so a solid leader might go down to passable after 1-2 seasons (more likely after 2 seasons or more though). &lt;br /&gt;
&lt;br /&gt;
Players who become coaches have an emergency surgical procedure and if they had any injuries, they are automatically healed!&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&#039;&#039;For documentation on the introducting of the current coach system check [[Hattrick 6.5#New system for coaches|the Hattrick 6.5 documents]].&#039;&#039;&lt;br /&gt;
[[Category:Game Concepts]]&lt;/div&gt;</summary>
		<author><name>Neohugin</name></author>
	</entry>
</feed>