If you’re an Apple Music subscriber, Apple makes it easy to create an embeddable playlist preview widget via its Apple Music website. All it takes is the share URL from the playlist of your choice, and the widget generator does the rest of the heavy lifting.

The widget is limited to 30-second previews of all of the songs included in the selected playlist. At the bottom of the widget, you’ll find a link to Apple Music, where playlist listeners who aren’t yet subscribers can sign up for a free 3-month trial subscription.

How to create an embeddable Apple Music playlist widget

Step 1: Copy the share URL of the playlist in iTunes, or via the Music app on an iOS device.

Step 2: Visit the Apple Music playlist preview widget generator, and paste the URL into the input box. The widget should be automatically generated, populating all of the songs from the playlist that appear on Apple Music. It’ll also populate the name of the playlist, its author and a playlist description.

Copy Playlist URL Apple Music

Step 3: Find the embed code beneath the widget to embed the playlist preview in a location of your choosing.

Apple Music Playlist Preview Widget 2

Note: You can also use the Height and Width parameters above the input box on the widget creation page to resize the widget. Songs in the playlist not featured in Apple Music will be omitted.

Here is an example of an Apple Music playlist preview widget that I recently created. Each track plays for 30-seconds. Songs will automatically skip to the next track on desktop browsers. Apple Music subscribers can click the Apple Music logo or the playlist name to load the full playlist in iTunes or the Music app without time restrictions.

The widgets, being previews, aren’t quite as robust as the widgets that Spotify makes available, but this is a good start. The obvious aim of such a preview widget is to convert listeners to trial subscribers, and then convert trial subscribers into paid subscribers after the three month preview window.

You can follow iPhoneFirmware.com on Twitter or join our Facebook page to keep yourself updated on all the latest from Apple and the Web.