# Plex API : Search server when not owner

**URL:** <https://forums.plex.tv/t/plex-api-search-server-when-not-owner/562987>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [March 27, 2020, 9:54pm UTC](https://forums.plex.tv/t/plex-api-search-server-when-not-owner/562987 "2020-03-27T21:54:02Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ptidou28](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@Ptidou28](https://forums.plex.tv/u/Ptidou28)\
**Post date:** [March 27, 2020, 9:54pm UTC](https://forums.plex.tv/t/plex-api-search-server-when-not-owner/562987/1 "2020-03-27T21:54:03Z")

</div>

I’ve been developing an iOS app for the last few days.  
The user path is simple : first, the user logs in with his Plex credentials or pins. This gives me a Plex token for the user. Then I want to use this token to search for movies in the server they’re already part of.

I’ve been using the /search endpoint found here :  
[https://github.com/Arcanemagus/plex-api/wiki/Plex-Web-API-Overview](https://github.com/Arcanemagus/plex-api/wiki/Plex-Web-API-Overview)  
[http://myServerIP:32400/search?query=Joker&X-Plex-Token=userPlexToken](http://myServerIP:32400/search?query=Joker&X-Plex-Token=userPlexToken)

Everything was working smoothly with my account. But today I’ve discovered that this endpoint only allows owner/admin to query the server. I’ve tried with a friend’s Plex token who is already added in my server but the response is Unauthorized.

Do you have the same behaviour on your side ? I find it weird that user, already part of a server, can’t search for movies through the API, as they are able to do it with the plex interface.

---

<div class="post-metadata">

**Author:** ![Ptidou28](https://avatars.discourse-cdn.com/v4/letter/p/d26b3c/32.png) [@Ptidou28](https://forums.plex.tv/u/Ptidou28)\
**Post date:** [April 18, 2020, 8:42pm UTC](https://forums.plex.tv/t/plex-api-search-server-when-not-owner/562987/2 "2020-04-18T20:42:37Z")

</div>

Here was the issue :  
[https://www.reddit.com/r/PleX/comments/g3qmsb/plex\_api\_search\_server\_when\_not\_owner/](https://www.reddit.com/r/PleX/comments/g3qmsb/plex_api_search_server_when_not_owner/)

---

<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:** [July 17, 2020, 8:42pm UTC](https://forums.plex.tv/t/plex-api-search-server-when-not-owner/562987/3 "2020-07-17T20:42:41Z")

</div>

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