-->

How to find Explicit Songs on Apple Music User Pla

2019-08-23 22:32发布

问题:

I am fetching all Apple Music Playlists and Track lists into my App using AppleMusicAPI (Refers https://developer.apple.com/documentation/applemusicapi). Also In my App's Setting screen I have added a UISwitch to allow Explicit contents of Apple Music.

I can able to get Explicit songs in below Search API and Top Tracks API using attributes.contentRating JSON key.

Top Charts API: https://api.music.apple.com/v1/catalog/us/charts?limit=20&offset=0&types=songs

Search API: https://api.music.apple.com/v1/catalog/us/search?limit=20&offset=0&term=Ana&types=songs

Can anyone suggest me how can I get to know wether the song is Explicit or not for UserPlaylist songs? Thank you!