T³ - XML-APInterface v0.8

This is an overview about the data T³ can deliver throughout its XML-interface. Please contact the webmaster before you start scraping the website. You will need an authorized API-key to get access to these scripts.

Hint: Parameters are case-sensitive and these printed in italic are optional. Valid values for the type boolean are "yes" or "no". Deprecated attributes are lined through.

Content

This is a quick overview of the content of this document:

Call Basics

Each script call delivers an XML document with a root element "data" and an item-child for each result entry. You can choose between a couple of required and optional parameters to specify your request. You need to append your API-key to each call or the request will be declined.

In addition there is a basic caching mechanismn. You can give an unix timestamp as a paramter with your last request time. If there aren't any changes since your last request, you'll get a "403 not modified" HTTP status code from the server.

Parameters:

Example

There's a quick example which uses an XML parser class to call the API. You can view the source code and its output.

getArmies.php

getArmies delivers the data of the armies/factions supported by T³.

Parameters: Returns:

getCountries.php

getCountries delivers the data of the countries supported by T³.

Parameters: Returns:

getGames.php

getGames delivers the data of the games supported by T³.

Parameters: Returns:

getPlayers.php

getPlayers delivers the players listed on T³.

Parameters (at least one is required): Returns:

getRanking.php

getRanking delivers the data of the players listed in the NTR.

Parameters: Returns:

getTournament.php

getTournament delivers extended data of a single tournament.

Returns:

getTournaments.php

getTournaments delivers the data of the tournaments listed on T³.

Parameters (at least one of these has to be used): Returns:

Error Codes

Following errors can be thrown from the interfaces:

Changes

A list of the changes to this API: