# Recently Added Content... Trigger/API/Feed?

**URL:** <https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [June 26, 2015, 1:37pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171 "2015-06-26T13:37:22Z")\
**Posts on this page:** 13\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr3rown](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr3rown/32/92576_2.png) [@mr3rown](https://forums.plex.tv/u/mr3rown)\
**Post date:** [June 26, 2015, 1:37pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/1 "2015-06-26T13:37:22Z")

</div>

Hi guys could anyone help with these questions please?

- How does one obtain "recently added" content data via the API?
- In the plex API, is there a means to pull the recently added content into some type of JSON based output?...
- Or is there a way that when Plex scans and finds new content it can trigger a plugin or a script perform another action?

Many thanks!

---

<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 26, 2015, 2:01pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/2 "2015-06-26T14:01:49Z")

</div>

Check this one out:

[https://github.com/Arcanemagus/plex-api/wiki/Plex-Web-API-Overview](https://github.com/Arcanemagus/plex-api/wiki/Plex-Web-API-Overview)

/T

---

<div class="post-metadata">

**Author:** ![mr3rown](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr3rown/32/92576_2.png) [@mr3rown](https://forums.plex.tv/u/mr3rown)\
**Post date:** [June 26, 2015, 9:35pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/3 "2015-06-26T21:35:50Z")

</div>

dane22, many thanks!... unable to get the advanced filters to work, but its a start!!

---

<div class="post-metadata">

**Author:** ![mr3rown](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr3rown/32/92576_2.png) [@mr3rown](https://forums.plex.tv/u/mr3rown)\
**Post date:** [July 18, 2015, 7:05am UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/4 "2015-07-18T07:05:59Z")

</div>

Does this API allow access remotely ?

e.g. [http://somedomain.com:32400/library/sections/1/all](http://somedomain.com:32400/library/sections/1/all)

I keep getting access denied, also tried using the “Token” because most API usually need some type of authentication but still no joy.

Can I get a heads up please?

---

<div class="post-metadata">

**Author:** ![Arcanemagus](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arcanemagus/32/81844_2.png) [@Arcanemagus](https://forums.plex.tv/u/Arcanemagus)\
**Post date:** [July 18, 2015, 3:50pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/5 "2015-07-18T15:50:17Z")

</div>

That should work just fine externally, assuming you are properly passing the token to it. For example this exact link works just fine on my server (before anonymizing):  
`https://my.external.domain:32400/library/sections/1?X-Plex-Token=xNsOrTpAaTuOtKwEpNja`

Although if you are developing an application and not just testing you should be sending the token as a header and not a URL parameter.

---

<div class="post-metadata">

**Author:** ![mr3rown](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr3rown/32/92576_2.png) [@mr3rown](https://forums.plex.tv/u/mr3rown)\
**Post date:** [July 18, 2015, 5:56pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/6 "2015-07-18T17:56:24Z")

</div>

Gonna give this a try!!

Thanks!

---

<div class="post-metadata">

**Author:** ![mr3rown](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr3rown/32/92576_2.png) [@mr3rown](https://forums.plex.tv/u/mr3rown)\
**Post date:** [July 18, 2015, 6:39pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/7 "2015-07-18T18:39:53Z")

</div>

No joy on token and username…

This is part of a python script im testing to use in something else, so perhaps i need to use headers, i will give a go and see.

---

<div class="post-metadata">

**Author:** ![Arcanemagus](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/arcanemagus/32/81844_2.png) [@Arcanemagus](https://forums.plex.tv/u/Arcanemagus)\
**Post date:** [July 18, 2015, 8:02pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/8 "2015-07-18T20:02:15Z")

</div>

You should only need the token. If it’s working locally but not externally I would guess that you don’t have the port forwarded properly.

Are you able to log into the web interface remotely? ([http://your.external.domain:32400/web/index.html](http://your.external.domain:32400/web/index.html))

---

<div class="post-metadata">

**Author:** ![mr3rown](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr3rown/32/92576_2.png) [@mr3rown](https://forums.plex.tv/u/mr3rown)\
**Post date:** [July 19, 2015, 3:07am UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/9 "2015-07-19T03:07:03Z")

</div>

Apologies for my previous post, been working on this for a while and this 401 issue is holding me back big time!!

To answer you question can I [http://your.external.domain:32400/web/index.html](http://your.external.domain:32400/web/index.html) remotely, yes I can, I do need to login but it definitely works.

---

<div class="post-metadata">

**Author:** ![mr3rown](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr3rown/32/92576_2.png) [@mr3rown](https://forums.plex.tv/u/mr3rown)\
**Post date:** [July 19, 2015, 3:24am UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/10 "2015-07-19T03:24:12Z")

</div>

I figured it out!!!.. made a stupid mistake a very stupid mistake!! thanks so much for your help!!

---

<div class="post-metadata">

**Author:** ![chowmain\_software](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/chowmain_software/32/9761_2.png) [@chowmain\_software](https://forums.plex.tv/u/chowmain_software)\
**Post date:** [December 17, 2015, 11:48pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/11 "2015-12-17T23:48:12Z")

</div>

> @mr3rown said:  
> I figured it out!!!.. made a stupid mistake a very stupid mistake!! thanks so much for your help!!

What did it turn out to be? I’m having the same problem

---

<div class="post-metadata">

**Author:** ![mr3rown](https://sea1.discourse-cdn.com/plex/user_avatar/forums.plex.tv/mr3rown/32/92576_2.png) [@mr3rown](https://forums.plex.tv/u/mr3rown)\
**Post date:** [February 7, 2016, 9:18am UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/12 "2016-02-07T09:18:59Z")

</div>

Oh!! it was how I read or interpreted how to obtain the Plex Token, i thought it was something else in the guide but i read it wrong. For some reason i thought it was the UUID, and did not pay attention to the answer staring at my face that its not that its the part at the end of the URL where you view the XML but not the XML it self. Hope I am making sense but the bottom line is i did not read [https://support.plex.tv/hc/en-us/articles/204059436](https://support.plex.tv/hc/en-us/articles/204059436) this proprely :))

---

<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:** [January 8, 2020, 7:49pm UTC](https://forums.plex.tv/t/recently-added-content-trigger-api-feed/107171/13 "2020-01-08T19:49:38Z")

</div>

Closed on January 8, 2020, 7:49pm UTC


