Reputation: 139
I am having issues with the Twitter4J API. I have programmed my program to get tweets from a user account and it does it beautifully, until it reaches 3235 Tweets and breaks. I do not understand why it stops when it reaches this specific number but I need to retrieve around 9000~ tweets so I am not sure how to fix this. I am using Pagination to retrieve them.
Thanks for all your help guys.
Upvotes: 2
Views: 290
Reputation: 1668
You can't.
From the documentation:
Clients may access a theoretical maximum of 3,200 statuses via the page and count parameters for the user_timeline REST API methods. Other timeline methods have a theoretical maximum of 800 statuses. Requests for more than the limit will result in a reply with a status code of 200 and an empty result in the format requested. Twitter still maintains a database of all the tweets sent by a user. However, to ensure performance, this limit is in place on the API calls.
So, You can't get more than around 3200 tweets with that method, that's why you are getting 3235.
Upvotes: 1