# API: Users & Play History

**URL:** <https://forums.plex.tv/t/api-users-play-history/796964>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [June 14, 2022, 9:05am UTC](https://forums.plex.tv/t/api-users-play-history/796964 "2022-06-14T09:05:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![alsotacit](https://avatars.discourse-cdn.com/v4/letter/a/45deac/32.png) [@alsotacit](https://forums.plex.tv/u/alsotacit)\
**Post date:** [June 14, 2022, 9:05am UTC](https://forums.plex.tv/t/api-users-play-history/796964/1 "2022-06-14T09:05:40Z")

</div>

Hi, I have a couple of questions about users & play history:

1. When getting a list of users there seem to be two endpoints I can use:

- [https://plex.tv/api/home/users](https://plex.tv/api/home/users)
- [https://plex.tv/api/users](https://plex.tv/api/users)

What is the intent of having two different endpoints and what is the significance of “home” in this context? I notice that the former returns all users whereas the latter returns all users _apart_ from the home admin.

1. When getting play history from /status/sessions/history/all I see that in the response, most users have an _accountID_ that matches the _id_ given in the /api/home/users response in (1) above. However, this is not true for home admin user who gets an ID of “1” rather than the ID given in the /api/home/users response. Is there something I am misunderstanding here? What is the reason for the difference in home admin IDs?

Thanks for any help!

---

<div class="post-metadata">

**Author:** ![dane22](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/dane22/32/4389_2.png) [@dane22](https://forums.plex.tv/u/dane22)\
**Post date:** [June 14, 2022, 9:41am UTC](https://forums.plex.tv/t/api-users-play-history/796964/2 "2022-06-14T09:41:34Z")

</div>

> [@alsotacit](#):
>
> What is the intent of having two different endpoints and what is the significance of “home” in this context?

`https://plex.tv/api/home/users` will return users, that is in your [home](https://support.plex.tv/articles/203815766-what-is-plex-home/) only

`https://plex.tv/api/users` will return all your friends, incl. those in your home

> [@alsotacit](#):
>
> What is the reason for the difference in home admin IDs?

That I can’t tell, and might be due to historical reasons, but do agree that returning the real ID of the owner would have made more sense.
