Extract Inline Media API

inline_videos and inline_audios list the page's videos and audio with their sources. Embedded players from known platforms, such as YouTube and Vimeo, are also listed in inline_videos with their provider and video_id.

API Examples

Inline videos

Inline videos

JSON Example

{
  ...
  "inline_videos": [
    {
      "source": "https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.480p.vp9.webm",
      "sources": [
        "https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.480p.vp9.webm",
        "https://upload.wikimedia.org/wikipedia/commons/transcoded/c/c0/Big_Buck_Bunny_4K.webm/Big_Buck_Bunny_4K.webm.1080p.vp9.webm",
        "https://upload.wikimedia.org/wikipedia/commons/c/c0/Big_Buck_Bunny_4K.webm"
      ],
      "poster": "https://upload.wikimedia.org/wikipedia/commons/thumb/c/c0/Big_Buck_Bunny_4K.webm/500px-seek%3D116-Big_Buck_Bunny_4K.webm.jpg"
    }
  ]
}

JSON Structure Overview

{
  ...
  "inline_videos": [
    {
      "provider": "String - Platform of the embedded player. Can be 'youtube', 'vimeo', 'wistia', 'loom', 'dailymotion', 'twitch', 'facebook', 'streamable', 'brightcove', 'jwplayer' or 'kaltura'",
      "video_id": "String - Video ID of an embedded YouTube, Vimeo, Wistia, Loom or Dailymotion player",
      "title": "String - Title attribute of the video",
      "source": "String - URL of the video",
      "sources": "Array - URLs of the video's source elements (native videos only)",
      "poster": "String - URL of the video's poster image (native videos only)"
    },
    ...
  ],
  "inline_audios": [
    {
      "title": "String - Title attribute of the audio",
      "source": "String - URL of the audio",
      "sources": "Array - URLs of the audio's source elements"
    },
    ...
  ],
  ...
}