Cookies disclaimer

I agree Our site saves small pieces of text information (cookies) on your device in order to deliver better content and for statistical purposes. You can disable the usage of cookies by changing the settings of your browser. By browsing our website without changing the browser settings you grant us permission to store that information on your device.

Music

Schema.org - Music

Contents:

Structured Data – Music

This article looks specifically at music and how using microdata to mark-up tracks and playlists on a website, for broader information on Schema.org mark-up code please follow the link. For extensive and definitive information on Schema.org please follow this link.

Please follow the links below to see examples and explanations of how to implement Schema.org code for:

The Benefits

The image below illustrates how music can appear in Search Engine Result Pages (SERPs) after having been marked-up. As you can see, and this is indicative of all marked up SERP listings, this is a more comprehensive listing providing the user with more accurate and useful information with regards to the music they searched for.

The mark-up provides clickable links through to the most relevant pages on the site, along with track name, track length and artist name. What we see is a great deal of information relevant to the user and searcher intent.

Music Types

Music falls under the creative work category and has three main item types:

  • MusicRecording
  • MusicPlaylist
  • MusicAlbum

This article will provide you with examples of implementing microdata on all of the above item types. The wider creative work category contains items types such as (but not limited to) the below:

  • Answer
  • Article
  • Blog
  • Book
  • Clip
  • Episode
  • ExercisePlan
  • MediaObject
  • Movie
  • MusicPlaylist
  • MusicRecording
  • Painting
  • Photograph
  • Recipe
  • Review
  • Sculpture
  • Series
  • TVSeason
  • TVSeries

We cover some of the above item types in other articles within the FirstClick Knowledge Base.

Properties

There are a range of item properties that can be specified for music, some of these are mentioned above. In this article we look at the most commonly used properties and the most useful, many of these properties are applicable to the range of creative work item types in addition to music.


Property

Expected Type

Description

about

Thing

The subject matter of the content.

alternativeHeadline

Text

A secondary title of the CreativeWork.

audience

Audience

The intended audience of the item, i.e. the group for whom the item was created.

audio

AudioObject

An embedded audio object.

award

Text

An award won by this person or for this creative work. Supersedes awards.

citation

Text  or CreativeWork

 

A citation or reference to another creative work, such as another publication, web page, scholarly article, etc.

 

contentLocation

Place

The location of the content.

contentRating

Text

Official rating of a piece of content—for example: 'MPAA PG-13'.

contributor

Organization  or Person

 

A secondary contributor to the CreativeWork.

 

copyrightHolder

Organization  or Person

 

The party holding the legal copyright to the CreativeWork.

 

copyrightYear

Number

The year during which the claimed copyright for the CreativeWork was first asserted.

creator

Organization  or Person

 

The creator/author of this CreativeWork or UserComments. This is the same as the Author property for CreativeWork.

 

datePublished

Date

Date of first broadcast/publication.

duration

Duration 

The duration of the item (movie, audio recording, event, etc.) in ISO 8601 date format.

editor

Person

Specifies the Person who edited the CreativeWork.

genre

Text

Genre of the creative work

license

URL  or CreativeWork

 

A license document that applies to this content, typically indicated by URL.

 

offers

Offer

An offer to provide this item—for example, an offer to sell a product, rent the DVD of a movie, or give away tickets to an event.

publisher

Organization

The publisher of the creative work.

sourceOrganization

Organization

The Organization on whose behalf the creator was working.

thumbnailUrl

URL

A thumbnail image relevant to the Thing.

typicalAgeRange

Text

The typical expected age range, e.g. '7-9', '11-'.

description

Text

A short description of the item.

image

URL

URL of an image of the item.

name

Text

The name of the item.

url

URL

URL of the item.

Source: Schema.org

Implementation – MusicRecording

In the first example we show how to mark-up a music video with microdata:

<div itemscope itemtype="http://schema.org/MusicGroup">
<h1 itemprop="name">Eminem</h1></div>
<div itemprop="video" itemscope itemtype="http://schema.org/VideoObject">
  <h2>Video: <span itemprop="name">Interview with Eminem</span></h2>
  <meta itemprop="duration" content="T2M45S" />
  <meta itemprop="thumbnail" content="eminem-thumbnail.jpg" />
  <object ...>
    <param ...>
    <embed type="application/x-shockwave-flash" ...>
  </object>
  <span itemprop="description">Zane Low interviews Eminem in this rare and unaired interview</span>
</div>

Durations and time are set using the ISO_8601 Standard and hence need to be created in adherence to that standard. More information of ISO_8601 can be found by clicking the link.

In the above example we specify the following information to search engines:

  • Name
  • Video Name
  • Video Duration
  • Thumbnail image to show

However this data is not written as text on the webpage in this example, instead all the site visitor would see is the H1, the H2 and the video but not the additional data… This is usually visible within the video player but is obfuscated from Google.

In the next example we demonstrate how to implement microdata on a music track:
<h2>Eminem’s Tracks</h2>
<div itemprop="track" itemscope itemtype="http://schema.org/MusicRecording">
  <span itemprop="name">Stan</span>
  <meta itemprop="url" content ="http://www.example.com.au/eminem/stan.html">
  Length: <meta itemprop="duration" content="PT3M55S">3:55 -
  10,000,000 plays<meta itemprop="interactionCount" content="UserPlays:10000000" />
  <a href="http://www.example.com.au/eminem/stan-play.html" itemprop="audio">Play</a>
  <a href="http://www.example.com.au/eminem/stan-buy.html" itemprop="offers">Buy</a>
  From album: <a href=" http://www.example.com.au/eminem/marshall-mathers-lp.html"
    itemprop="inAlbum">Marshal Mathers LP</a>
</div>

In the above example we define the properties for an Eminem track called Stan from the Marshall Mathers LP. A visitor to this page would see the following text:

Eminem’s Tracks
Stan
3:55 - 10,000,000 plays
Play
Buy
From album: Marshal Mathers LP
Here we specify a range of criteria from the track name, length / duration, from the album the song was featured on.

Implementation – MusicPlaylist

In the next example we look at how to use microdata to mark-up a music playlist on a webpage:

<div itemscope itemtype="http://schema.org/MusicPlaylist">
  <span itemprop="name">Hip Hop Playlist</span>
  <meta itemprop="numTracks" content="5"/>
  <div itemprop="track" itemscope itemtype="http://schema.org/MusicRecording">
    1.<span itemprop="name">Stankonia</span> -
    <span itemprop="byArtist">Outcast</span>
    <meta content="Stankonia.html" itemprop="url" />
    <meta content="PT4M45S" itemprop="duration" />
    <meta content="Stankonia" itemprop="inAlbum" />
   </div>
  <div itemprop="track" itemscope itemtype="http://schema.org/MusicRecording">
    2.<span itemprop="name">Everything Is Everything</span> -
    <span itemprop="byArtist">Lauryn Hill</span>
    <meta content=" The-Miseducation-of-Lauryn-Hill" itemprop="url" />
    <meta content="PT3M32S" itemprop="duration" />
    <meta content="The Miseducation of Lauryn Hill" itemprop="inAlbum" />
  </div>
  <div itemprop="track" itemscope itemtype="http://schema.org/MusicRecording">
    3.<span itemprop="name">My Name Is...</span> -
    <span itemprop="byArtist">Eminem</span>
    <meta content="my-name-is.html" itemprop="url" />
    <meta content="PT4M13S" itemprop="duration" />
    <meta content="The Slim Shady LP" itemprop="inAlbum" />
 </div>
  <div itemprop="track" itemscope itemtype="http://schema.org/MusicRecording">
    4.<span itemprop="name">Changes</span> -
    <span itemprop="byArtist">2Pac Shakur</span>
    <meta content="changes.html" itemprop="url" />
    <meta content="PT3M12S" itemprop="duration" />
    <meta content="Greatest Hits" itemprop="inAlbum" />
  </div>
  <div itemprop="track" itemscope itemtype="http://schema.org/MusicRecording">
    5.<span itemprop="name">Juicy</span> -
    <span itemprop="byArtist">The Notorious B.I.G.</span>
    <meta content="juicy.html" itemprop="url" />
    <meta content="PT3M39S" itemprop="duration" />
    <meta content="Ready to Die" itemprop="inAlbum" />
  </div>
</div>

Implementation – MusicAlbum

In the next example we look at how to use microdata to mark-up a music album on a webpage:

<div itemscope itemtype="http://schema.org/MusicAlbum">
  <h1 itemprop="name">Only by the Night</h1>
  <meta content="/Kings-of-Leon/album/Only-by-the-Night" itemprop="url" />
  <img src="Only-by-the-Night.jpg" itemprop="image" />
  <meta content="11" itemprop="numTracks" />
  <meta content="Alt/Rock" itemprop="genre" />
  <h2 itemprop="byArtist" itemscope itemtype="http://schema.org/MusicGroup">
    <span itemprop="name">Kings of leon</span>
</div>

Raptor Tools!

Our range of SEO Tools include checking for and making specific implementation instructions for Schema.org on your site. Use Raptor to find out where you have used mark-up code, if its implemented correctly and where it is missing.

Sign Up For Early Access
& Earn a Chance to Win 1 Years Free Subscription!

What You Get...

There's no obligation to become a full member after your trial, but we think that once you've seen what's available, you'll want to join us.

We are in the process of building our software and are ramping up to launch the Technical Auditing component in early 2018, soon to be followed by a suite of other components such as keyword ranking and backlink analysis.

Sign up today for 1 months free access and get a further 10% off of any package price when we launch for the first year as a reward for being an early subscriber.

Also, you will be entered into a lottery, where we will be giving away five 1-year subscriptions for free!

Sign up for early access today!