# API: Get sourceID from name / from ranking

**URL:** <https://forums.combatlogforums.com/t/api-get-sourceid-from-name-from-ranking/3750>\
**Category:** General\
**Created:** [July 10, 2017, 6:53pm UTC](https://forums.combatlogforums.com/t/api-get-sourceid-from-name-from-ranking/3750 "2017-07-10T18:53:10Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![defunes43](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@defunes43](https://forums.combatlogforums.com/u/defunes43)\
**Post date:** [July 10, 2017, 6:53pm UTC](https://forums.combatlogforums.com/t/api-get-sourceid-from-name-from-ranking/3750/1 "2017-07-10T18:53:10Z")

</div>

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](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](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](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,

---

<div class="post-metadata">

**Author:** ![Kihra](https://yyz1.discourse-cdn.com/flex029/user_avatar/forums.combatlogforums.com/kihra/32/1116_2.png) [@Kihra](https://forums.combatlogforums.com/u/Kihra)\
**Post date:** [July 11, 2017, 12:42am UTC](https://forums.combatlogforums.com/t/api-get-sourceid-from-name-from-ranking/3750/2 "2017-07-11T00:42:16Z")

</div>

You need to specify a start and end time.

---

<div class="post-metadata">

**Author:** ![defunes43](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@defunes43](https://forums.combatlogforums.com/u/defunes43)\
**Post date:** [July 11, 2017, 6:14am UTC](https://forums.combatlogforums.com/t/api-get-sourceid-from-name-from-ranking/3750/3 "2017-07-11T06:14:04Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![defunes43](https://avatars.discourse-cdn.com/v4/letter/d/b5a626/32.png) [@defunes43](https://forums.combatlogforums.com/u/defunes43)\
**Post date:** [July 18, 2017, 11:51am UTC](https://forums.combatlogforums.com/t/api-get-sourceid-from-name-from-ranking/3750/4 "2017-07-18T11:51:16Z")

</div>

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](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.
