# JS API Docu

**URL:** <https://forums.plex.tv/t/js-api-docu/73788>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [August 15, 2014, 6:55am UTC](https://forums.plex.tv/t/js-api-docu/73788 "2014-08-15T06:55:37Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![zauberertz](https://avatars.discourse-cdn.com/v4/letter/z/6a8cbe/32.png) [@zauberertz](https://forums.plex.tv/u/zauberertz)\
**Post date:** [August 15, 2014, 6:55am UTC](https://forums.plex.tv/t/js-api-docu/73788/1 "2014-08-15T06:55:37Z")

</div>

Hi,

&nbsp;

I'm looking for a documentation on how to log in the plex server and what the endpoints are. How they respond and how to request JSON.

Cause it is hard to reverse engineer the Plex Web frontend.

&nbsp;

The reason for asking this is, I'd like to develop a bookmarklet for my &nbsp;Video on Demand provider (OTR) to check whether i have the movie or not.

&nbsp;

Gratings from Switzerland&nbsp;

---

<div class="post-metadata">

**Author:** ![reallistic](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/reallistic/32/5677_2.png) [@reallistic](https://forums.plex.tv/u/reallistic)\
**Post date:** [August 16, 2014, 7:00pm UTC](https://forums.plex.tv/t/js-api-docu/73788/2 "2014-08-16T19:00:31Z")

</div>

Here is a code snippet written in curl:

```
curl -u username:password -X POST -H "X-Plex-Client-Identifier:" https://plex.tv/users/sign_in.xml
```

It uses basic auth over POST.

NOTE: The&nbsp;X-Plex-Client-Identifier header MUST be present.

Please visit the Unofficial Plex Web api [here](https://forums.plex.tv/topic/104353-pms-web-api-documentation/).

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/plex/original/3X/2/a/2acb9765406f63293d357b4ec509ec39aa28f2ad.png) [@system](https://forums.plex.tv/u/system)\
**Post date:** [December 21, 2019, 2:44am UTC](https://forums.plex.tv/t/js-api-docu/73788/3 "2019-12-21T02:44:28Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
