archive about

tumblr api & video uploads

Yesterday I noticed that, for videos uploaded to tumblr, the API does not expose the original file. However, I also noticed that the official “tumblr” (see ) will download the videos!

After some trial and error, I realized that the embeddable js script returned by the API, included a link to an mp4 version of my original upload.

The embed code returned by the API includes something like this

renderVideo("video_player_16306038797", '', 400, 711, ',,,,' )

1. turns out to redirect to the mp4.
2. the next two numbers are width and height of the video
3. the poster “values” are links to stills from the video.

If you need the code to parse and download the files, check at (it’s the “render_video_post” method).

It works, but it’s a hack. It would be nice to have a documented and more developer-friendly method of accessing the original video.