API: Get sourceID from name / from ranking


#1

Hello,

I am trying to extract data from WLogs, in order to build a spellDistribution vs. rank chart (ie. does higher ranking players do more damage from all spells, or does the distribution change).

I am therefore trying to query the damage done in some reports, however, I can’t get it to work.

Indeed, in the ‘report’ controller, the ‘event’ action is working fine:
https://www.warcraftlogs.com/v1/report/events/jV7BrwCxnJptyFNb?api_key=my_key

same thing for the ‘fights’ action:
https://www.warcraftlogs.com/v1/report/fights/jV7BrwCxnJptyFNb?api_key=my_key

However, the ‘tables’ event does not seem to yield any results:
https://www.warcraftlogs.com/v1/report/tables/damage-done/jV7BrwCxnJptyFNb?api_key=my_key

There is no error message, just an empty array:

{
    "entries": [],
    "totalTime": 0
}

Could you please help me figure out what is happening?
Thanks,


#2

You need to specify a start and end time.


#3

My bad, I overlooked this in the documentation.
Works fine when an end time is specified, thanks a lot :slight_smile:


#4

I have now completed my project, and I’d like to thank you for your help.

WLogs is a great tool, and the API makes extraction very easy, in order to improve other WoW related tools (in this case, Ask Mr Robot http://forums.askmrrobot.com/t/an-issue-with-sasszine-script-and-elemental-shamans/1412/3).

The API is remarkably easy to use, and very well documented, as a thank you, I became a Patron.