Query Pictures

75 views
Skip to first unread message

Toby

unread,
Jul 6, 2017, 8:49:41 AM7/6/17
to Tumblr API Discussion
Hey, I'm thinking about incorporating images from Tumblr into my Spotify app and I just had a quick read through the API docs. 

Is there a way to query images solely based on tags? Or does every query have to contain a specified blog?

Michael Ceyko

unread,
Jul 6, 2017, 11:24:24 AM7/6/17
to Tumblr API Discussion
Hi Toby,

You can use the /v2/tagged route to fetch posts by tag. Unfortunately, it does not support filtering by post type, so you'll need to iterate through all the posts you receive looking for photo posts, and extracting the images off of those.

However, if you stick to photo-heavy tags, this should still be pretty performant.

Regards,
Mike
Reply all
Reply to author
Forward
0 new messages