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
    Location
    Michigan
    Posts
    45

    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:

    https://api.steampowered.com/IDOTA2Fantasy_205790/GetFantasyPlayerStats/V001/?key=<YourKeyHere>&FantasyLeagueID=17465

    It produces the following response:

    https://gist.githubusercontent.com/e...tasyStats.json


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

    http://api.steampowered.com/ISteamWe...APIList/v0001/

    Here is the relevant excerpt from that response:

    https://gist.githubusercontent.com/e...ayerStats.json


    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
    Posts
    38
    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
  •