title: How to get user's high resolution profile picture on Twitter?
body: <p>I was reading the Twitter documentation at <a href="https://dev.twitter.com/overview/general/user-profile-images-and-banners" rel="noreferrer">https://dev.twitter.com/overview/general/user-profile-images-and-banners</a> and it clearly states that:</p>
  
  <blockquote>
    <p>Alternative image sizes for user profile images You can obtain a
    user’s most recent profile image, along with the other components
    comprising their identity on Twitter, from GET users/show. Within the
    user object, you’ll find the profile_image_url and
    profile_image_url_https fields. These fields will contain the resized
    “normal” variant of the user’s uploaded image. This “normal” variant
    is typically 48px by 48px.</p>
    
    <p>By modifying the URL, you can retrieve other variant sizings such as
    “bigger”, “mini”, and “original”. Consult the table below for more
    examples:</p>
    
    <p>Variant   Dimensions  Example URL normal  48px by
    48px  <a href="http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png" rel="noreferrer">http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png</a>
    <a href="https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png" rel="noreferrer">https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_normal.png</a>
    bigger    73px by
    73px  <a href="http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_bigger.png" rel="noreferrer">http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_bigger.png</a>
    <a href="https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_bigger.png" rel="noreferrer">https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_bigger.png</a>
    mini  24px by
    24px  <a href="http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_mini.png" rel="noreferrer">http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_mini.png</a>
    <a href="https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_mini.png" rel="noreferrer">https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3_mini.png</a>
    original  original    <a href="http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3.png" rel="noreferrer">http://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3.png</a>
    <a href="https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3.png" rel="noreferrer">https://pbs.twimg.com/profile_images/2284174872/7df3h38zabcvjylnyfe3.png</a>
    Omit the underscore and variant to retrieve the original image. The
    images can be very large.</p>
  </blockquote>
  
  <p>Twitter API's response is like this for my own account: </p>
  
  <pre><code>{
    ....
    "profile_image_url_https" = "https://pbs.twimg.com/profile_images/559415382457348097/qSYxxIAo_normal.png";
    ...
  }
  </code></pre>
  
  <p>That image URL works, but it's too small. I need the highest resolution available. I do exactly what Twitter says, and omit the <code>_normal</code> suffix, and try this URL:</p>
  
  <p><a href="https://pbs.twimg.com/profile_images/559415382457348097/qSYxxIAo.png" rel="noreferrer">https://pbs.twimg.com/profile_images/559415382457348097/qSYxxIAo.png</a></p>
  
  <p>But it's not found. Is Twitter docs outdated or am I missing a point?</p>
  
  <p><strong>UPDATE:</strong> I've tried with a few friends' profiles and most of them seem to work, and removing any suffixes and adding <code>_400x400.[jpg|png]</code> also seems to work, but it's undocumented and unreliable, so I really doubt that I should be using this undocumented API in production.</p>
  
  <p><strong>UPDATE 2:</strong> I've refreshed my user object as Twitter also states in case of outdated images, but nothing has changed.</p>