API: How to grab specific amount of entries from XML

Basically looking at list like this one below, but only want to grab say the top 5 entries instead of the default 100. Can’t seem to find what variable that uses.

https://127.0.0.1/library/sections/1/recentlyAdded?X-Plex-Token=xxxxxxx

Also if you have a list of variables I can use, please link me.

Thank you

Add X-Plex-Container-Size=5 to the request.

You can also adjust the start position with X-Plex-Container-Start

1 Like

I believe I tried that already. Doesn’t seem to be changing anything. Did I type it wrong?

https://127.0.0.1/library/sections/1/recentlyAdded?X-Plex-Container-Size=5&X-Plex-Token=xxxxxxx

Ah, X-Plex-Container-Start=0 is mandatory if you want to do paging, just add that.

1 Like