Imago is a simple service to return website thumbnails.
http://api.imago.in/get_image?
-
website
: [REQUIRED] the website you wish to screenshot. Website should be URL encoded (e.g. http://www.example.com/test?1 becomes http%3A%2F%2Fwww.example.com%2Ftest%3F1). http/https optional. -
width
: [REQUIRED] the width of the screenshot. (e.g. 600) -
height
: [REQUIRED] the height of the screenshot. (e.g. 600) -
format
: [OPTIONAL] the format to respond with. Accepted values are html, json, and image. Defaults to json. Use image to inline images (e.g.<img src="/get_image?format=image" />
)
<img src="http://api.imago.in/get_image?website=www.reddit.com&width=320&height=200&format=image" />
curl http://api.imago.in/get_image?website=www.reddit.com&width=320&height=200&format=json
Expected Result:
{"link":"https://d29sc4udwyhodq.cloudfront.net/309d0aa8f6edbe57b4d09630ec592f57.jpg","website":"http://www.reddit.com"}
Also available with jsonp.
http://api.imago.in/get_image?website=www.reddit.com&width=320&height=200&format=html
View our source docs here.
To generate run docco *.rb -l linear
I'm in no way responsible for anything you do with this. If this breaks anything of yours, I'm not responsible for that either.
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request