CHPP Development/XML/players: Difference between revisions

From Hattrick
Jump to navigationJump to search
Neohugin (talk | contribs)
No edit summary
RebelClown (talk | contribs)
m Version 1.3
 
(5 intermediate revisions by 3 users not shown)
Line 1: Line 1:
This page offers XML and HTML interfaces to the list of '''players''' for a team. The XML interface enables CHPP developers to integrate these data into their applications.
__TOC__


==CHPP Documentation - players.asp==
This page offers XML and HTML interfaces to the list of players for a team. The XML interface enables CHPP developers to integrate these data into their applications.


== Current version ==
{{CHPP Documentation}}
Current version of the XML output is 1.2.6


{{XML Current version | version=1.2.6}} Latest available version of the XML output is 1.3


== Syntax ==
== Syntax ==
players.asp?
<code>
players.asp?
       outputType = {HTML | XML}
       outputType = {HTML | XML}
       actionType = {view | viewOldies | supporterStats}
       actionType = {view | viewOldies | supporterStats}
Line 14: Line 17:
       [matchTypeCategory = {ALL | LQC | F | NT | WC}]
       [matchTypeCategory = {ALL | LQC | F | NT | WC}]
       [showAll = {false | true}]
       [showAll = {false | true}]
</code>


==Indata parameters==


== Indata parameters ==
{{XML outputType}}


=== outputType ===
===actionType===
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.
 
 
=== actionType ===
Indicates what type of action the page should perform.
Indicates what type of action the page should perform.
{|  border="0" cellpadding="2" cellspacing="2"
{|  border="0" cellpadding="2" cellspacing="2"
|- bgcolor="#cccccc" align="left"
|- bgcolor="#cccccc" align="left"
Line 36: Line 36:
|- bgcolor="#dddddd" valign="top"
|- bgcolor="#dddddd" valign="top"
| viewOldies
| 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.
| 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.
|- bgcolor="#dddddd" valign="top"
|- bgcolor="#dddddd" valign="top"
| supporterStats
| 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.
| 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.
|- bgcolor="#dddddd" valign="top"
| orderBy
|
| The field that the outdata PlayerList should be sorted by. Not relevant for actionType = supporterStats.
|}
|}


===orderBy===
The field that the outdata PlayerList should be sorted by. Not relevant for actionType = supporterStats.


=== teamID ===
=== teamID ===
The team for which the data should apply to. Defaults to the logged on user's own TeamID if not supplied.
The team for which the data should apply to. Defaults to the logged on user's own TeamID if not supplied.


 
===matchTypeCategory===
=== matchTypeCategory ===
Only relevant for actionType = supporterStats. Indicates one of the following types of matches:
Only relevant for actionType = supporterStats. Indicates one of the following types of matches:
{|  border="0" cellpadding="2" cellspacing="2"
{|  border="0" cellpadding="2" cellspacing="2"
|- bgcolor="#cccccc" align="left"
|- bgcolor="#cccccc" align="left"
Line 67: Line 63:
|- bgcolor="#dddddd" valign="top"
|- bgcolor="#dddddd" valign="top"
| LQC
| LQC
|
|  
| League, qualification and cup matches.
| League, qualification and cup matches.
|- bgcolor="#dddddd" valign="top"
|- bgcolor="#dddddd" valign="top"
|F
| F
|
|  
|Friendlies only.
| Friendlies only.
|}
|}


 
===showAll===
=== showAll ===
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.
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.


==Outdata parameters==
{{XML default outparams verbose}}


== Outdata parameters ==
===Team (Within HattrickData)===
The XML output can contain the following tags/containers:
 
=== HattrickData ===
Generic tag wrapped around all XML data from Hattrick.
 
 
=== FileName (Within HattrickData) ===
The name of the file that your request was sent to.
 
 
=== UserID (Within HattrickData) ===
The logged on User's UserID (not to be confused with TeamID). If not logged on, it defaults to 0.
 
 
=== Version ===
The current version number of the XML output.
 
 
=== FetchedDate (Within HattrickData) ===
Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.
 
 
=== Team (Within HattrickData) ===
Container for the team to which the data applies.
Container for the team to which the data applies.


 
===TeamID (Within Team)===
=== TeamID (Within Team) ===
The globally unique TeamID.
The globally unique TeamID.


 
===TeamName (Within Team)===
=== TeamName (Within Team) ===
The full team name.
The full team name.


===PlayerList (Within Team)===
Container for the list of players. An attribute named '''Count''' specifies how many players it contains.


=== PlayerList (Within Team) ===
===Player (Within PlayerList)===
Container for the list of players. An Attribute named Count specifies how many players it contains.
Container for a player. An attribute named '''Index''' works as a counter.


 
===PlayerID (Within Player)===
=== Player (Within PlayerList) ===
Container for a player. An Attribute named Index works as a counter.
 
 
=== PlayerID (Within Player) ===
The globally unique PlayerID.
The globally unique PlayerID.


 
===PlayerName (Within Player)===
=== PlayerName (Within Player) ===
The Player name.
The Player name.


 
===PlayerNumber (Within Player)===
=== PlayerNumber (Within Player) ===
The number (1 to 99) that the owner (if he/she is Ht Supporter) of the team has assigned this player.
The number (1 to 99) that the owner (if he/she is Ht Supporter) of the team has assigned this player.


 
===Age (Within Player)===
=== Age (Within Player) ===
The age of the player.
The age of the player.


===AgeDays (Within Player)===
The amount of days past since last birthday.


=== TSI (Within Player) ===
===TSI (Within Player)===
The Total Skill Index (TSI) of the player.
The Total Skill Index (TSI) of the player.


 
===PlayerForm (Within Player)===
=== PlayerForm (Within Player) ===
The current form, given as an integer with 1 indicating disastrous, 2 for wretched and so on.
The current form, given as an integer with 1 indicating disastrous, 2 for wretched and so on.


 
===Statement (Within Player)===
=== Statement (Within Player) ===
If the owner is a HT Supporter, he may have provided a Statement from his players.
If the owner is a HT Supporter, he may have provided a Statement from his players.


 
===Experience (Within Player)===
=== Experience (Within Player) ===
The experience of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.
The experience of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.


 
===Leadership (Within Player)===
=== Leadership (Within Player) ===
The leadership of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.
The leadership of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.


 
===Salary (Within Player)===
=== Salary (Within Player) ===
The salary of the player, given in the default currence (Currency rate 1. There are 10 default currency units per US$).
The salary of the player, given in the default currence (Currency rate 1. There are 10 default currency units per US$).


 
===IsAbroad (Within Player)===
=== IsAbroad (Within Player) ===
The abroad status of the player, given as an integer. 0 for beeing in home country, 1 for beeing in a team abroad.
The abroad status of the player, given as an integer. 0 for beeing in home country, 1 for beeing in a team abroad.


 
===Agreeability (Within Player)===
=== Agreeability (Within Player) ===
The agreeability of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).
The agreeability of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).


 
===Aggressiveness (Within Player)===
=== Aggressiveness (Within Player) ===
The aggressiveness of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).
The aggressiveness of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).


 
===Honesty (Within Player)===
=== Honesty (Within Player) ===
The honesty of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).
The honesty of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).


 
===LeagueGoals (Within Player)===
=== LeagueGoals (Within Player) ===
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.
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.


 
===CupGoals (Within Player)===
=== CupGoals (Within Player) ===
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.
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.


 
===FriendliesGoals (Within Player)===
=== FriendliesGoals (Within Player) ===
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.
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.


 
===CareerGoals (Within Player)===
=== CareerGoals (Within Player) ===
The total number goals throughout this player'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.
The total number goals throughout this player'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.


 
===CareerHattricks (Within Player)===
=== CareerHattricks (Within Player) ===
The total number hattricks throughout this player'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.
The total number hattricks throughout this player'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.


 
===Specialty (Within Player)===
=== Specialty (Within Player) ===
Integer indicating the specialty (if any) of the player:
Integer indicating the specialty (if any) of the player:
{{Template:Specialty table}}


{|  border="0" cellpadding="2" cellspacing="2"
===TransferListed (Within Player)===
|- bgcolor="#cccccc" align="left"
! Value
! Description
|- bgcolor="#dddddd" valign="top"
| 0
| No specialty.
|- bgcolor="#dddddd" valign="top"
| 1
| Technical.
|- bgcolor="#dddddd" valign="top"
| 2
| Quick.
|- bgcolor="#dddddd" valign="top"
| 3
| Powerful.
|- bgcolor="#dddddd" valign="top"
| 4
| Unpredictable.
|- bgcolor="#dddddd" valign="top"
| 5
| Head specialist.
|}
 
 
=== TransferListed (Within Player) ===
Returns 1 if the player is on the transfer list, otherwise 0.
Returns 1 if the player is on the transfer list, otherwise 0.


 
===NationalTeamID (Within Player)===
=== NationalTeamID (Within Player) ===
If the player is enrolled on a national team, this is that national team's ID. Otherwise will return 0.
If the player is enrolled on a national team, this is that national team's ID. Otherwise will return 0.


 
===Cards (Within Player)===
=== Cards (Within Player) ===
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.
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.


 
===InjuryLevel (Within Player)===
=== InjuryLevel (Within Player) ===
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.
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.


 
===StaminaSkill (Within Player)===
=== StaminaSkill (Within Player) ===
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.
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.


 
===KeeperSkill (Within Player)===
=== KeeperSkill (Within Player) ===
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.
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.


 
===PlaymakerSkill (Within Player)===
=== PlaymakerSkill (Within Player) ===
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.
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.


 
===ScorerSkill (Within Player)===
=== ScorerSkill (Within Player) ===
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.
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.


 
===PassingSkill (Within Player)===
=== PassingSkill (Within Player) ===
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.
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.


 
===WingerSkill (Within Player)===
=== WingerSkill (Within Player) ===
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.
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.


 
===DefenderSkill (Within Player)===
=== DefenderSkill (Within Player) ===
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.
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.


 
===SetPiecesSkill (Within Player)===
=== SetPiecesSkill (Within Player) ===
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.
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.


 
===OwningTeam (Within Player)===
=== OwningTeam (Within Player) ===
Container for the team that owns the player. Only provided for actionType viewOldies.
Container for the team that owns the player. Only provided for actionType viewOldies.


 
===TeamID (Within OwningTeam)===
=== TeamID (Within OwningTeam) ===
The globally unique TeamID of the team owning the player.
The globally unique TeamID of the team owning the player.


 
===TeamName (Within OwningTeam)===
=== TeamName (Within OwningTeam) ===
The full team name of the team owning the player.
The full team name of the team owning the player.


 
===LeagueName (Within OwningTeam)===
=== LeagueName (Within OwningTeam) ===
The name of the league that team owning the player is located in.
The name of the league that team owning the player is located in.


 
===TrainerData (Within Player)===
=== TrainerData (Within Player) ===
Container for the skills that relate to coach/trainer ability. Only provided if the player has been made into a trainer, "has gained trainer license". It is provided irrespective of if he is actually serving as the appointed coach of the club or not.
Container for the skills that relate to coach/trainer ability. Only provided if the player has been made into a trainer, "has gained trainer license". It is provided irrespective of if he is actually serving as the appointed coach of the club or not.


 
===TrainerType (Within TrainerData)===
=== TrainerType (Within TrainerData) ===
Integer indicating the type of trainer:
Integer indicating the type of trainer:
{{Template:Trainer type table}}


{|  border="0" cellpadding="2" cellspacing="2"
===TrainerSkill (Within TrainerData)===
|- bgcolor="#cccccc" align="left"
! Value
! Description
|- bgcolor="#dddddd" valign="top"
| 0
| Defensive
|- bgcolor="#dddddd" valign="top"
| 1
| Offensive
|- bgcolor="#dddddd" valign="top"
| 2
| Balanced
|}
 
 
=== TrainerSkill (Within TrainerData) ===
The trainer skill, given as an integer with 1 indicating disastrous, 2 for wretched and so on.
The trainer skill, given as an integer with 1 indicating disastrous, 2 for wretched and so on.


 
===CountryID (Within Player)===
=== CountryID (Within Player) ===
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.
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.


 
===Caps (Within Player)===
=== Caps (Within Player) ===
The number of matches played for the national team.
The number of matches played for the national team.


 
===CapsU20 (Within Player)===
=== CapsU20 (Within Player) ===
The number of matches played for the U-20 national team.
The number of matches played for the U-20 national team.




 
[[Category:CHPP XML Pages|Players]]
== Examples ==
Requests may be posted as either GET or POST.
 
=== Get a list of all players for your own team ===
players.asp?outputType=XML&actionType=view
 
 
=== Get a list of players that were brought up in a team (but is no longer in the team) ===
players.asp?outputType=XML&actionType=viewOldies&teamID=373
 
 
=== Get a list of all players that have played a competition match (League, Qual. cup) for your team ===
players.asp?outputType=XML&actionType=supporterStats&matchTypeCategory=LQC&showAll=true

Latest revision as of 15:50, 19 July 2007

CHPP Documentation - players.asp

This page offers XML and HTML interfaces to the list of players for a team. The XML interface enables CHPP developers to integrate these data into their applications.

Important!
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.
Only the XML version of this file may be included in CHPP applications.

Current version

Current version of the XML output is 1.2.6 Latest available version of the XML output is 1.3

Syntax

players.asp?
     outputType = {HTML | XML}
     actionType = {view | viewOldies | supporterStats}
     [orderBy = {PlayerNumber | Lastname | PlayerID | Age | MarketValue}]
     [teamID = integer]
     [matchTypeCategory = {ALL | LQC | F | NT | WC}]
     [showAll = {false | true}]

Indata parameters

outputType

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.

actionType

Indicates what type of action the page should perform.

Value Default Description
view Default View the list of players belonging to a team.
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.
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.

orderBy

The field that the outdata PlayerList should be sorted by. Not relevant for actionType = supporterStats.

teamID

The team for which the data should apply to. Defaults to the logged on user's own TeamID if not supplied.

matchTypeCategory

Only relevant for actionType = supporterStats. Indicates one of the following types of matches:

Value Default Description
ALL Default All matches.
LQC League, qualification and cup matches.
F Friendlies only.

showAll

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.

Outdata parameters

The XML output can contain the following tags/containers:

HattrickData

Generic tag wrapped around all XML data from Hattrick.

FileName (Within HattrickData)

The name of the file that your request was sent to.

Version (Within HattrickData)

The current version number of the XML output.

UserID (Within HattrickData)

The logged on User's UserID (not to be confused with TeamID). If not logged on, it defaults to 0.

UserIsSupporter (Within HattrickData)

Indicated if the fetching user has a supporter subscription or not. Return 1 if the user has a supporter subscription. 0 otherwise.

UserHasClubhouse (Within HattrickData)

Indicated if the fetching user has a ClubHouse or not. Return 1 if the user has a ClubHouse. 0 otherwise.

FetchedDate (Within HattrickData)

Date and time when the XML file was fetched. Format is YYYY-MM-DD HH:MM:SS.

ActionType (Within HattrickData)

The requested ActionType.

ActionResult (Within HattrickData)

Has 1 attribute: "Success" with value 1 if everything went ok, otherwise 0. Content in ActionResult is OK if the request was successful, otherwise a short error message should be returned.

Team (Within HattrickData)

Container for the team to which the data applies.

TeamID (Within Team)

The globally unique TeamID.

TeamName (Within Team)

The full team name.

PlayerList (Within Team)

Container for the list of players. An attribute named Count specifies how many players it contains.

Player (Within PlayerList)

Container for a player. An attribute named Index works as a counter.

PlayerID (Within Player)

The globally unique PlayerID.

PlayerName (Within Player)

The Player name.

PlayerNumber (Within Player)

The number (1 to 99) that the owner (if he/she is Ht Supporter) of the team has assigned this player.

Age (Within Player)

The age of the player.

AgeDays (Within Player)

The amount of days past since last birthday.

TSI (Within Player)

The Total Skill Index (TSI) of the player.

PlayerForm (Within Player)

The current form, given as an integer with 1 indicating disastrous, 2 for wretched and so on.

Statement (Within Player)

If the owner is a HT Supporter, he may have provided a Statement from his players.

Experience (Within Player)

The experience of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.

Leadership (Within Player)

The leadership of the player, given as an integer with 1 indicating disastrous, 2 for wretched and so on.

Salary (Within Player)

The salary of the player, given in the default currence (Currency rate 1. There are 10 default currency units per US$).

IsAbroad (Within Player)

The abroad status of the player, given as an integer. 0 for beeing in home country, 1 for beeing in a team abroad.

Agreeability (Within Player)

The agreeability of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).

Aggressiveness (Within Player)

The aggressiveness of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).

Honesty (Within Player)

The honesty of the player, given as an integer with 1 indicating the lowest level (se Denominations appendix of rules).

LeagueGoals (Within Player)

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.

CupGoals (Within Player)

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.

FriendliesGoals (Within Player)

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.

CareerGoals (Within Player)

The total number goals throughout this player'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.

CareerHattricks (Within Player)

The total number hattricks throughout this player'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.

Specialty (Within Player)

Integer indicating the specialty (if any) of the player:

Value Description
0 No specialty.
1 Technical.
2 Quick.
3 Powerful.
4 Unpredictable.
5 Head specialist.

TransferListed (Within Player)

Returns 1 if the player is on the transfer list, otherwise 0.

NationalTeamID (Within Player)

If the player is enrolled on a national team, this is that national team's ID. Otherwise will return 0.

Cards (Within Player)

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.

InjuryLevel (Within Player)

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.

StaminaSkill (Within Player)

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.

KeeperSkill (Within Player)

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.

PlaymakerSkill (Within Player)

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.

ScorerSkill (Within Player)

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.

PassingSkill (Within Player)

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.

WingerSkill (Within Player)

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.

DefenderSkill (Within Player)

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.

SetPiecesSkill (Within Player)

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.

OwningTeam (Within Player)

Container for the team that owns the player. Only provided for actionType viewOldies.

TeamID (Within OwningTeam)

The globally unique TeamID of the team owning the player.

TeamName (Within OwningTeam)

The full team name of the team owning the player.

LeagueName (Within OwningTeam)

The name of the league that team owning the player is located in.

TrainerData (Within Player)

Container for the skills that relate to coach/trainer ability. Only provided if the player has been made into a trainer, "has gained trainer license". It is provided irrespective of if he is actually serving as the appointed coach of the club or not.

TrainerType (Within TrainerData)

Integer indicating the type of trainer:

Value Description
0 Defensive
1 Offensive
2 Balanced

TrainerSkill (Within TrainerData)

The trainer skill, given as an integer with 1 indicating disastrous, 2 for wretched and so on.

CountryID (Within Player)

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.

Caps (Within Player)

The number of matches played for the national team.

CapsU20 (Within Player)

The number of matches played for the U-20 national team.