Getting more than 50 notes with Tumblr API

青春壹個敷衍的年華 提交于 2019-12-19 03:31:20

问题


Is there a way to get more than 50 notes per post from Tumblr API.

According to their API, I need to call the posts method with the notes_info parameter set to True. Here is the doc:

https://www.tumblr.com/docs/en/api/v2#posts

So I end up constructing an API call like (the API key is public, from their docs):

http://api.tumblr.com/v2/blog/yearinreview.tumblr.com/posts/text?api_key=fuiKNFp9vQFvjLNvx4sUwti4Yb5yGutBN4Xh10LXZhhRKjWlV4&notes_info=true

The blog in question has more that 50 notes per post, but the API only returns the last 50 in the result['posts']['notes'] list.

Example: http://jsbin.com/noyejikarawi/1/edit

Is there a way to get around this and fetch the full notes list?

来源:https://stackoverflow.com/questions/26176275/getting-more-than-50-notes-with-tumblr-api

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!