'Retrieving all(!) of the tweets of a user

I want to get all the tweets of a user using twitter API 1.1 and this end point:

https://api.twitter.com/1.1/statuses/user_timeline.json

The documents of twitter API https://dev.twitter.com/rest/reference/get/statuses/user_timeline says there's a limit which is 3200 (the parameter count). If that's the case, how do I retrieve all(!) of the tweets of a user, not only 3200?



Solution 1:[1]

just from the API documentation: https://dev.twitter.com/rest/reference/get/statuses/user_timeline

Have you tried to send several requests setting different values for since_id and max_id?

max_id: Returns results with an ID less than (that is, older than) or equal to the specified ID.

since_id: Returns results with an ID greater than (that is, more recent than) the specified ID.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 matthias