API : Sections and media details

Sounds like a simple question but I can’t find the answer :frowning:

Is it possible via the sections API endpoint to get full cast / extra details with some hidden params?

http://xxxxx:32400/library/sections/1/all does not return extras even with includeExtras=1 and for cast returns things like

 "Role": [
          {
            "tag": "Milla Jovovich"
          },
          {
            "tag": "Angus Macfadyen"
          },
          {
            "tag": "Stephen Dorff"
          }
        ]

But it lacks ids, role and thumbs.

I know I can get those via library/metadata but this require 1 call per media and I’d like to avoid that for obvious performance reasons.

AFAIK, the only way to get it is via an additional call :frowning:

And use that for ExportTools

Thanks.

Not really a good news this triggers a tons of calls for large libraries.

Yes, but alternative would be draining the PMS with one huge gigantic call

Well not really you can page the query with X-Plex-Container-Start and X-Plex-Container-Size this works perfectly fine for Emby and Kodi :slight_smile:

HTTP have huge overhead limiting calls is better for battery / cpu on phone & tablet devices.

True, and use paging as well, but reply was based on what you showed as the call :wink:

And you can also do this:

``?excludeFields=field1,…,fieldN ?excludeElements=element1,…,elementN`

Excludable child elements:

Actor
Collection
Country
Director
Genre
Label
Mood
Part
Producer
Similar
Writer

Excludable child element fields:

file
summary
`tagline``

Nice to know even if my need is more includeFields :slight_smile: (BTW it’s Role and not Actor if there’s a source Wiki to update)

Let’s hope one day API is expanded and documented :slight_smile: