iTunes Library

RSS for tag

Retrieve the properties of the media in an iTunes library.

Posts under iTunes Library tag

51 Posts

Post

Replies

Boosts

Views

Activity

iTunes API for fetching appletv applications.
Hi Team,   We were using the API, ' https://itunes.apple.com/search?entity=tvSoftware&term=digital+signa&limit=10&country=US' for searching and fetching apple TV applications within our product. But we found that the API response is null currently. When going through iTunes Search API: Constructing Searches, we found that 'tvSoftware' is no longer an entity.   Could you please let me know what's the 'entity' value that we need to use for fetching Apple TV applications?
0
0
228
May ’26
Cannot load iTunesLibrary on macOS Sequoia 15.1
I use the iTunes Library framework in one of my apps, starting with macOS Sequoia 15.1 i can't create the ITLibrary object anymore with the following error: Connection to amplibraryd was interrupted. clientName:iTunesLibrary(ITLibraryLoader) Error connecting to the server via proxy object Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.amp.library.framework" UserInfo={NSDebugDescription=connection to service named com.apple.amp.library.framework} configure failed: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.amp.library.framework" UserInfo={NSDebugDescription=connection to service named com.apple.amp.library.framework} I created a new sandboxed macOS app, added the music folder read permission and it reproduced the error: import SwiftUI import iTunesLibrary @main struct ITLibraryLoaderApp: App { var body: some Scene { WindowGroup { ContentView() } } } struct ContentView: View { var body: some View { Button("Load ITLibrary") { loadLibrary() } } func loadLibrary() { do { let _ = try ITLibrary(apiVersion: "1.0", options: .none) } catch { print(error) } } } I restarted my developer machine and the music app with no luck.
3
0
1.1k
Jan ’25
iTunes api lookup by isbn
Hello, I have a question related to the public iTunes Search API: https://performance-partners.apple.com/search-api Do all the books have an ISBN associated? I used to do queries like: https://itunes.apple.com/lookup?isbn=9781501110368. That book is available on Apple Books here: https://books.apple.com/us/book/it-ends-with-us/id1052928247 and the endpoint above returns informations about it. However for newer books like: https://itunes.apple.com/lookup?isbn=9781419766954 https://itunes.apple.com/lookup?isbn=9781250288776 Nothing comes back anymore even if those books exist there. The url's for the 2 above are: https://books.apple.com/us/book/hot-mess-diary-of-a-wimpy-kid-19/id6476554491 https://books.apple.com/mt/book/the-mirror/id6474420363 For newer books starting the beginning of September 2024, nothing seems to come back when you search them by ISBN. Thanks
0
0
516
Dec ’24
Getting isAuthenticated false when trying to retrieve book for india
url: https://uclient-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?version=2&id=1515995528&p=mdm-lockup&caller=MDM&platform=enterprisestore&cc=IN Response : { "results": {}, "version": 2, "isAuthenticated": false, "meta": { "storefront": { "id": "143467", "cc": "IN" }, "language": { "tag": "en-gb" } } } Any solution for this?
0
0
373
Nov ’24
StoreKit in IOS 18
I have has a the Storekit working in my application previously. It uses the a iTunes songs ID and allows the user to purchase the track from iTunes within the app using a View. its been fine in IOS 17 but since the update to 18 Ive not been able to get this to work. the iTunes panel loads within the app and shows the track I wish to purchase. on clicking purchase I login with my Apple ID password. that then spins for a few seconds then asks to do the purchase again. Can you please advise. code below print ("Store ID + \(self.appId)") let storeProductViewController = SKStoreProductViewController() storeProductViewController.delegate = self let parameters = [SKStoreProductParameterITunesItemIdentifier: self.appId] storeProductViewController.loadProduct(withParameters: parameters) { status, error -> Void in if status { self.present(storeProductViewController, animated: false, completion: nil) print("success: \(status.description)") } else { if let error = error { print("Error: \(error.localizedDescription)") } } } DispatchQueue.main.async { self.isPresentStoreProduct.wrappedValue = false } }
1
1
952
Nov ’24
Apple RSS / AX iTunes not working / expired certificate
Hello there, Has anyone else experienced a problem displaying fresh RSS feeds from this source? https://www.apple.com/rss/ Almost every feed is linked to ax.itunes.apple.com, which is not considered safe by my actual browser. For example, this feed: https://ax.itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/justadded/limit=10/rss.xml. It seems like a certificate problem. Thanks for the reply
0
0
520
Nov ’24
screenshot for iPhone home screen
When having my iPhone connected to my Mac via USB cable, how can I take a screenshot of the home screen from a swiftUI app? I tried using libimobiledevice (idevicescreenshot) but that requires install the developer disk image. When looking for it, it turns that my Xcode (version 15.4) only provides that kind of images up to iOS 16.4. I have looked everywhere on this site, but couldn't fine the required image or otherwise, how to take the screenshot I need. Thanks!
3
0
1.1k
Jul ’24
Can't read MPMediaItem on iOS App running with Catalyst
Hello, We've an iOS application that can be launched on macOS (with the "designed for iPhone" available with Catalyst). This application request authorization on MPMediaLibrary and play MPMediaItem with an audio player. After accepted, the authorization status is well flagged as .authorized I can browse all MPMediaItem without issue and display them in my app. But, when it comes the time to convert the MPMediaItem file's URL in AVAudioFile with: AVAudioFile(forReading: fileURL) We got 2 warnings in the console: ExtAudioFile.cpp:211 about to throw -54: open audio file AVAEInternal.h:109 [AVAudioFile.mm:135:AVAudioFileImpl: (ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)): error -54 We finally get an exception with this error: Error Domain=com.apple.coreaudio.avfaudio Code=-54 "(null)" UserInfo={failed call=ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)} This working perfectly on iOS and iPadOS, but with Catalyst we always got this error whatever the audio (from iTunes library) we try to play. Why do we have this permission issue only on macOS ? There is something different to do to get permission on macOS ? thanks !
0
0
797
Mar ’24
What APIs can be used to modify the Music.app library?
Hi everyone, I'd like to write a one-off app to make some modifications to my own Music.app (aka iTunes) library. This is for content that I have stored using iTunes Match, so it's effectively a library that dates back to the iTunes years. However, from what I can see, APIs with modification support are essentially... nothing? I can get everything ready in a simple Swift command-line app using https://developer.apple.com/documentation/ituneslibrary, however I can't actually write any changes. It seems that the only modification solution available is actually still AppleScript. Everything there still works, and in theory I could do the majority of the logic using iTunesLibrary and then do the modifications with AppleScript via NSAppleScript. In order to do this, I just need an identifier that I can use to correlate items from each API. There is: iTunesLibrary: https://developer.apple.com/documentation/ituneslibrary/itlibmediaentity/1809728-persistentid AppleScript Item object for AppleScript has a "persistent ID" property which sounds like the same thing There's also an id property However, in my experiments it didn't appear that any of these correlated together Of course, I could possibly re-write the whole thing using AppleScript, but that would be slow and painful! So, posting here to see if anyone has any idea how or even if this can be done. Hope someone can help! Thanks in advance
0
0
808
Feb ’24
iTunes lookup endpoint caching - old results
I just encountered a problem, that my app was released to the App Store, the update was already visible in the App Store, but the request to https://itunes.apple.com/lookup?bundleId=XXX&country=XXX was still returning previous app version information. After checking the server response, I realized that one of the response headers shows that the response is cached on the Apple server and that's the reason. X-Cache: TCP_MEM_HIT from a104-85-249-20.deploy.akamaitechnologies.com (AkamaiGHost/11.1.3-49328623) (-) Cache-Control: max-age=12989 . The question is: Can I safely use cache-busting solution to always get the latest results? It could be done like: https://itunes.apple.com/lookup?bundleId=XXX&country=XXX&t=<current_timestamp> I tested it and it works with the random timestamp, I always get not cached results.
1
1
1.4k
Oct ’23
Can no longer access iTunes music purchases with AVAudioFile with iOS 17
Prior to iOS 17, I used AVAudioFile to open (for reading) the assetURL of MPMediaItem for songs that the user purchased through iTunes Store. With the iOS 17 Beta, this seems no longer possible as AVAudioFile throws this: ExtAudioFile.cpp:211 about to throw -54: open audio file AVAEInternal.h:109 [AVAudioFile.mm:135:AVAudioFileImpl: (ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)): error -54 Also can't copy the url to Documents directory because I get this: The file “item.m4a” couldn’t be opened because URL type ipod-library isn’t supported. This seems to be affecting other apps on the App Store besides mine, and it will reflect very badly on my app if this makes into the final iOS 17 because I have encouraged users to buy songs on iTunes Store to use with my app. Now there seems like there is no way to access them. Is this a known bug, or is there some type of workaround?
6
1
1.9k
Sep ’23
Backup of iOS Devices
Hi all, Does anyone know which protocols are used to perform a backup of iOS the device? For example: with iTunes I can perform a backup of my iPhone What protocols is iTunes using to comunicate with the device. I'm using a Linux OS and would like to perform a backup of my iPhone local.
0
0
630
Sep ’23
Extract media information from Apple TV app media (movies and series)
Hi! Is it possible to access metadata information for the personal movie and tv show library? I mean information like the iTunes Store ID, languages, subtitles, has iTunes Extras and maybe even IMDb and TMDB IDs for each title, etc. Is there an API for that like the Apple Music API? I'm no full member of the Apple Developer Program yet, but I'd be very interested if access like with the Apple Music API would also be available for movies and tv shows.
0
0
839
Jun ’23
MPMediaLibrary.default().addItem broken in macOS 13.4 / Catalyst
The following line of code worked fine in macOS 13.3 / Catalyst: try await MPMediaLibrary.default().addItem(withProductID: "1678639572") Since the 13.4 update it now throws an error: The operation couldn’t be completed. (MPErrorDomain error 11.) Although the Apple Music track with catalog Id 1678639572 does seem to get added to the library regardless. MPError.errorCode 11 is an undocumented value. Can someone please advise what error code 11 actually means, and if there's a workaround? I've raised this as feedback id FB12196635.
0
0
1k
May ’23
Export as M3U not well formated
Hi! While exporting a playlist as M3U or M3U8 there's an issue with the format of the #EXTINF line. According to M3U format (https://en.wikipedia.org/wiki/M3U), the artist name should be first and then the song name. Currently iTunes, while doing an export, is setting the title of the song and then the artist name. This should be fixed.
0
0
793
May ’23
iTunes API for fetching appletv applications.
Hi Team,   We were using the API, ' https://itunes.apple.com/search?entity=tvSoftware&term=digital+signa&limit=10&country=US' for searching and fetching apple TV applications within our product. But we found that the API response is null currently. When going through iTunes Search API: Constructing Searches, we found that 'tvSoftware' is no longer an entity.   Could you please let me know what's the 'entity' value that we need to use for fetching Apple TV applications?
Replies
0
Boosts
0
Views
228
Activity
May ’26
I am interested to login to itunes connect to start a Pocast, but my account is not enabled
Hello, I tried to login to "Itunes connect", but trying to connect I can see this error: Your Apple ID is not enabled for iTunes Connect. I am not a developer I want to simply upload episodes for a podcast. On the forums there are many threads about this problem but with no solutions can someone help me to fix it?
Replies
1
Boosts
0
Views
347
Activity
Mar ’25
Cannot load iTunesLibrary on macOS Sequoia 15.1
I use the iTunes Library framework in one of my apps, starting with macOS Sequoia 15.1 i can't create the ITLibrary object anymore with the following error: Connection to amplibraryd was interrupted. clientName:iTunesLibrary(ITLibraryLoader) Error connecting to the server via proxy object Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.amp.library.framework" UserInfo={NSDebugDescription=connection to service named com.apple.amp.library.framework} configure failed: Error Domain=NSCocoaErrorDomain Code=4097 "connection to service named com.apple.amp.library.framework" UserInfo={NSDebugDescription=connection to service named com.apple.amp.library.framework} I created a new sandboxed macOS app, added the music folder read permission and it reproduced the error: import SwiftUI import iTunesLibrary @main struct ITLibraryLoaderApp: App { var body: some Scene { WindowGroup { ContentView() } } } struct ContentView: View { var body: some View { Button("Load ITLibrary") { loadLibrary() } } func loadLibrary() { do { let _ = try ITLibrary(apiVersion: "1.0", options: .none) } catch { print(error) } } } I restarted my developer machine and the music app with no luck.
Replies
3
Boosts
0
Views
1.1k
Activity
Jan ’25
iTunes api lookup by isbn
Hello, I have a question related to the public iTunes Search API: https://performance-partners.apple.com/search-api Do all the books have an ISBN associated? I used to do queries like: https://itunes.apple.com/lookup?isbn=9781501110368. That book is available on Apple Books here: https://books.apple.com/us/book/it-ends-with-us/id1052928247 and the endpoint above returns informations about it. However for newer books like: https://itunes.apple.com/lookup?isbn=9781419766954 https://itunes.apple.com/lookup?isbn=9781250288776 Nothing comes back anymore even if those books exist there. The url's for the 2 above are: https://books.apple.com/us/book/hot-mess-diary-of-a-wimpy-kid-19/id6476554491 https://books.apple.com/mt/book/the-mirror/id6474420363 For newer books starting the beginning of September 2024, nothing seems to come back when you search them by ISBN. Thanks
Replies
0
Boosts
0
Views
516
Activity
Dec ’24
https://uclient-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?version=2&id=1515995528&p=mdm-lockup&caller=MDM&platform=enterprisestore&cc=IN
https://uclient-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?version=2&id=1515995528&p=mdm-lockup&caller=MDM&platform=enterprisestore&cc=IN
Replies
0
Boosts
0
Views
435
Activity
Nov ’24
Getting isAuthenticated false when trying to retrieve book for india
url: https://uclient-api.itunes.apple.com/WebObjects/MZStorePlatform.woa/wa/lookup?version=2&id=1515995528&p=mdm-lockup&caller=MDM&platform=enterprisestore&cc=IN Response : { "results": {}, "version": 2, "isAuthenticated": false, "meta": { "storefront": { "id": "143467", "cc": "IN" }, "language": { "tag": "en-gb" } } } Any solution for this?
Replies
0
Boosts
0
Views
373
Activity
Nov ’24
StoreKit in IOS 18
I have has a the Storekit working in my application previously. It uses the a iTunes songs ID and allows the user to purchase the track from iTunes within the app using a View. its been fine in IOS 17 but since the update to 18 Ive not been able to get this to work. the iTunes panel loads within the app and shows the track I wish to purchase. on clicking purchase I login with my Apple ID password. that then spins for a few seconds then asks to do the purchase again. Can you please advise. code below print ("Store ID + \(self.appId)") let storeProductViewController = SKStoreProductViewController() storeProductViewController.delegate = self let parameters = [SKStoreProductParameterITunesItemIdentifier: self.appId] storeProductViewController.loadProduct(withParameters: parameters) { status, error -> Void in if status { self.present(storeProductViewController, animated: false, completion: nil) print("success: \(status.description)") } else { if let error = error { print("Error: \(error.localizedDescription)") } } } DispatchQueue.main.async { self.isPresentStoreProduct.wrappedValue = false } }
Replies
1
Boosts
1
Views
952
Activity
Nov ’24
Apple RSS / AX iTunes not working / expired certificate
Hello there, Has anyone else experienced a problem displaying fresh RSS feeds from this source? https://www.apple.com/rss/ Almost every feed is linked to ax.itunes.apple.com, which is not considered safe by my actual browser. For example, this feed: https://ax.itunes.apple.com/WebObjects/MZStore.woa/wpa/MRSS/justadded/limit=10/rss.xml. It seems like a certificate problem. Thanks for the reply
Replies
0
Boosts
0
Views
520
Activity
Nov ’24
screenshot for iPhone home screen
When having my iPhone connected to my Mac via USB cable, how can I take a screenshot of the home screen from a swiftUI app? I tried using libimobiledevice (idevicescreenshot) but that requires install the developer disk image. When looking for it, it turns that my Xcode (version 15.4) only provides that kind of images up to iOS 16.4. I have looked everywhere on this site, but couldn't fine the required image or otherwise, how to take the screenshot I need. Thanks!
Replies
3
Boosts
0
Views
1.1k
Activity
Jul ’24
Can't read MPMediaItem on iOS App running with Catalyst
Hello, We've an iOS application that can be launched on macOS (with the "designed for iPhone" available with Catalyst). This application request authorization on MPMediaLibrary and play MPMediaItem with an audio player. After accepted, the authorization status is well flagged as .authorized I can browse all MPMediaItem without issue and display them in my app. But, when it comes the time to convert the MPMediaItem file's URL in AVAudioFile with: AVAudioFile(forReading: fileURL) We got 2 warnings in the console: ExtAudioFile.cpp:211 about to throw -54: open audio file AVAEInternal.h:109 [AVAudioFile.mm:135:AVAudioFileImpl: (ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)): error -54 We finally get an exception with this error: Error Domain=com.apple.coreaudio.avfaudio Code=-54 "(null)" UserInfo={failed call=ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)} This working perfectly on iOS and iPadOS, but with Catalyst we always got this error whatever the audio (from iTunes library) we try to play. Why do we have this permission issue only on macOS ? There is something different to do to get permission on macOS ? thanks !
Replies
0
Boosts
0
Views
797
Activity
Mar ’24
What APIs can be used to modify the Music.app library?
Hi everyone, I'd like to write a one-off app to make some modifications to my own Music.app (aka iTunes) library. This is for content that I have stored using iTunes Match, so it's effectively a library that dates back to the iTunes years. However, from what I can see, APIs with modification support are essentially... nothing? I can get everything ready in a simple Swift command-line app using https://developer.apple.com/documentation/ituneslibrary, however I can't actually write any changes. It seems that the only modification solution available is actually still AppleScript. Everything there still works, and in theory I could do the majority of the logic using iTunesLibrary and then do the modifications with AppleScript via NSAppleScript. In order to do this, I just need an identifier that I can use to correlate items from each API. There is: iTunesLibrary: https://developer.apple.com/documentation/ituneslibrary/itlibmediaentity/1809728-persistentid AppleScript Item object for AppleScript has a "persistent ID" property which sounds like the same thing There's also an id property However, in my experiments it didn't appear that any of these correlated together Of course, I could possibly re-write the whole thing using AppleScript, but that would be slow and painful! So, posting here to see if anyone has any idea how or even if this can be done. Hope someone can help! Thanks in advance
Replies
0
Boosts
0
Views
808
Activity
Feb ’24
Please solve the problem of error 1110
Hello everyone, I hope today is a happy day. My iPhone is still not working properly. I hope the Apple software team can see this message. Thank you. #1110 #error1110
Replies
0
Boosts
0
Views
825
Activity
Jan ’24
Lookup Episodes within Podcasts Using iTunes API, reach the limit
Hi there, I am trying to retrieve over 450+ urls of podcast episodes by using `api_url = f'https://itunes.apple.com/lookup?id={podcast_id}&entity=podcastEpisode&limit=200'. Even I modified the limit, I can only get 200 items. Anyone has an idea about this issue? Any resonse is appreciated!! Best!
Replies
0
Boosts
0
Views
801
Activity
Nov ’23
Apple Music COM Interface like iTunes for Windows?
I know that I can use the iTunes COM Interface for Windows to control the app or get info of the currently playing track etc. Now I was wondering if the new Apple Music Client for Windows also has this functionality? Sadly I couldn't find any documentation online.
Replies
2
Boosts
1
Views
961
Activity
Nov ’23
iTunes lookup endpoint caching - old results
I just encountered a problem, that my app was released to the App Store, the update was already visible in the App Store, but the request to https://itunes.apple.com/lookup?bundleId=XXX&country=XXX was still returning previous app version information. After checking the server response, I realized that one of the response headers shows that the response is cached on the Apple server and that's the reason. X-Cache: TCP_MEM_HIT from a104-85-249-20.deploy.akamaitechnologies.com (AkamaiGHost/11.1.3-49328623) (-) Cache-Control: max-age=12989 . The question is: Can I safely use cache-busting solution to always get the latest results? It could be done like: https://itunes.apple.com/lookup?bundleId=XXX&country=XXX&t=<current_timestamp> I tested it and it works with the random timestamp, I always get not cached results.
Replies
1
Boosts
1
Views
1.4k
Activity
Oct ’23
Can no longer access iTunes music purchases with AVAudioFile with iOS 17
Prior to iOS 17, I used AVAudioFile to open (for reading) the assetURL of MPMediaItem for songs that the user purchased through iTunes Store. With the iOS 17 Beta, this seems no longer possible as AVAudioFile throws this: ExtAudioFile.cpp:211 about to throw -54: open audio file AVAEInternal.h:109 [AVAudioFile.mm:135:AVAudioFileImpl: (ExtAudioFileOpenURL((CFURLRef)fileURL, &_extAudioFile)): error -54 Also can't copy the url to Documents directory because I get this: The file “item.m4a” couldn’t be opened because URL type ipod-library isn’t supported. This seems to be affecting other apps on the App Store besides mine, and it will reflect very badly on my app if this makes into the final iOS 17 because I have encouraged users to buy songs on iTunes Store to use with my app. Now there seems like there is no way to access them. Is this a known bug, or is there some type of workaround?
Replies
6
Boosts
1
Views
1.9k
Activity
Sep ’23
Backup of iOS Devices
Hi all, Does anyone know which protocols are used to perform a backup of iOS the device? For example: with iTunes I can perform a backup of my iPhone What protocols is iTunes using to comunicate with the device. I'm using a Linux OS and would like to perform a backup of my iPhone local.
Replies
0
Boosts
0
Views
630
Activity
Sep ’23
Extract media information from Apple TV app media (movies and series)
Hi! Is it possible to access metadata information for the personal movie and tv show library? I mean information like the iTunes Store ID, languages, subtitles, has iTunes Extras and maybe even IMDb and TMDB IDs for each title, etc. Is there an API for that like the Apple Music API? I'm no full member of the Apple Developer Program yet, but I'd be very interested if access like with the Apple Music API would also be available for movies and tv shows.
Replies
0
Boosts
0
Views
839
Activity
Jun ’23
MPMediaLibrary.default().addItem broken in macOS 13.4 / Catalyst
The following line of code worked fine in macOS 13.3 / Catalyst: try await MPMediaLibrary.default().addItem(withProductID: "1678639572") Since the 13.4 update it now throws an error: The operation couldn’t be completed. (MPErrorDomain error 11.) Although the Apple Music track with catalog Id 1678639572 does seem to get added to the library regardless. MPError.errorCode 11 is an undocumented value. Can someone please advise what error code 11 actually means, and if there's a workaround? I've raised this as feedback id FB12196635.
Replies
0
Boosts
0
Views
1k
Activity
May ’23
Export as M3U not well formated
Hi! While exporting a playlist as M3U or M3U8 there's an issue with the format of the #EXTINF line. According to M3U format (https://en.wikipedia.org/wiki/M3U), the artist name should be first and then the song name. Currently iTunes, while doing an export, is setting the title of the song and then the artist name. This should be fixed.
Replies
0
Boosts
0
Views
793
Activity
May ’23