Tumblr's total posts count inaccurate?

591 views
Skip to first unread message

Mike McGowan

unread,
Jan 17, 2012, 10:19:46 PM1/17/12
to Tumblr API Discussion
A script of mine is supposed to return a blog's first post and to do
so I grab the user info with /info and then use that with /
posts&offset=[total_posts]&limit=1. Except the /posts request returns
no posts. My alleged post count is 10793, but I found that my first
post was returned with an offset of 10744. This only affects my
primary blog, it would seem.

Ian Young

unread,
Jan 20, 2012, 5:43:37 PM1/20/12
to Tumblr API Discussion
I've encountered this problem too. It's apparent in the following
query, which returns me an empty posts array but a total_posts value
(282) that would imply that my offset (230) is fine.

curl 'http://api.tumblr.com/v2/blog/iwdrm.tumblr.com/posts/photo?
api_key=xxxx&limit=1&offset=230'
{"meta":{...},"response":{"blog":{...},"posts":[],"total_posts":
282}}

FWIW, I ran some JS against the archive page of that blog and it looks
like the total_posts number is the inaccurate one - the limit I'm
finding experimentally is the correct number of posts.

Ian

John Bunting

unread,
Jan 20, 2012, 5:45:35 PM1/20/12
to tumbl...@googlegroups.com
Hey guys,

This is a known bug. The engineering team has been notified and we're working on it! 

Thanks!
--
John Bunting

Simplicity is prerequisite for reliability
    --Edsger W. Dijkstra


mcat

unread,
Mar 15, 2012, 10:20:55 PM3/15/12
to tumbl...@googlegroups.com
I am seeing a similar bug when filtering by tag.

This request:

Returns:
"total_posts": 10

Even though there are really only 6 posts with the "featured" tag.

-Mark
Reply all
Reply to author
Forward
0 new messages