# API get items for multiple sections.

**URL:** <https://forums.plex.tv/t/api-get-items-for-multiple-sections/57833>\
**Category:** Dev/API Corner\
**Tags:** other-dev\
**Created:** [February 18, 2014, 10:47pm UTC](https://forums.plex.tv/t/api-get-items-for-multiple-sections/57833 "2014-02-18T22:47:24Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tester22](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tester22](https://forums.plex.tv/u/tester22)\
**Post date:** [February 18, 2014, 10:47pm UTC](https://forums.plex.tv/t/api-get-items-for-multiple-sections/57833/1 "2014-02-18T22:47:24Z")

</div>

When getting metadata for items it is possible to get data for multiple items by joining them with , eg :&nbsp;[http://localhost:32400/library/metadata/355,356](http://localhost:32400/library/metadata/355,356)

&nbsp;

Is it possible to use something similar to get the listings for each item type? One call to get all movies from 3 sections? eg. &nbsp;[http://localhost:32400/library/sections/1,3/all](http://localhost:32400/library/sections/1,3/all) or&nbsp;http://localhost:32400/library/sections/1,3/recentlyAdded or do I need to loop through all sections to get all items?

---

<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:** [February 18, 2014, 10:49pm UTC](https://forums.plex.tv/t/api-get-items-for-multiple-sections/57833/2 "2014-02-18T22:49:49Z")

</div>

> When getting metadata for items it is possible to get data for multiple items by joining them with , eg :&nbsp;[http://localhost:32400/library/metadata/355,356](http://localhost:32400/library/metadata/355,356)

AFAIK, sadly no

> When getting metadata for items it is possible to get data for multiple items by joining them with , eg :&nbsp;[http://localhost:32400/library/metadata/355,356](http://localhost:32400/library/metadata/355,356)
> 
> Is it possible to use something similar to get the listings for each item type? One call to get all movies from 3 sections? eg. &nbsp;[http://localhost:32400/library/sections/1,3/all](http://localhost:32400/library/sections/1,3/all) or&nbsp;http://localhost:32400/library/sections/1,3/recentlyAdded or do I need to loop through all sections to get all items?

Again sorry, but AFAIK only by looping

---

<div class="post-metadata">

**Author:** ![tester22](https://avatars.discourse-cdn.com/v4/letter/t/f9ae1b/32.png) [@tester22](https://forums.plex.tv/u/tester22)\
**Post date:** [February 18, 2014, 10:53pm UTC](https://forums.plex.tv/t/api-get-items-for-multiple-sections/57833/3 "2014-02-18T22:53:20Z")

</div>

> AFAIK, sadly no
> 
> Again sorry, but AFAIK only by looping

Actually the first one works, try it yourself.

To bad it won't work for sections. Trying to get the last 10 added items from the library and I am currently making a request for each section in the library sorted by added date and max 10 hits. That list then needs to be sorted by added date to actually get the last 10 added items. It is a little bit to slow...

---

<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:** [February 18, 2014, 10:56pm UTC](https://forums.plex.tv/t/api-get-items-for-multiple-sections/57833/4 "2014-02-18T22:56:48Z")

</div>

> Actually the first one works, try it yourself.

Wow...And will surely do, and if confirmed, then okay to add it here:

[https://forums.plex.tv/topic/87348-undocumented-functionality-and-tips-tricks/](https://forums.plex.tv/topic/87348-undocumented-functionality-and-tips-tricks/) ?

/Tommy

---

<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, 1:20am UTC](https://forums.plex.tv/t/api-get-items-for-multiple-sections/57833/5 "2019-12-21T01:20:53Z")

</div>

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