Shall we use https://twitter.com/intent/user?user_id={} this url to get username?

api

#1

Hi ,we are using twitter api. If a person changed their username ( authenticated / unauthenticated) , we cant able to get their profilepicture by using old username.

To get profile image with ouot rest api:
https://www.twitter.com/{username}/profile_image?size=original )

So for this we have person’s unique id ( https://twitter.com/intent/user?user_id={}).

Without api call , can we have anyother way to do this? Because scraping not allowed as per twitter policy. But you mentioned with consent we can use this. So please clarify this.


#2

The correct and supported way of getting a username and profile image is to use the users/show endpoint and passing in the ID. You should not be using either of the two URLs you refer to in your post. Why do you want to use those instead of using the supported API method?


#3

To minimalise endpoint request count.


#4

Ok. The method you are describing is not supported.


#5

Thank you for your clarification :slight_smile::thumbsup: