Post Media

The following are expanded examples of the media property. The media key contains a list of media attached to a post. If no media is attached to posts null will be returned. There two types of media avaiable: image or video.

Name Type Description
src string The URL to the media type. If this is a video from Facebook, a link to the video will returned.
type string image or video.
thumbnail string The URL to the media type that represents a thumbnail. If the type is an image this could be same as the src field.

Instagram Example

Image

"media": [
    {
        "src": "https://scontent.cdninstagram.com/t51.2885-15/s150x150/e35/18160770_453329091684245_1451572772793745408_n.jpg",
        "type": "image",
        "thumbnail":"https://scontent.cdninstagram.com/t51.2885-15/s150x150/e35/18160770_453329091684245_1451572772793745408_n.jpg"

    }
],

Video

"media":[
   {
      "type":"video",
      "src":"http://distilleryvesper9-13.ak.instagram.com/090d06dad9cd11e2aa0912313817975d_101.mp4",
      "thumbnail":"http://distilleryimage2.ak.instagram.com/11f75f1cd9cc11e2a0fd22000aa8039a_7.jpg"
   }
],

Facebook Example

Video

"media":[
   {
      "type":"video",
      "src":"https://www.facebook.com/istrategylabs/videos/10155057470136224/",
      "thumbnail":"https://scontent.xx.fbcdn.net/v/t15.0-10/s720x720/18175190_10155057472231224_2861685959991230464_n.jpg?oh=d970d09d9d506d22839d9a3b9ba61b75&oe=59848FFC"

   }
],

Image

"media": [
    {
        "src": "https://scontent.xx.fbcdn.net/v/t1.0-9/s720x720/18199184_124872741396990_246941169933211912_n.jpg?oh=caac2edbac628744a509cf3523c00442&oe=598AAE4C",
        "type": "photo",
        "thumbnail": "https://scontent.xx.fbcdn.net/v/t1.0-9/s720x720/18199184_124872741396990_246941169933211912_n.jpg?oh=caac2edbac628744a509cf3523c00442&oe=598AAE4C"
    }
],

Twitter Example

Image

"media": [
    {
        "src": "http://pbs.twimg.com/media/C_AqcJsWAAAzt5b.jpg"",
        "type": "image",
        "thumbnail":"http://pbs.twimg.com/media/C_AqcJsWAAAzt5b.jpg""

    }
],

Video

"media":[
   {
      "type":"video",
      "src":"https://video.twimg.com/ext_tw_video/856852383288221697/pu/vid/640x360/ONBY-lmNMq1srX5O.mp4",
      "thumbnail":"http://pbs.twimg.com/ext_tw_video_thumb/856852383288221697/pu/img/gSMaPQYcMAOtMpC1.jpg"

   }
],