Topic: API does not return all posts

Posted under General

Hi all,
I'm having some trouble using the e621 API.
I make GET calls searching for tags like this:

https://e621.net/posts.json?limit=320&page=1&tags=shooty
(The tag "shooty" being an example where I noticed the issue.)
With an authorization header for my account and a User-Agent header.

When I'm searching for "shooty" on the website it tells me that there are 227 Posts with this tag (at the time of me writing this).
But for my call I only get 216 Posts.

Can anyone tell me why this is happening?
The authorization works, I now get posts returned with a file URL, that I did not get before.
I also have nothing on my blacklist.

Any help is greatly appreciated.

It looks like there really are only 216 posts, I'd guess some have recently been deleted and the number hasn't updated yet.

Huh, you're right.
When I count the posts myself I also count 216.

Thanks for the information.

  • 1