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

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!

Check this one out:

https://github.com/Arcanemagus/plex-api/wiki/Plex-Web-API-Overview

/T

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

Does this API allow access remotely ?

e.g. 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?

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.

Gonna give this a try!!

Thanks!

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.

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)

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 remotely, yes I can, I do need to login but it definitely works.

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

@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

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 this proprely :))