twittertwitter-oauthtwitter-rest-api

How to get all images uploaded by the user?


Using Twitter API, I would like to fetch all images uploaded by a user who authenticated my application (OAuth). I've been digging API docs but couldn't find an easy way to do it.

Should I list all tweets, iterate over them, get every single tweet and see if it has a media entity? C'mon?


Solution

  • There's no specific media fetching endpoint in the Twitter API, so yes, you'd need to do something along those lines.