Jump to content


General Discussion of Wargaming Public API


  • Please log in to reply
833 replies to this topic

Lector #701 Posted 06 June 2017 - 07:31 PM

    Second Lieutenant

  • Beta Tester
  • 4035 battles
  • 1,023
  • [22KT] 22KT
  • Member since:
    12-18-2010

https://developers.w..._realm=eu&run=1

role_i18n It is always russian!



Hyster #702 Posted 07 June 2017 - 10:59 AM

    Warrant Officer

  • Player
  • 27461 battles
  • 598
  • [T-S_K] T-S_K
  • Member since:
    02-14-2012

use role and put

 

    $item['role'] = str_replace("_"," ",$item['role']);
    $item['role'] = ucwords($item['role']);

 

in the loop



BONNe_LV #703 Posted 08 June 2017 - 09:56 AM

    Warrant Officer

  • Player
  • 38748 battles
  • 818
  • [LVPRK] LVPRK
  • Member since:
    04-26-2012
Will there be API for new Ranked Battles? 

Hedeone #704 Posted 08 June 2017 - 02:20 PM

    Sergeant

  • Developer
  • 1 battle
  • 235
  • Member since:
    09-17-2013

View PostWiochi, on 31 May 2017 - 11:23 PM, said:

Hmmm, maybe you monitor PAPI from internal network?

 

...

 

One endpoint is responisble for nearly 100% of those errors. Query from my app with all parameters (application_id changed to demo)

 

Strange behavior, we will check it.

 

View Postkaadomin, on 03 June 2017 - 12:25 PM, said:

Hello @Hedeone,

 

please add at least a value for earned skimish.resources to the players data.

 

Now there are a lot of funny/useless vales like stun in the skirmish values, but we still (since February) miss a way to calculate with these resources values. We have such values inside the game on clan panel in Stronghold. Please put some of them back on the API.

 

Still work in progress at this improvements :( I haven't any ETA.

 

View PostLector, on 06 June 2017 - 09:31 PM, said:

https://developers.w..._realm=eu&run=1

role_i18n It is always russian!

 

Will be fixed with the next update.

 

View PostBONNe_LV, on 08 June 2017 - 11:56 AM, said:

Will there be API for new Ranked Battles? 

 

Yes, it will, but not at this season. At this month update we are adding ranked battles methods in testing mode and in some of next updates they will go live (i think, in July).



kaadomin #705 Posted 10 June 2017 - 07:52 AM

    Major

  • Player
  • 32571 battles
  • 2,955
  • [NXD] NXD
  • Member since:
    06-11-2012

View PostHedeone, on 08 June 2017 - 02:20 PM, said:

 

View Postkaadomin, on 03 June 2017 - 12:25 PM, said:

Hello @Hedeone,

 

please add at least a value for earned skimish.resources to the players data.

[...]

 

Still work in progress at this improvements :( I haven't any ETA.

 

so bad :(

I see a incoming problem, if I watch the new clan interface from this 0.9.19 update. There are the skirmish battles for the last X days and industrial resources earned by player. But when I checked my little project clan for young player (NXP), I see the full earned resources written down - but the clan got half of the resources, because the player were on skirmish with NXD. This means I can't determine the actual amount of clan resources from this player earned resources. So it would useful to have an over all value and a value for the resources for the actual clan. I see this as really important.

More information would be nice to have to get a balance for the in- and out coming industrial resources. I try make it fair for everybody participating, but it is difficult.

 



Dexatroph #706 Posted 12 June 2017 - 05:12 PM

    Colonel

  • Player
  • 48296 battles
  • 3,736
  • Member since:
    02-09-2013

Hello,

 

I want to suggest two new methods I would like to see in PAPI. I stumbled over this after I create my first scripts/applications.

 

[1.] The lowest/highest account_id for existing realms (RU, EU, NA, XBOX, PS4 ...) is unknown to new PAPI users, also the highest numbers just change real time. 

I want to see a new methode for that kind of information. The response of the new methode should return the min/max account_id for the requested realm:

 

{
    "status": "ok",
    "data": [
        {
            "min": 500000025,
            "max": 547572710
        }
    ]
}


[2.] I have to iterate hundreds of thousands to millions of account_ids to identify accounts what played recently. Looks not very efficent to me.

 

How about to have a methode what just return a list of players (account ids only) what played recently? 

The new methode I'm looking for should allow PAPI users to submit a request with the following parameters.

 

[application_id]    - Application Id
[type]                   - 1, 3, 7, 14, 21, 28 (active in the last X  days)
[page_no]           - page number with account_ids

 

The methode should return all account ids  page-by-page what match the given "type". I think 1000-1500 account ids per page are suitable. In addition the methode should return the timestamp of when the list was assembled. The list of account ids for each type should be created once a day (or more often) at the specific time on the server so PAPI just delivers a cached list.

 

[EDIT: It might be useful to add the nummer of pages to the response also.

 

The response could look like that:

 

{
    "status": "ok",
    "meta": {

        "count": 1000,
        "lastPage": 1088,
        "timestamp": 147788929
    },
    "data": [
        {
            "account_id": 500000025,
        },
        {
            "account_id": 500000075,
        },
        .
        .
        .
    ]
}

 

 

Feel free to add additions or questions. 

 

 

Last but not least:


[3.] Do we have an ETA when "ranked battles" will be part of the player statistics in PAPI and when methods for ranked battle leaderboards become available?

[EDIT: The question is answered, since I saw the reply from Hedeone a few posts above mine]

 

cu
Dexa


Edited by Dexatroph, 16 June 2017 - 02:22 PM.


enteranicknamemartin #707 Posted 15 June 2017 - 02:31 PM

    Private

  • Player
  • 5 battles
  • 9
  • Member since:
    06-27-2014

Hi, im developping a stats site for WOT Blitz, i think it would be nice to have data about the new military honor feature, so that i can notify my users when they got a new thumbs up or down.

 

and it would be REALLY nice to have information about number of battles per map.

 

i'm polling the stats, so, i could then track changes to the number of battles player per map to see if that was a win, loss or draw, the dmg, etc..

 

and still nicer, but  a lot more costly would be to have info about the opponents, lets say for the last 10 battles, and the current one if possible.

 

i could then display complete battle results, and, if i can get the data for the current game, some stats about the team (however i see that might give players a unfair advantage)

 

at least add info about military honor, and the new tanks :)



enteranicknamemartin #708 Posted 15 June 2017 - 02:49 PM

    Private

  • Player
  • 5 battles
  • 9
  • Member since:
    06-27-2014

View PostDexatroph, on 12 June 2017 - 05:12 PM, said:

Hello,

 

I want to suggest two new methods I would like to see in PAPI. I stumbled over this after I create my first scripts/applications.

 

[1.] The lowest/highest account_id for existing realms (RU, EU, NA, XBOX, PS4 ...) is unknown to new PAPI users, also the highest numbers just change real time. 

I want to see a new methode for that kind of information. The response of the new methode should return the min/max account_id for the requested realm:

 

{
    "status": "ok",
    "data": [
        {
            "min": 500000025,
            "max": 547572710
        }
    ]
}


[2.] I have to iterate hundreds of thousands to millions of account_ids to identify accounts what played recently. Looks not very efficent to me.

 

How about to have a methode what just return a list of players (account ids only) what played recently? 

The new methode I'm looking for should allow PAPI users to submit a request with the following parameters.

 

[application_id]    - Application Id
[type]                   - 1, 3, 7, 14, 21, 28 (active in the last X  days)
[page_no]           - page number with account_ids

 

The methode should return all account ids  page-by-page what match the given "type". I think 1000-1500 account ids per page are suitable. In addition the methode could return the timestamp of when the list was assembled. The list of account ids for each type should be created once a day (or more often) at the specific time on the server so PAPI just delivers a cached list.

 

Feel free to add additions or questions. 

 

 

Last but not least:


[3.] Do we have an ETA when "ranked battles" will be part of the player statistics in PAPI and when methods for ranked battle leaderboards become available?

[EDIT: The question is answered, since I saw the reply from Hedeone a few posts above mine]

 

cu
Dexa

 

type ? why not a date ?

AlucardPina #709 Posted 23 July 2017 - 07:35 PM

    Lance-corporal

  • Player
  • 50335 battles
  • 59
  • Member since:
    05-27-2013
[Edited]

Edited by FireflyDivision, 23 July 2017 - 10:20 PM.
Moderated due to inappropriate content. Official notification sent.


BigaCubensis #710 Posted 31 July 2017 - 09:25 PM

    Private

  • Player
  • 0 battles
  • 1
  • Member since:
    08-30-2015

World of Warship XP question

 

Hi, I would like calculate the required XP for next ship.

I successfully got the collected XP on a specified ship, but in ship encyclopedia I only found credit and doublon cost for a new ship.

I tried get it from modules tree, but the default hull module XP cost here is 0.

How can I get the vanilla ship XP cost?

 

thanks



b48g55m #711 Posted 07 August 2017 - 06:10 AM

    Private

  • Player
  • 65 battles
  • 5
  • Member since:
    10-11-2015
If ranking battles and military honor (MH) are the new metrics for WOT Blitz, why not also show MH on the leader board https://wotblitz.eu/en/leaderboard/ so we can see players' ranks and honor together. Both are being tested/gradually improved so no harm there... or?

keskparane #712 Posted 07 August 2017 - 08:59 AM

    Private

  • Player
  • 0 battles
  • 1
  • Member since:
    08-07-2017

Hi. Warships player from Asia here.

 

I would like to get the detection values for the ships to make calculations on the minimum possible visibility. Problem is the api only returns 1 fixed point numbers and the values are to 2 fixed points. Not only does the subsequent rounding make it impossible to get the correct value, it also makes it impossible to sort the ships in order due to the different percentage values applied with concealment expert.

 

Can the api please be modified to return 2 fixed points so that the api can return the same values as can be seen on the wiki?



kaadomin #713 Posted 22 August 2017 - 08:29 AM

    Major

  • Player
  • 32571 battles
  • 2,955
  • [NXD] NXD
  • Member since:
    06-11-2012

Would someone wake up and have a party?

 

View PostHedeone, on 08 June 2017 - 02:20 PM, said:

 

View Postkaadomin, on 03 June 2017 - 12:25 PM, said:

Hello @Hedeone,

 

please add at least a value for earned skimish.resources to the players data.

[...]

 

Still work in progress at this improvements :( I haven't any ETA.

 

Happy six month jubilee of kicking of the resource data from API!

 

Are we still on no ETA?



aydie #714 Posted 31 August 2017 - 10:18 AM

    Warrant Officer

  • Player
  • 10359 battles
  • 889
  • Member since:
    02-25-2012

just a quick question since the wiki provides different values within the same cluster for this:

What's the daily reset time (as in when does a game day end and the next one start) for the RU cluster?



Dexatroph #715 Posted 31 August 2017 - 04:57 PM

    Colonel

  • Player
  • 48296 battles
  • 3,736
  • Member since:
    02-09-2013

View PostHedeone, on 08 June 2017 - 02:20 PM, said:

 

Block Quote

  [_error:app\wg\api\query\response:private] => Array                 (                     [code] => 504                     [message] => SOURCE_NOT_AVAILABLE                     [field] =>                     [value] =>                 ;)

 

 

Strange behavior, we will check it.

 

 

This is still an issue, since I got lots of those errrors while I tried to grab data from the API today.

 

@Dev

Any idea what cause the instability?


Edited by Dexatroph, 31 August 2017 - 05:10 PM.


emwexx #716 Posted 01 September 2017 - 07:22 PM

    Private

  • Player
  • 21326 battles
  • 22
  • Member since:
    09-19-2012

Is there an estimate when we can see ranked battle and grand battle stats in "wot/tanks/stats"?



qdly #717 Posted 02 September 2017 - 09:37 PM

    Private

  • Player
  • 41358 battles
  • 40
  • Member since:
    07-06-2011

hi,

 

iv been doing some testing on my clan mates, and iv encounteres few tanks that are not in tankopedia, the id's are:

64257, 63745, 64833, 62017, 58657

anyone got idea what those are?



kaadomin #718 Posted 02 September 2017 - 10:51 PM

    Major

  • Player
  • 32571 battles
  • 2,955
  • [NXD] NXD
  • Member since:
    06-11-2012

View Postqdly, on 02 September 2017 - 09:37 PM, said:

hi,

 

iv been doing some testing on my clan mates, and iv encounteres few tanks that are not in tankopedia, the id's are:

64257, 63745, 64833, 62017, 58657

anyone got idea what those are?

 

I tested with my local data:

 

64257=> ( R ) IS-7 (this stupid rental tanks spammed my DB with useless rubbish, because of the 0 random battles)

63745 ?

64833 ?

62017 => F74 AMX M4 1949 Liberte,

58657 => A115 Chrysler K

 

1. Edit ® => ( R ) - in original without spaces but the board turns it into ®

 

2. Edit:

+-------+-------------------------+-----------+------+--------+------------------------------------+------------+
| id    | name                    | ttype     | tier | nation | bild                               | is_premium |
+-------+-------------------------+-----------+------+--------+------------------------------------+------------+
| 58657 | A115 Chrysler K         | heavyTank |    8 | usa    | usa-a115_chrysler_k.png            |          1 |
| 62017 | F74 AMX M4 1949 Liberte | heavyTank |    8 | france | france-f74_amx_m4_1949_liberte.png |          1 |
| 64257 | ( R ) IS-7              | heavyTank |   10 | ussr   | ussr-r45_is-7_fallout.png          |          0 |
+-------+-------------------------+-----------+------+--------+------------------------------------+------------+

 


Edited by kaadomin, 02 September 2017 - 11:03 PM.


qdly #719 Posted 02 September 2017 - 11:01 PM

    Private

  • Player
  • 41358 battles
  • 40
  • Member since:
    07-06-2011

thanks man

 

arent other 2 amx 50b rental and t62a rental? those used to be in one of that removed game modes, as well as is7? iv just checked few acc, and whole they have had those, they have no battles at all, i think thats safe bet.

 

and while we r on it, is there pudel in tankopedia? and new china td's?


Edited by qdly, 02 September 2017 - 11:01 PM.


kaadomin #720 Posted 02 September 2017 - 11:21 PM

    Major

  • Player
  • 32571 battles
  • 2,955
  • [NXD] NXD
  • Member since:
    06-11-2012

I didn't find the other fallout tanks in my data but

 

63745 => 46 player *)

64257 => 60 player *)  ( R ) IS-7

64833 => 27 player *)

 

every tank without any random battle - I don't know what tank ID refers to the rental tank name from fallout but it looks like we can expect the rental tanks here.

 

I've got the Pudel

+-----+-------+------------+------+--------+----------------------------+------------+
| id  | name  | ttype      | tier | nation | bild                       | is_premium |
+-----+-------+------------+------+--------+----------------------------+------------+
| 145 | Pudel | mediumTank |    6 | poland | poland-Pl03_PzV_Poland.png |          1 |
+-----+-------+------------+------+--------+----------------------------+------------+

 

and the Chinese TD (as fare as I can see):

+-------+--------------+--------+------+--------+----------------------------+------------+
| id    | name         | ttype  | tier | nation | bild                       | is_premium |
+-------+--------------+--------+------+--------+----------------------------+------------+
|  6449 | T-26G FT     | AT-SPG |    2 | china  | china-Ch30_T-26G_FT.png    |          0 |
|  6705 | M3G FT       | AT-SPG |    3 | china  | china-Ch31_M3G_FT.png      |          0 |
|  6961 | SU-76G FT    | AT-SPG |    4 | china  | china-Ch32_SU-76G_FT.png   |          0 |
|  7217 | 60G FT       | AT-SPG |    5 | china  | china-Ch33_60G_FT.png      |          0 |
|  7473 | WZ-131G FT   | AT-SPG |    6 | china  | china-Ch34_WZ131G_FT.png   |          0 |
|  7729 | T-34-2G FT   | AT-SPG |    7 | china  | china-Ch35_T-34-2G_FT.png  |          0 |
|  7985 | WZ-111-1G FT | AT-SPG |    8 | china  | china-Ch36_WZ111_1G_FT.png |          0 |
|  8241 | WZ-111G FT   | AT-SPG |    9 | china  | china-Ch37_WZ111G_FT.png   |          0 |
|  8497 | WZ-113G FT   | AT-SPG |   10 | china  | china-Ch38_WZ113G_FT.png   |          0 |
| 63281 | WZ-120-1G FT | AT-SPG |    8 | china  | china-Ch39_WZ120_1G_FT.png |          1 |
+-------+--------------+--------+------+--------+----------------------------+------------+

 

*) in my database are about 300 player - some have never seen fallout mode






1 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users