GET users/profile_image/:screen_name

Updated on Sat, 2012-08-25 08:48

Access the profile image in various sizes for the user with the indicated screen_name. If no size is provided the normal image is returned.

This resource does not return JSON or XML, but instead returns a 302 redirect to the actual image resource.

This method should only be used by application developers to lookup or check the profile image URL for a user. This method must not be used as the image source URL presented to users of your application.

Resource URL

http://api.twitter.com/1/users/profile_image/:screen_name.format

Parameters

screen_name required

The screen name of the user for whom to return results for. Helpful for disambiguating when a valid screen name is also a user ID.

Example Values: noradio

size optional

Specifies the size of image to fetch. Not specifying a size will give the default, normal size of 48px by 48px. Valid options include:

  • bigger - 73px by 73px
  • normal - 48px by 48px
  • mini - 24px by 24px
  • original - undefined. This will be the size the image was originally uploaded in. The filesize of original images can be very big so use this parameter with caution.

Example Values: bigger

Example Request

GET

https://api.twitter.com/1/users/profile_image?screen_name=twitterapi&size=bigger

  1. <html><body>You are being <a href="https://si0.twimg.com/profile_images/1438634086/avatar_bigger.png">redirected</a>.</body></html>