<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>jolene</author_name>
  <author_url>https://blog.hatena.ne.jp/jolene/</author_url>
  <blog_title>世界はエロでできている</blog_title>
  <blog_url>https://jolene.hateblo.jp/</blog_url>
  <categories>
    <anon>PHP</anon>
    <anon>Tips</anon>
  </categories>
  <description>PHPを用いて特定URLのはてなブックマーク件数を取得する方法を紹介したいと思います。この方法を使えば自サイトに載せているURLのブックマーク件数を表示することができ、ページに彩りを加えるとともに人気記事であることが一目で分かるようになります。 はてなブックマークの件数を取得するには file_get_contents() 関数を用います。この関数の引数には、はてなブックマーク件数取得APIにURLを含めた文字列を指定します。 形式としては以下になります。 file_get_contents('http://api.b.st-hatena.com/entry.count?url=[任意のURL…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Fjolene.hateblo.jp%2Fentry%2F2013%2F12%2F15%2F003000&quot; title=&quot;PHPで特定URLのはてなブックマーク件数を取得する方法 - 世界はエロでできている&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://images-fe.ssl-images-amazon.com/images/I/51%2BCzDrEjZL._SL160_.jpg</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2013-12-15 00:30:00</published>
  <title>PHPで特定URLのはてなブックマーク件数を取得する方法</title>
  <type>rich</type>
  <url>https://jolene.hateblo.jp/entry/2013/12/15/003000</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
