Reddit Scraper

ENDPOINTS
GET/posts/media

Post Media

Get a post's downloadable media: original images, gallery items, video renditions with audio track, embeds.

QUERY PARAMS

Reddit post ID, t3_ fullname or any reddit.com post link (incl. redd.it short links and /s/ share links).

An unavailable post returns 404 with a machine-readable reason (see Post Details); pass the full reddit.com/r/<subreddit>/comments/<id>/ link to get the exact one.

Files pasted into a text post's body (media.type = inline) are listed too; a video item has link = HLS playlist and dash_link = DASH playlist.

Examples:

  • ID: sm3sdl
  • URL: https://www.reddit.com/r/interestingasfuck/comments/sm3sdl/

Skip the cache and read the post's media live from Reddit. Without it the response can be up to 5 minutes old.

Default: false

Allowed values: true, false

{
  "post": {
    "id": "sm3sdl",
    "title": "My turtle follows me and seeks out affection. Biologist have reached out to me because this is not even close to normal behavior. He just started one day and has never stopped. I don’t know why.",
    "link": "https://www.reddit.com/r/interestingasfuck/comments/sm3sdl/my_turtle_follows_me_and_seeks_out_affection/",
    "type": "video",
    "external_link": "https://v.redd.it/fko4j44oa9g81",
    "is_nsfw": false
  },
  "media": {
    "type": "video",
    "images": [],
    "video": {
      "link": "https://v.redd.it/fko4j44oa9g81/DASH_1080.mp4",
      "audio_link": "https://v.redd.it/fko4j44oa9g81/DASH_audio.mp4",
      "dash_manifest": "https://v.redd.it/fko4j44oa9g81/DASHPlaylist.mpd",
      "hls_manifest": "https://v.redd.it/fko4j44oa9g81/HLSPlaylist.m3u8",
      "scrubber_link": "https://v.redd.it/fko4j44oa9g81/DASH_96.mp4",
      "poster": {
        "link": "https://external-preview.redd.it/Wm9tULbpdFg8Y8KajGJj4zOD-BwUjX8CnvypCVSf7So.png?format=pjpg&auto=webp&s=596abadc1ed245c9aa333ecdab3b56f76a740256",
        "width": 720,
        "height": 1280
      },
      "duration": 59,
      "width": 607,
      "height": 1080,
      "bitrate_kbps": 4800,
      "has_audio": true,
      "is_gif": false,
      "transcoding_status": "completed"
    },
    "embed": null,
    "preview": {
      "link": "https://external-preview.redd.it/Wm9tULbpdFg8Y8KajGJj4zOD-BwUjX8CnvypCVSf7So.png?format=pjpg&auto=webp&s=596abadc1ed245c9aa333ecdab3b56f76a740256",
      "width": 720,
      "height": 1280
    }
  },
  "thumbnail": {
    "link": "https://b.thumbs.redditmedia.com/zP9lajTDut8NZdoJ7JL3Nxmk7XWvgD_EgujDXmdZ-wQ.jpg",
    "width": 140,
    "height": 140
  },
  "video_renditions": [
    {
      "height": 240,
      "width": 136,
      "bitrate_kbps": 599,
      "codec": "avc1.4D401E",
      "link": "https://v.redd.it/fko4j44oa9g81/DASH_240.mp4"
    },
    {
      "height": 360,
      "width": 202,
      "bitrate_kbps": 804,
      "codec": "avc1.4D401E",
      "link": "https://v.redd.it/fko4j44oa9g81/DASH_360.mp4"
    },
    {
      "height": 480,
      "width": 270,
      "bitrate_kbps": 1206,
      "codec": "avc1.4D401F",
      "link": "https://v.redd.it/fko4j44oa9g81/DASH_480.mp4"
    },
    {
      "height": 720,
      "width": 406,
      "bitrate_kbps": 2399,
      "codec": "avc1.4D401F",
      "link": "https://v.redd.it/fko4j44oa9g81/DASH_720.mp4"
    }
  ],
  "audio_tracks": [
    {
      "bitrate_kbps": 132,
      "codec": "mp4a.40.2",
      "link": "https://v.redd.it/fko4j44oa9g81/DASH_audio.mp4"
    }
  ]
}