<!--
{
  "availability" : [

  ],
  "documentType" : "symbol",
  "framework" : "iTunesLibrary",
  "identifier" : "/documentation/iTunesLibrary",
  "metadataVersion" : "0.1.0",
  "role" : "Framework",
  "symbol" : {
    "kind" : "Framework",
    "modules" : [
      "iTunes Library"
    ],
    "preciseIdentifier" : "iTunesLibrary"
  },
  "title" : "iTunes Library"
}
-->

# iTunes Library

Retrieve the properties of the media in the user’s iTunes library.

## Overview

With this framework, you can retrieve media information, such as track and playlist metadata, directly from the user’s iTunes library, eliminating the need to query the iTunes XML file.

To use this framework, create an [`ITLibrary`](/documentation/iTunesLibrary/ITLibrary) object by calling the [`libraryWithAPIVersion:error:`](/documentation/iTunesLibrary/ITLibrary/libraryWithAPIVersion:error:) class method. You can interrogate the instance that returns to obtain its properties and the properties of its media items. For example:

> Important:
> You must code sign your app to retrieve information with this framework, and iTunes library access is read-only. This framework is available to users with iTunes 11 or later.

## Topics

### Essentials

[`ITLibrary`](/documentation/iTunesLibrary/ITLibrary)

This class serves as the entry point to the iTunesLibrary framework.

### Albums and Playlists

[`ITLibAlbum`](/documentation/iTunesLibrary/ITLibAlbum)

This class provides information about an album in the iTunes library.

[`ITLibPlaylist`](/documentation/iTunesLibrary/ITLibPlaylist)

This class describes a playlist in the iTunes library.

### Media Items

[`ITLibMediaItem`](/documentation/iTunesLibrary/ITLibMediaItem)

This class describes a media item (a track) in the iTunes library, such as a song, a video, or a podcast.

[`ITLibMediaEntity`](/documentation/iTunesLibrary/ITLibMediaEntity)

This class describes a media entity, which can be a media item, such as an audio track.

[`ITLibArtist`](/documentation/iTunesLibrary/ITLibArtist)

This class represents an artist, such as the performer of a song.

[`ITLibArtwork`](/documentation/iTunesLibrary/ITLibArtwork)

This class represents the artwork for a media item.

[`ITLibMediaItemVideoInfo`](/documentation/iTunesLibrary/ITLibMediaItemVideoInfo)

This class encapsulates the video information of a video media item.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)