ポッドキャスト(Podcasts)の構造化データをマークアップする方法

ポッドキャスト(Podcasts)の構造化データをマークアップする方法

Photo Lee Campbell via Unsplash

ポッドキャスト(Podcasts)の構造化データをマークアップする方法を紹介します。

Googleは検索結果に再生ボタン付きのポッドキャストのエピソードを表示することがあります。

ポッドキャスト(Podcasts)の構造化データのサンプル

現在、この機能はAndroidのGoogle検索アプリのv6.5以上で提供されています。いずれAndroidのChrome でもサポートされる予定です。

ポッドキャストをGoogleがインデックスするには、以下の項目の実装が必要です。

  • ポッドキャストの情報をRSSフィードで提供する
  • ポッドキャストについてのホームページを用意し、<link>タグをマークアップする

ポッドキャストの情報をRSSフィードで提供する

ポッドキャストの情報をRSSフィードで提供します。RSSには1つ以上のエピソードを盛り込む必要があります。

<rss version="2.0"
     xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"
     xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">

ポッドキャストとエピソードのRSSサンプル

ポッドキャストとエピソードの情報を盛り込んだRSSフィードのサンプルです。

<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:googleplay="http://www.google.com/schemas/play-podcasts/1.0"
     xmlns:itunes="http://www.itunes.com/dtds/podcast-1.0.dtd">
  <channel>
    <title>Dafna's Zebra Podcast</title>
    <googleplay:author>Dafna</googleplay:author>
    <description>A pet-owner's guide to the popular striped equine.</description>
    <googleplay:image href="http://www.example.com/podcasts/dafnas-zebras/img/dafna-zebra-pod-logo.jpg"/>
    <language>en-us</language>
    <link>https://www.example.com/podcasts/dafnas-zebras/</link>
    <item>
      <title>Top 10 myths about caring for a zebra</title>
      <description>Here are the top 10 misunderstandings about the care, feeding, and breeding of these lovable striped animals.</description>
      <pubDate>Tue, 14 Mar 2017 12:00:00 GMT</pubDate>
      <enclosure url="https://www.example.com/podcasts/dafnas-zebras/audio/toptenmyths.mp3"
                 type="audio/mpeg" length="34216300"/>
      <itunes:duration>30:00</itunes:duration>
      <guid>dzpodtop10</guid>
    </item>
    <item>
      <title>Keeping those stripes neat and clean</title>
      <description>Keeping your zebra clean is time consuming, but worth the effort.</description>
      <pubDate>Fri, 24 Feb 2017 12:00:00 GMT</pubDate>
      <enclosure url="https://www.example.com/podcasts/dafnas-zebras/audio/cleanstripes.mp3"
                 type="audio/mpeg" length="26004388"/>
      <itunes:duration>22:48</itunes:duration>
      <guid>dzpodclean</guid>
    </item>
  </channel>
</rss>

ポッドキャスト用のRSSタグ

ポッドキャスト用のRSSタグです。

属性 必須 説明
<title> 必須 ポッドキャストの名前
<link> 必須 ポッドキャストに関するホームページのURL
<item> 必須 ポッドキャストのエピソードに関する情報
<googleplay:author>
OR
<itunes:author>
任意 ポッドキャストの著作者の情報
“Example Corporation”、”Dafna Smith”など
<googleplay:image href=”…”>
OR
<itunes:image href=”…”>
OR
<image>
<link>
<title>
<url>
</image>
任意 ポッドキャストに関連する画像
<googleplay:description>
OR
<itunes:summary>
OR
<description>
任意 ポッドキャストの説明
<language> 任意 ポッドキャストの言語コード
en、jaなど
<googleplay:category>
OR
<itunes:category>
任意 ポッドキャストのカテゴリ
英語である必要があります。
以下の項目が推奨されています。URLエンコードされているので、「&」は「&amp;」という表記になります。

  • Arts
  • Business
  • Comedy
  • Education
  • Games &amp; Hobbies
  • Government &amp; Organizations
  • Health
  • Kids &amp; Family
  • Music
  • News &amp; Politics
  • Religion &amp; Spirituality
  • Science &amp; Medicine
  • Society &amp; Culture
  • Sports &amp; Recreation
  • TV &amp; Film
  • Technology

ポッドキャストのエピソード用のRSSタグ

ポッドキャストのエピソード用のRSSタグです。

属性 必須 説明
<title> 必須 ポッドキャストのエピソードの名前
<enclosure> 必須 エピソードのオーディオファイルのURL
サポートされている拡張子はaac, m4a, mp3, ogg, wav

<enclosure url="https://www.example.com/podcasts/dafnas-zebras/audio/toptenmyths.mp3" type="audio/mpeg" length="34216300"/>
<googleplay:description>
OR
<itunes:summary>
OR
<description>
任意 ポッドキャストのエピソードの説明
<guid> 任意 ユニークで将来にわたって変更のないグローバルな識別子
<guid>が指定されていない場合、<enclosure>のURLが使用されます
<pubDate> 任意 エピソードの公開日時

<pubDate>Wednesday, 04 Feb 2015 00:00:00 EST</pubDate>
<itunes:duration> 任意 エピソードの再生時間
以下のいずれかのフォーマットを使用

  • [hours]:[minutes]:[seconds]
  • [minutes]:[seconds]
  • [total_seconds]

サンプル

  • <itunes:duration>1:10:00</itunes:duration>
  • <itunes:duration>10:00</itunes:duration>
  • <itunes:duration>1800</itunes:duration>

ポッドキャストについてのホームページを用意し、<link>タグをマークアップする

ポッドキャストについてのホームページを用意し、<link>タグをマークアップします。

<link type="application/rss+xml" rel="alternate"
      title="Your Podcast's Name" href="Your podcast's RSS url"/>
  • titleにはポッドキャストのタイトルを指定します。
  • hrefにはポッドキャストのRSSフィードのURLを指定します。

ホームページにはこれ以外の<link type="application/rss+xml" rel="alternate">タグをマークアップしてはいけません。

マークアップのサンプルです。

<html>
  <head>
    <link rel="alternate" type="application/rss+xml" title="Podcast"
          href="https://www.example.com/podcasts/dafnas-zebras/rss/podcast.rss"/>
    <title>Dafna's Zebra Podcast</title>
  </head>
  <body>
    <h1>Dafna's Zebra Podcast</h1>
    <p>Most people don't realize that zebras actually make fabulous house pets.
    They're clean, well behaved, and always well dressed. In this podcast series
    we talk to zebra lovers and zebra experts to get to the bottom of this amazing
    striped animal.</p>
  </body>
</html>

参考