Questions tagged [apple-music]

Apple Music is a music streaming service created by Apple Inc.

Apple Music is a music streaming service created by Apple Inc. Users can listen on-demand to available tracks or curated playlists. The service also includes Internet radio stations.

Use this tag for questions regarding Apple Music and its APIs. For general Cocoa or Cocoa Touch API questions, use the and tags respectively. For language questions, use the or tags.

196 questions
2
votes
1 answer

Apple Music API getting 403 'Forbidden' when trying to fetch recent tracks

Hey there people of the great world! I am attempting to retrieve all the recent tracks from the Apple Music API using the following HTTP request: static let AMRecentTracks = "https://api.music.apple.com/v1/me/recent/played/tracks" Shamefully I keep…
JeanDArc
  • 53
  • 4
2
votes
1 answer

Converting Spotify Link (or any music streaming service link) to another streaming service link (ex. Apple Music, Amazon, Tidal, SoundCloud, Youtube)?

I have been trying to figure out how to convert a music streaming service link to all the other ones that are given. In the pool, I have Spotify, Apple Music, Amazon, YouTube, SoundCloud, Tidal, and YouTube Music. The user would input a link to a…
2
votes
0 answers

Authorize to Apple Music via Facebook Messenger In-App Browser

We're using https://developer.apple.com/documentation/musickitjs to authorize Apple music, on Desktop it opens a new window to authorize to apple. But It's NOT working on mobile In-App Browser (both iOS & Android), probably because on mobile…
Ashish Chaturvedi
  • 1,352
  • 3
  • 13
  • 37
2
votes
1 answer

Can I get a user's display name from Apple MusicKit?

I've been going through Apple's (awful) documentation for both MusicKit, the API and MusicKit JS, but I haven't been able to find an endpoint or method to retrieve a user's display name, email or any other information that I can use to identify the…
Niels Kersic
  • 830
  • 1
  • 9
  • 24
2
votes
0 answers

Make use of recently played songs endpoint on Apple Music

I would like to make use of the "Get Recently Played Resources" endpoint of the Apple Music API. More specifically, I would like to keep track of how often a user has listened to a specific song/album. As of right now, I am not quite convinced if…
linus_hologram
  • 1,595
  • 13
  • 38
2
votes
0 answers

applicationQueuePlayer establishConnectionIfNeeded timeout

Trying to play apple music with MPMusicPlayerController.applicationMusicPlayer it's showing error <[SDKPlayback] applicationQueuePlayer _establishConnectionIfNeeded timeout [ping did not pong]> on iOS 13.4 but same code run on iOS 13.3 working…
2
votes
1 answer

How to create Apple MediaPlayerController on Android MusicKit

I am creating an Android app with uses the Apple Music SDK. When creating the MediaPlayerController I get the following error: No implementation found for int com.apple.android.music.foothill.javanative.FootHillConfig.config(java.lang.String) With…
2
votes
1 answer

Issue Playing Apple Music Song with playbackStoreID

I am trying to play an individual apple Music song using a playbackStore Id but whenever I attempt to play it I get this error The user is properly authenticated and the playback store id seems to be valid. I was wondering if anyone else is having…
2
votes
0 answers

401 - Unauthorized Error is coming in apple music api after generating the developer token

I am trying to access API of Apple Music API (https://developer.apple.com/documentation/applemusicapi). After creating the JWT developer token, when i try to access the API, An error of 401 - Unauthorized occurs. I am doing it in the following way…
rajat_bt
  • 21
  • 3
2
votes
2 answers

How do I create a personalized Music User Token in Apple Music?

I'm attempting to access my personal Apple Music library using the MusicKit API. I'm building a Python web application that uses it. I wasn't sure how I could generate a personalized Apple Music User Token. The process appears to be a tad more…
Mukul Ram
  • 356
  • 4
  • 14
2
votes
1 answer

How to access the "Sort as" field of MPMediaItem?

iTunes has a way of sorting the songs that the ones with title starts with "a" or "the" are recognized without it. Is there a way to access this "sort title"? I am pretty sure Apple Music does this and I guess it can be accessed by let item =…
Adam
  • 1,776
  • 1
  • 17
  • 28
2
votes
0 answers

How to Fetch Listened Apple Music Songs

I am able to fetch recently played songs from Apple Music using MPMediaQuery and MPMediaItem. But this is giving me songs list which are locally downloaded in my music app. I'm not able to fetch songs those which are not downloaded and those I am…
iGatiTech
  • 2,306
  • 1
  • 21
  • 45
2
votes
1 answer

Apple MusicKit - Playlist creation and editing via the Apple Music API

I have recently been using the new Apple MusicKit functionality. I've got a Developer Token and Music-User-Token and I can run the test code provided by Apple. I want to try and do a few more things but the documentation doesn't seem to cover…
scgough
  • 5,099
  • 3
  • 30
  • 48
2
votes
0 answers

Unable to play the song on Apple Music using MPMusicPlayerController

I have a requirement where I need to search and play the songs within the application, so I am using the iTunes Search API in my application for playing the songs but it unable to play it. Please find the request and response parameter from the…
Ramkrishna Sharma
  • 6,961
  • 3
  • 42
  • 51
2
votes
1 answer

Get user Apple Music playlists from an iOS application

From my iOS app, I need to get all the user playlist available in the Apple Music application. Is it possible without the MusicKit SDK (prior iOS11) ?
fvisticot
  • 7,936
  • 14
  • 49
  • 79