Integrating tumblr blog with website

Ying picture Ying · Oct 14, 2009 · Viewed 30.9k times · Source

I would like to integrate my tumblr feed in to my website. It seems that tumblr has an API for this, but I'm not quite sure how to use it. From what I understand, I request the page, and tumblr returns an xml file with the contents of my blog. But how do I then make this xml into meaningful html? Must I parse it with php, turning the relevant tags into headers and so on? I tell myself it cannot be that painful. Anyone have any insights?

Answer

kweerious picture kweerious · Aug 3, 2010

There's a javascript include that does this now, available from Tumblr (you have to login to see it): http://www.tumblr.com/developers

It winds up being something like this:

<script type="text/javascript" src="http://{username}.tumblr.com/js"></script>