-
Notifications
You must be signed in to change notification settings - Fork 27
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Inconsistency in API output #21
Comments
This is likely a consequence of the newer post being saved in the Neue Post Format, and the older one being saved in the legacy format. Generally speaking, post types are becoming deprecated on Tumblr under the hood. You can read more about this here and on the Engineering blog in general, as well as the documentation in this repo for the NPF spec. I strongly encourage you to check out leveraging |
Just to understand better, you mean that the above weird answer is a consequence of requesting a NPF post over the old API? |
Yes, exactly. Sorry if that was a bit confusing. All of the current API endpoints for fetching posts (like the one above) can possibly return legacy posts alongside new NPF posts, depending on how the post was made. To maintain backwards compatibility, new NPF posts will look and act like legacy |
Thank you for your answer @cyle! I've tried and it works with |
Sure, happy to try to make this clearer. I'll see what I can do. 👌 |
Updated the docs with some blurbs about this, FYI ba6c02e |
There's an annoying inconsistency in the API. The Latest posts' output is different from older ones.
https://api.tumblr.com/v2/blog/MY-BLOG/posts/photo/?api_key=MY-API-KEY&offset=80&page_number=5
The newest posts output is like so:
body": "<figure class=\"tmblr-full\" data-orig-height=\"2048\" data-orig-width=\"1365\"><img src=\"https://64.media.tumblr.com/.../s640x960/..85.jpg\" data-orig-height=\"2048\" data-orig-width=\"1365\"></figure><p>description</p>"
But the oldest doesn't have the
body
, instead they have:Both are PHOTO posts. Why is that?
The text was updated successfully, but these errors were encountered: