twvtr

twvtr is a RESTful API that lets you specify a Twitter username and it will return the avatar.

Consume

Mashape

Usage

<img src="http://twvtr.com/[screen_name]" />

Also, if you need it, you can use HTTPS:

<img src="https://twvtr.com/[screen_name]" />

And you can specify the size image you want using this one of this options:

· mini (24x24)
· normal (48x48 - default)
· bigger (73x73)
· original

So the code will be like the example below:

<img src="http://twvtr.com/[screen_name]/[size]" />

JSON

http://twvtr.com/[screen_name].json
http://twvtr.com/[screen_name]/[size].json
<?php
$result = file_get_contents("http://twvtr.com/[screen_name].json");
print_r($result);
?>


Example:

HTTP Request

<img src="http://twvtr.com/SnaptwitID/bigger" />

HTTPS Request

<img src="https://twvtr.com/SnaptwitID/original" />



JSON Request

https://twvtr.com/SnaptwitID.json
Response:
{"screen_name":"SnaptwitID","profile_image_url":"http:\/\/pbs.twimg.com\/profile_images\/705104891203616769\/cFPHGVTl_normal.jpg","profile_image_url_https":"https:\/\/pbs.twimg.com\/profile_images\/705104891203616769\/cFPHGVTl_normal.jpg","last_update":"2016-09-13 06:03:01"}


Rate Limiting

There is no limitation at this moment, so please use it fairly.