Get Twitter profile picture with username or ID using V1.1

Is there a predictable url for retrieving user profile images by username or id?

... similar to google or facebook:

"https://graph.facebook.com/#{FACEBOOK ID}/picture" "https://profiles.google.com/s2/photos/profile/#{GOOGLE ID}" 

I found this https://dev.twitter.com/docs/user-profile-images-and-banners , but it looks like I will need to make a separate request to get the profile image.

+6
source share
2 answers

Before we could access the user profile picture without authentication using twitter version 1 api.

Now that this is out of date, we use /1.1/users/show.json a lot to pull out the profile image with authentication information.

+2
source

A predictable URL similar to Facebook or Google for retrieving user profile images by username is as follows:

 "https://twitter.com/[screen_name]/profile_image?size=original" 

for instance

 "https://twitter.com/sqlpowershell/profile_image?size=original" 

Other sizes include

  • mini - 24x24 px
  • normal - 48x48
  • more - 73x73

Completely freed from the need to use the API!

+9
source

Source: https://habr.com/ru/post/948657/


All Articles