Players API
Players API
13/02/15 17:17
The Players API is our third API and should give our users more chances to gather information about their player / their clan's members. It is pretty simple. You supply the PlayerID and will receive all relevant information. Have fun ☺
» We require you to name us with a link to our TB home page when using data from this OR any other TrackBase API

Example:
Information from & copyright at TrackBase.Net
    You have to supply basic paramaters in order to get results. Currently all supported parameters are also required so that everyone knows what paramaters are possible. The following list shows short explanations for each of the possible parameters. Note that the parameters must be supplied as lower case characters.
  • Pid: (integer)
    Self explanatory. Set pid to the player id you would like to get information of.
  • Rcv: (string)
    Either 'playerinfo', 'serverslist' or 'sessionslist'. The first option gives you the basic player information (equivalent to the index page of the playerinfo page). This includes the maps the player has already played on. Serverslist gives you exactly the same result as 'playerinfo' but the result has no maps list but the servers the player has played on. 'Sessionslist' is again almost the same. It holds basic information about the player and the latest sessions.
    You can use the limit parameter to get only a few maps / servers / sessions, ordered by your choice.
  • Order: (string)
    Possible are 'asc' and 'desc'.
    • Playerinfo:
      • Asc:
        This orders the maplist by the mapname ascending, alternatively by last seen date descending.
      • Desc:
        This orders the maplist by last seen descending, alternatively by the mapname ascending.
    • Serverslist
      • Asc:
        This orders the serverslist by the name of the server, alternativeley by the time the player played on it (descending) and when he has been seen on there the last.
      • Desc:
        This orders the serverslist by the time the player has played on the server (descending), alternatively by the last seen date and the name of the server.
    • Sessionslist:
      • Asc:
        This orders the sessionslist by the time a session has started ascending, alternatively (if the name was scanned on two sessions of the same starttime) by the maplength (ascending).
      • Desc:
        This orders the sessionslist by the time a session has started descending, alternatively (if the name was scanned on two sessions of the same starttime) by the maplength (descending).
  • Limit: (integer)
    Possible are integers in range of 1 and 50. We are currently only supporting up to 50 results to keep the loading times small.
  • Start: (integer)
    Possible are all numbers greater than 0. When you supply 10 and your limit is 10, too, you would get items 10 to 19. When you give a too high value, you may not get the exact number of results as given in the limit parameter.
Once supplied all information under following URL
https://api.trackbase.net/players/et.php
, you can gather all information given by us. Please note that we currently only support Wolfenstein: Enemy Territory's players. Other games might follow in the future.
The results are transferred via JSON. You can get information via a JavaScript AJAX request or with PHP's curl extension or any other extensions supporting gathering of online source codes.
Example request
https://api.trackbase.net/players/et.php?pid=1&rcv=playerinfo&order=desc&limit=10&start=1
We hope you like this new interface. If you do, and also if you don't, please give us feedback on the forums @ https://forum.trackbase.net/ and visit our social media web appearances for more information about TrackBase and its upcoming projects.
[ Facebook ] | [ Twitter ] | [ Google+ ]