Skip to content

Instantly share code, notes, and snippets.

@bartku
Created April 19, 2012 08:59
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 4 You must be signed in to fork a gist
  • Save bartku/2419852 to your computer and use it in GitHub Desktop.
Save bartku/2419852 to your computer and use it in GitHub Desktop.
world of tanks api
Searching players:
http://worldoftanks.eu/community/accounts/api/%API_VER%/?source_token=%TOKEN%&search=%NAME%&offset=0&limit=1
Showing player's stats:
http://worldoftanks.eu/community/accounts/%PLAYER_ID%/api/%API_VER%/?source_token=%TOKEN%
Showing player's stats from past:
http://dava2.worldoftanks.com/userstats/2/stats/slice/?platform=android&server=eu&account_id=%PLAYER_ID%&hours_ago=24&hours_ago=168&hours_ago=336
/userstats/2/stats/?server=eu&platform=android&account_id=500662837&from_date=2012-11-06T10%3A24%3A44&to_date=2012-11-20T10%3A24%3A44&interval=24&field=summary.battles_count&field=summary.wins&field=summary.survived_battles&field=experience.max_xp
Dunno why but works only for some accounts, maybe it marks them if they used android app?
Searching clans:
http://worldoftanks.eu/community/clans/api/%API_VER%/?source_token=%TOKEN%&search=%CLAN_NAME%&offset=0&limit=1
Showing clan's stats:
http://worldoftanks.eu/community/clans/%CLAN_ID%/api/%API_VER%/?source_token=%TOKEN%
Personal stats (after logging in via API):
http://worldoftanks.eu/personal/api/%API_VER%/?source_token=%TOKEN%
Login request:
getlogin: https://worldoftanks.eu/auth/create/api/1.0/?source_token=%TOKEN%
gettoken: https://worldoftanks.eu/utils/csrf/api/1.0/?source_token=%TOKEN%
api versions: 1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.7, 1.8
accounts search: 1.0, 1.1
accounts: 1.0, 1.1, 1.2, 1.3, 1.5, 1.6, 1.7, 1.8
clan search: 1.0
clans: 1.0, 1.1
personal: 1.0
tokens:
WG-WoT_Assistant-1.1.2
WG-WoT_Assistant-1.2.2
WG-WoT_Assistant-1.3.2
Intellect_Soft-WoT_Mobile-site
Intellect_Soft-WoT_Mobile
WG-WoT_Assistant-test
Intellect_Soft-WoT_Mobile-unofficial_stats
@roncsak
Copy link

roncsak commented Dec 23, 2012

gettoken won't works with Intellect_Soft-WoT_Mobile token and gives the following response:

{
  "status": "error", 
  "status_code": "API_WRONG_APPLICATION_ID", 
  "error_type": "api", 
  "error": "Неверный идентификатор приложения"
}

The translation of russian error text is "Invalid application ID".

@BONNe
Copy link

BONNe commented Jan 23, 2013

http://worldoftanks.eu/community/accounts/500445118/api/1.9/?source_token=WG-WoT_Assistant-test

  {
    "spotted": 0, 
    "localized_name": "PzKpfw VI Tiger", 
    "name": "PzVI", 
    "level": 7, 
    "damageDealt": 0, 
    "survivedBattles": 0, 
    "battle_count": 223, 
    "nation": "germany", 
    "image_url": "/static/2.1.3/encyclopedia/tankopedia/vehicle/small/germany-pzvi.png", 
    "frags": 0, 
    "win_count": 105, 
    "class": "heavyTank"
  },

In eu server this api isn't showing damage, spooted, frags and survived battle, but in all others are...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment