Redirects to a user’s profile picture on any of the supported social networks.
Looking for an easy way to plug this service into React? Check out react-avatar.
Google App Engine
Requires the Google Cloud SDK to be installed
Modify any of the settings in the
gcloud config set project <project-id> gcloud app deploy
Push this repository to a Heroku app or use the Deploy to Heroku button.
Each avatar URL follows the same base format which is
<base-url>/<network-name>/<user-name>, for Twitter this would be
If you are simply trying to show an avatar that would look something like this in HTML:
<img src="https://avatar-redirect.appspot.com/twitter/jorgenevens" alt="JorgenEvens on Twitter" />
The app is configured using environment variables which you either add to your
app.yaml file or set using the Heroku CLI / Dashboard.
|Environment variable||Description||Default value|
|REDIS_URL||connectionString used to connect to a Redis cache||
|MEMCACHE_URL||connectionString used to connect to a Memcache instance||
|TTL_PROFILE_PICTURE||The duration for which the picture URL is cached in ms||
|LIMIT_REFERER||A regular expression matched against the Referer header. If the Referer does not match a
|LOG_FORMAT||A valid log format as specified in the morgan documentation||
|NETWORKS||The social networks available to this deployment, if no value is set all are enabled.||
|VKONTAKTE_KEY||A Vkontakte service key to perform API requests with.||
I really appreciate any contribution you would like to make, so don’t hesitate to report an issue or submit pull requests.