Skip to content

Which api can get game play time? #91

Open

Description

@Asteroidxx

I had get user's game list form request "https://titlehub.xboxlive.com:443/users/xuid(xuid)/titles/titlehistory/decoration/achievement,image,scid" and get many detail, but I can't found play duration in each game. How can i get it?

Please,Appreciate!

Activity

  1. JeahWan commented on Nov 29, 2023

    @JeahWan

    I had get user's game list form request "https://titlehub.xboxlive.com:443/users/xuid(xuid)/titles/titlehistory/decoration/achievement,image,scid" and get many detail, but I can't found play duration in each game. How can i get it?

    Please,Appreciate!

    Hello brother, have you found this API? I also need it very much. If you find it, please let me know. Thank you very much!!!

  2. stelemanuele77 commented on Aug 16, 2024

    @stelemanuele77

    To get playtime you need to do a
    POST request to
    https://userstats.xboxlive.com/batch
    Headers:

    Authorization: XBL3.0 Token
    X-Xbl-Contract-Version: 2
    

    Content:
    {"arrangebyfield":"xuid","xuids":["XUID_HERE"],"stats":[{"name":"MinutesPlayed","titleId":"TITLEID_1"},{"name":"MinutesPlayed","titleId":"TITLEID_2"}]}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions