CHPP Development/XML/challanges

From Hattrick

This page offers XML and HTML interfaces to see the logged on user's challanges, made by him/herself or by others. The XML interface enables CHPP developers to integrate these data into their applications.

Current version

Current version of the XML output is 1.1


     outputType = {HTML | XML}
     actionType = {view}

Indata parameters


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.


Indicates what type of action the page should perform.

Value Default Description
view Default View the general data.

Outdata parameters

The XML output can contain the following tags/containers:


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 (Within HattrickData)

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 data about the team.

TeamID (Within Team)

The globally unique TeamID.

TeamName (Within Team)

The name of the team.

ChallengesByMe (Within Team)

Container for the challenges that the user has done.

Challenge (Within ChallengesByMe)

Container for a particular challenge. An attribute named Index indicate the relative count within the ChallengesByMe container.

OffersByOthers (Within Team)

Container for the offers of friendlies that other teams have given to the logged on user's team.

Offer (Within OffersByOthers)

Container for a particular offer. An attribute named Index indicate the relative count within the OffersByOthers container.

TrainingMatchID (Within Challenge or Offer)

The globally unique indentifier for the challenge/offer.

MatchTime (Within Challenge or Offer)

The match start time.

FriendlyType (Within Challenge or Offer)

Integer defining the type of friendly:

FriendlyType Description
0Normal rules
1Cup rules
12National team friendly.

Opponent (Within Challenge or Offer)

Container for the data about the opponent.

TeamID (Within Opponent)

The globally unique TeamID.

TeamName (Within Opponent)

The full team name of the opponent.

Arena (Within Challenge or Offer)

Container for the data about the arena for the friendly.

ArenaID (Within Arena)

The globally unique ArenaID.

ArenaName (Within Arena)

The name of the arena.

League (Within Challenge or Offer)

Container for the data about the league that the friendly would be played in.

LeagueID (Within League)

The globally unique LeagueID.

LeagueName (Within League)

The name of the league.

IsAgreed (Within Challenge or Offer)

Boolean value indicating whether the challenge/offer has been accepted and the match arranged. Note: Date format is always YYYY-MM-DD HH:MM:SS.


The name of this page is misspelled, it should be challenges.asp. (Listed in Bugs)