Question regarding API & Feeds

I’m trying to build a specialized iOS shortcut using the Channels API. That said, is there a way to query all of the items in a particular playlist?

My objective is to query all of the recordings while excluding specific titles. I was able to create a playlist which does exactly this using smart rules, however I don’t see any way to query it using the API…

1 Like

You are correct, Playlists and Collections are not available in the API right now.

We’ll look at it and can probably get it added in next week.

That will be so helpful. Channels is always getting better :grinning:

1 Like

Playlists (and Library Collections) have been added to the public API as of the latest pre-release.

You can read docs on them here: Channels Support - Server API: Playlists

1 Like

Thanks so much, it works like a charm. One question, I noticed that when there are no items in a playlist, the “content_count” key is not reported which causes me to have to use some extra logic in my code. Just thought I’d mention it.

Thanks again as this is a huge help for me…:grinning:

Yes, null values are omitted from the api responses. That counts for 0.

It just shows my inexperience :grinning:. Thanks again!