oEmbed互換形式でフルURLや動画IDを指定して、Vine動画一つ用のシンプル形式の埋め込み HTMLを返します。
Vine 動画のマークアップは、cache_age応答パラメタによって設定されたキャッシュライフライムまでの間あなたのサーバにキャッシュされます。
Vine oEmbed APIReturns a simple embed HTML for a single Vine video, specified by either a full URL or video ID, in an oEmbed-compatible format. The Vine video markup is meant to be cached on your servers for up to the suggested cache lifetime specified by the |
https://vine.co/oembed.{format}
Resource URL
|
Resource Information
Response formats
JSON
XML
Requires authentication?
No
Rate limited?
No
|
リクエストの際には、id パラメータか urlパラメータのどちらかは 必ず設定しなければなりません。
両方を設定する必要はありません。
希望するVine 動画のID。
サンプル値: Ml16lZVTTxe
埋め込みたいVine 動画のURL。
サンプル値:
https://vine.co/v/Ml16lZVTTxeにあるVineを埋め込むには、これを使用します: https%3A%2F%2Fvine.co%2Fv%2FMl16lZVTTxe
表示する埋め込み領域の最大横幅をピクセル単位で設定します。
サンプル値: 500
表示する埋め込み領域の最大高さをピクセル単位で設定します。
サンプル値: 500
応答にVine 埋め込み JavaScriptを含めない。
Query parametersEither the
id
required
The ID of the desired Vine video. Example Value:
url
required
The URL of the Vine video to be embedded. Example Values: To embed the Vine at
maxwidth
Set the maximum width of the displayed embed in whole pixels. Example Value:
maxheight
Set the maximum height of the displayed embed in whole pixels. Example Value:
omit_script
Do not include the Vine embed JavaScript in the response. |
GET
https://vine.co/oembed.json?url=https%3A%2F%2Fvine.co%2Fv%2FMl16lZVTTxe
Example RequestGET
|
{
"version": 1.0,
"type": "video",
"cache_age": 3153600000,
"provider_name": "Vine",
"provider_url": "https://vine.co/",
"author_name": "The White House",
"author_url": "https://vine.co/u/944054069482373120",
"title": "Marine One, ready for takeoff.",
"thumbnail_url": "https://v.cdn.vine.co/r/thumbs/3A1E5CC27C1116110482407841792_2.5.1.13603721890676705621.mp4.jpg?versionId=_B5dDtCI.ZNd_JLK_.sFmfpQq44iXdey",
"thumbnail_width": 480,
"thumbnail_height": 480,
"html": "<iframe class="vine-embed" src="https://vine.co/v/Ml16lZVTTxe/embed/simple" width="600" height="600" frameborder="0"><\/iframe><script async src="//platform.vine.co/static/scripts/embed.js"><\/script>",
"width": 600,
"height": 600
}
Example Result{
"version": 1.0,
"type": "video",
"cache_age": 3153600000,
"provider_name": "Vine",
"provider_url": "https://vine.co/",
"author_name": "The White House",
"author_url": "https://vine.co/u/944054069482373120",
"title": "Marine One, ready for takeoff.",
"thumbnail_url": "https://v.cdn.vine.co/r/thumbs/3A1E5CC27C1116110482407841792_2.5.1.13603721890676705621.mp4.jpg?versionId=_B5dDtCI.ZNd_JLK_.sFmfpQq44iXdey",
"thumbnail_width": 480,
"thumbnail_height": 480,
"html": "<iframe class="vine-embed" src="https://vine.co/v/Ml16lZVTTxe/embed/simple" width="600" height="600" frameborder="0"><\/iframe><script async src="//platform.vine.co/static/scripts/embed.js"><\/script>",
"width": 600,
"height": 600
}
|