Jump to content


General Discussion of Wargaming Public API


  • Please log in to reply
852 replies to this topic

MajesticFlight #821 Posted 20 March 2019 - 08:59 PM

    Private

  • Player
  • 6980 battles
  • 10
  • [YGDRA] YGDRA
  • Member since:
    03-10-2019

View Postkaadomin, on 20 March 2019 - 03:24 PM, said:

 

I do:

 

   Number of random battles with TankA   *   tier (TankA)

+ Number of random battles with TankB   *   tier (TankB)

+ Number of random battles with TankC   *   tier (TankC)

...

_______________________________________

= MySum

 

average tier =  MySum / overall Number of random battles

 

You take it from encyclopedia/tanks? There is a warning for my method "Attention! The method is deprecated.". Maybe that's why WG blocked it.

Edited by MajesticFlight, 20 March 2019 - 09:15 PM.


kaadomin #822 Posted 20 March 2019 - 11:28 PM

    Colonel

  • Player
  • 32801 battles
  • 3,580
  • [NXD] NXD
  • Member since:
    06-11-2012

View PostMajesticFlight, on 20 March 2019 - 08:59 PM, said:

 

You take it from encyclopedia/tanks? There is a warning for my method "Attention! The method is deprecated.". Maybe that's why WG blocked it.

 

You want "player's average tier"

 

Part 1

For player data I use (XXXXXXXXXXXXXXXXXXXXX= > APP-ID and my Account-ID) and put a space after the https, to avoid auto links

 

https ://api.worldoftanks.eu/wot/tanks/stats/?application_id=XXXXXXXXXXXXXXXXXXXXX&account_id=503866246

 

Spoiler

 

in all-Section you will find the value battles

 

Part 2

Now the vehicles, I think this was your main problem

I ask for every single tier this way

for ($tier = 1; $tier < 11; $tier++)  ....

https ://api.worldoftanks.eu/wot/encyclopedia/vehicles/?tier=$tier

 

Here you have tier as field in the result, but if you to it stepwise you have the tier as entry parameter ;)

There was a reason I do it for every single tier ... maybe because the maximum number of tank IDs is 100 ans I had some problems - maybe the same like you have

 

Finally

I check all my accounts in Part 1 for missing tank IDs in result of Part 2  and do a direct request for the tank ID / list of IDs, like before in Part 2.

 

 



MajesticFlight #823 Posted 24 March 2019 - 08:15 PM

    Private

  • Player
  • 6980 battles
  • 10
  • [YGDRA] YGDRA
  • Member since:
    03-10-2019

View Postkaadomin, on 20 March 2019 - 11:28 PM, said:

 

You want "player's average tier"

 

Part 1

For player data I use (XXXXXXXXXXXXXXXXXXXXX= > APP-ID and my Account-ID) and put a space after the https, to avoid auto links

 

https ://api.worldoftanks.eu/wot/tanks/stats/?application_id=XXXXXXXXXXXXXXXXXXXXX&account_id=503866246

 

Spoiler

 

in all-Section you will find the value battles

 

Part 2

Now the vehicles, I think this was your main problem

I ask for every single tier this way

for ($tier = 1; $tier < 11; $tier++)  ....

https ://api.worldoftanks.eu/wot/encyclopedia/vehicles/?tier=$tier

 

Here you have tier as field in the result, but if you to it stepwise you have the tier as entry parameter ;)

There was a reason I do it for every single tier ... maybe because the maximum number of tank IDs is 100 ans I had some problems - maybe the same like you have

 

Finally

I check all my accounts in Part 1 for missing tank IDs in result of Part 2  and do a direct request for the tank ID / list of IDs, like before in Part 2.

 

 

encyclopedia/vehicles  Takes a really  long time to show.

And I see only tiers of modules there(engines, suspensions, not whole tank's tiers). Or am I missing something?


Edited by MajesticFlight, 24 March 2019 - 08:20 PM.


kaadomin #824 Posted 25 March 2019 - 12:05 AM

    Colonel

  • Player
  • 32801 battles
  • 3,580
  • [NXD] NXD
  • Member since:
    06-11-2012

View PostMajesticFlight, on 24 March 2019 - 08:15 PM, said:

encyclopedia/vehicles  Takes a really  long time to show.

And I see only tiers of modules there(engines, suspensions, not whole tank's tiers). Or am I missing something?​

 

Sample request for tier 1 if you only want tank-ID and tier for average tier:

https ://api.worldoftanks.eu/wot/encyclopedia/vehicles/?application_id=XXXXXXXXXXXXXXXXXXXXXXXX&tier=1&fields=tier

 

result contains:

 

"data": {

      "81": {
          "tier": 1
     },
     "113": {
          "tier": 1
     },
     "129": {
          "tier": 1
     },

....

}

BTW: I have a table for tanks (including IDs, names, tier ...) because I don't want to ask API to often, because its a little bit time consuming. You can also do it without tier parameter (but still with fields=tier) and use page parameter to get result page number (page_no)

I think, this is the better way - let it run until there is no more data inside page_no= 1...2...3...4...5 maybe with a little sleep inside to limit the count of requests per second.

Sample:

 

https ://api.worldoftanks.eu/wot/encyclopedia/vehicles/?application_id=XXXXXXXXXXXXXXXXXXXXXXXX&fields=tier&page_no=1



kaadomin #825 Posted 26 March 2019 - 02:42 PM

    Colonel

  • Player
  • 32801 battles
  • 3,580
  • [NXD] NXD
  • Member since:
    06-11-2012
May I ask for an update of the friend list in API? At the moment it's not synchronized - 18 friends in game and 15 at the API in the list with latest additions.

RnRolla #826 Posted 20 April 2019 - 10:24 AM

    Second Lieutenant

  • Player
  • 25940 battles
  • 1,230
  • [RAKIA] RAKIA
  • Member since:
    11-29-2013
Why there is no data for random battles assisted damage in Player's vehicles / Vehicle statistics section? There is stun_assisted_damage data, but no regular (radio/tracks) assisted dmg. 

Daniel_Turtle #827 Posted 14 May 2019 - 06:11 PM

    Lance-corporal

  • Player
  • 27448 battles
  • 74
  • [BRT_6] BRT_6
  • Member since:
    09-24-2016
Is there anyway someone can develop a setting within the game that stops you showing up as online to your friends and clan memebers, sometimes it is nice to just have a few hours where I can play in peace without people thinking I am being ignorant (which I guess I am)

Dak28 #828 Posted 25 June 2019 - 03:58 PM

    Sergeant

  • Player
  • 47500 battles
  • 214
  • [ORKI] ORKI
  • Member since:
    08-29-2011
client id is language no more included in the API?

Edited by Dak28, 25 June 2019 - 06:57 PM.


sfa #829 Posted 31 July 2019 - 02:29 PM

    Private

  • Player
  • 12557 battles
  • 19
  • [TEC] TEC
  • Member since:
    09-23-2012

Has anybody else noticed the huge discrepancy between clan ranks shown in game versus reflected on the API?

 

Example: Game client shows my clan at rank 35 or so for tier 6 skirmishes, but on the API our fb_elo_rating_6 is 83. 

 

I thought maybe the API counted some clans with high ELO that have recently been inactive in that particular mode/tier, but no, using https://api.worldoft...ings/neighbors/ ("adjacent positions in clan ratings&quot;), I can actually list all the clans ranked higher and none of them has an "exclude_reason" flag set for fb_elo_rating_6.

 

It's also not due to a synchronization lag or something - whenever we play, the effect on rank is reflected in the API data after the next API update the very next day. There's just that huge offset in the ranks...

 

WG's clan portal is clever - it only displays the ELO values for specific stronghold tiers, but not the ranks. The ELO value itself seems to correspond to the API value.

 

Is there any way to get the actual rank as displayed in game?


Edited by sfa, 31 July 2019 - 02:39 PM.


michalbarczyk #830 Posted 13 August 2019 - 12:09 PM

    Private

  • Player
  • 8134 battles
  • 3
  • Member since:
    12-18-2013
What does all.xp (for particular tank & particular player) mean? I can see that it's explained as "Total experience", but it differs from XP value in WoT PC game.

kaadomin #831 Posted 13 August 2019 - 12:28 PM

    Colonel

  • Player
  • 32801 battles
  • 3,580
  • [NXD] NXD
  • Member since:
    06-11-2012

View PostRnRolla, on 20 April 2019 - 10:24 AM, said:

Why there is no data for random battles assisted damage in Player's vehicles / Vehicle statistics section? There is stun_assisted_damage data, but no regular (radio/tracks) assisted dmg. 

 

You had unrecorded assisted damage for a long time, so any value in API will incorect. The stun ingame was added nearly at the same time as in the API.

 

View PostTurtle_heading, on 14 May 2019 - 06:11 PM, said:

Is there anyway someone can develop a setting within the game that stops you showing up as online to your friends and clan memebers, sometimes it is nice to just have a few hours where I can play in peace without people thinking I am being ignorant (which I guess I am)

 

I'm ignorant too.

 

(no, we can't because we can not change the data the game or the API will get.)

 

View PostDak28, on 25 June 2019 - 03:58 PM, said:

client id is language no more included in the API?

 

gone ... bad ... only to prevent nation A and nation B from starting flame wars on nationality.

 

View Postmichalbarczyk, on 13 August 2019 - 12:09 PM, said:

What does all.xp (for particular tank & particular player) mean? I can see that it's explained as "Total experience", but it differs from XP value in WoT PC game.

 

not sure - what value we are talking about ingame? I have no WoT on this PC.  BTW - I think this is a useless value because of booster, influence of premium account ...

 

View Postsfa, on 31 July 2019 - 02:29 PM, said:

Has anybody else noticed the huge discrepancy between clan ranks shown in game versus reflected on the API?

 

afaik the API gets an update every day - ingame you see the update after some minutes.

 



michalbarczyk #832 Posted 13 August 2019 - 01:05 PM

    Private

  • Player
  • 8134 battles
  • 3
  • Member since:
    12-18-2013

View Postkaadomin, on 13 August 2019 - 12:28 PM, said:

 

You had unrecorded assisted damage for a long time, so any value in API will incorect. The stun ingame was added nearly at the same time as in the API.

 

 

I'm ignorant too.

 

(no, we can't because we can not change the data the game or the API will get.)

 

 

gone ... bad ... only to prevent nation A and nation B from starting flame wars on nationality.

 

 

not sure - what value we are talking about ingame? I have no WoT on this PC.  BTW - I think this is a useless value because of booster, influence of premium account ...

 

 

afaik the API gets an update every day - ingame you see the update after some minutes.

 

Actually, my intention was to check how many experience has particular player on particular tank. Can I find it somewhere in the API?


Edited by michalbarczyk, 13 August 2019 - 01:06 PM.


kaadomin #833 Posted 13 August 2019 - 02:05 PM

    Colonel

  • Player
  • 32801 battles
  • 3,580
  • [NXD] NXD
  • Member since:
    06-11-2012

View Postmichalbarczyk, on 13 August 2019 - 01:05 PM, said:

Actually, my intention was to check how many experience has particular player on particular tank. Can I find it somewhere in the API?

 

If I ask for the T-34 on one of my accounts (api.worldoftanks.eu/wot/tanks/stats/?application_id=your_app_id&tank_id=1&account_id=you_account_id), i'll get:

 

"all": {  [..]

"xp": 5976,
"battles": 12,
"battle_avg_xp": 498,

},

 

But I know the T-34 is full equipped (except one useless gun), and I remember there are about 20k XP on it for the T-34-85. This depends on referral program +50%, premium account +50%, 5 times 3x with premium account, 4x first victory of a day ... you and I don't know how much free XP I used to equip this tank.

 

Finaly 5976 are a lot less than 20k. I think, you can receive this value only from the game client via a modification.



michalbarczyk #834 Posted 19 August 2019 - 04:16 PM

    Private

  • Player
  • 8134 battles
  • 3
  • Member since:
    12-18-2013
Am I allowed to use data provided by API in an Android application which is going to be released in Google Play?

HS23 #835 Posted 21 November 2019 - 08:27 PM

    Private

  • Player
  • 0 battles
  • 1
  • Member since:
    11-21-2019

Hey, can anyone tell me how often the API data is supposed to update? It seems like it takes at least a couple hours between when things happen in-game and when the API stats know about it. Is there are documentation on how frequently it updates?

 

Thank you



kaadomin #836 Posted 21 November 2019 - 08:33 PM

    Colonel

  • Player
  • 32801 battles
  • 3,580
  • [NXD] NXD
  • Member since:
    06-11-2012

View PostHS23, on 21 November 2019 - 08:27 PM, said:

Hey, can anyone tell me how often the API data is supposed to update? It seems like it takes at least a couple hours between when things happen in-game and when the API stats know about it. Is there are documentation on how frequently it updates?

 

Thank you

 

it differs:

For overall values of the account you may need to do a clean logout from game. Tank specific battle values seems to change after each battle (if number of battles overall and sum of tank battles differs - the account is playing).

Elo for clans every day - afaik.

 



ESL_Gorilla #837 Posted 03 December 2019 - 08:39 PM

    Private

  • Player
  • 14812 battles
  • 9
  • [5TAR5] 5TAR5
  • Member since:
    08-15-2015
Hi. I was checking API and couldn't find any information about average or total assisted damage per tank for randoms. Was this finally introduced? In-game this data is available.

kaadomin #838 Posted 03 December 2019 - 11:42 PM

    Colonel

  • Player
  • 32801 battles
  • 3,580
  • [NXD] NXD
  • Member since:
    06-11-2012

View PostESL_Monkey, on 03 December 2019 - 08:39 PM, said:

Hi. I was checking API and couldn't find any information about average or total assisted damage per tank for randoms. Was this finally introduced? In-game this data is available.

 

assistant dmg was introduced late in the game, so every data (especially for older tanks and accounts) is rubbish.



Hannibal_102 #839 Posted 29 January 2020 - 08:00 AM

    Private

  • Player
  • 18070 battles
  • 20
  • [PKPP] PKPP
  • Member since:
    02-22-2016

 
 
 
hello you introduced some time ago wheeled vehicles even it's cool only that E100 vehicles can't cope with three players playing in the platoon again question whether you thought about limiting these vehicles (generally light) to max 3 per team not of the same class (3 x ebr ) or equipping vehicles with other anti-tank rifles as is the case in Armored Warfare


kaadomin #840 Posted 29 January 2020 - 09:18 AM

    Colonel

  • Player
  • 32801 battles
  • 3,580
  • [NXD] NXD
  • Member since:
    06-11-2012

View PostHannibal_102, on 29 January 2020 - 08:00 AM, said:

hello you introduced some time ago wheeled vehicles even it's cool only that E100 vehicles can't cope with three players playing in the platoon again question whether you thought about limiting these vehicles (generally light) to max 3 per team not of the same class (3 x ebr ) or equipping vehicles with other anti-tank rifles as is the case in Armored Warfare

 

It would help to post your ideas in the current update section.

 

Here in the API / WGDPP section you are 100% off topic and there is NO developer writing since 2017.

 

To be back on topic, I put a candle in the window and try to remember for the lost and hardly missed stronghold resources in API in winter 2017 ...

 

     )
    (_)
    |`|
    | |  
  \_|_|_/





1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users