Results 1 to 2 of 2

Thread: GetFantasyPlayerStats returns blank response

  1. #1
    Basic Member Get In The Robot's Avatar
    Join Date
    Oct 2014

    Question GetFantasyPlayerStats returns blank response

    I'm mucking about with a project for suggesting fantasy picks in the DPC, but GetFantasyPlayerStats only returns a blank response.

    Is it possible that FantasyLeagueID is different to LeagueID? If so, how would I find the FantasyLeagueID parameter for a given tournament?

    Or is it that this method is not intended for use (or public use)? There's been an empty link on the TFwiki's API documentation about GetFantasyPlayerStats for some time now, but it's still marked "TODO".

    Here's a sample request (sans key, of course) using the LeagueID for DreamLeague Season 11 as the FantasyLeagueID:<YourKeyHere>&FantasyLeagueID=17465

    It produces the following response:

    I sourced the GetFantasyPlayerStats method from a request to this URL:

    Here is the relevant excerpt from that response:

    If it's not meant to be used yet, or to be used by people outside of Valve at all, then I'll stop writing the wiki page and start trying to figure out how to request "Teamfight Participation" from the API, if there is a way...

    ...And then I suppose I'll have to do all the fantasy math my damn self.
    Last edited by Get In The Robot; 03-16-2019 at 09:36 PM. Reason: clarity
    To the devs—thank you for your time and for your effort. I'm sorry that we only think of you when we want something.

  2. #2
    Basic Member
    Join Date
    Apr 2012
    Isn't teamfight participation just (kills + assists) / {radiant|dire}_score?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts