Media Assigned To Layout API

I’m looking for the best way via Xibo APIs to identify media assigned to each layout for a given folder id or array of folder ids. Ideas?

Like this? Swagger UI

You will need to retrieve all the media in the desired folders and then search for the media one by one.

https://xibosignage.com/manual/api/#/library/librarySearch

I was able to solve by using the Search Layout endpoint (GET /library) and including the the option below in the query.

  embed: regions,playlists,widgets

The return payload contains all the mediaIds in each of the layouts that matched the other query options.