Documentation
Anatomy of a request
API documentation
http://peepshot.com/v1/:API_KEY/:TOKEN/:BOUNDING_BOX?url=:URL
:API_KEY
Your identifier.
Your API key is assigned to you during you the signup process.
:TOKEN
The security token is an md5 hash.
Only accounts in good standing can generate valid tokens.
Your API secret is assigned to you during you the signup process.
md5(“$secret+$url”)
:BOUNDING_BOX
Width x Height (pixels)
“300×200” will create an image no tall than 200 pixels and no wider than 300 pixels.
Proportions are always maintained when we scale.
Use ORIGINAL to get actual size.
If no height is given, the image will only be scaled to its with but not cropped to its height.
:URL
Target website. Must be URL encoded.
http:// is required.
Real world examples
Google.com in 400×300:
http://peepshot.com/v1/0d03a6bc89/a7543125424b0c7a39312a3530ffaa58/400×300?url=http%3A%2F%2Fgoogle.com
NyTimes.com in 300 width (floating height):
http://peepshot.com/v1/0d03a6bc89/d9819d747dbca2ff552385c17cac8768/300?url=http%3A%2F%2Fnytimes.com
UI-Patterns.com in ORIGINAL format:
http://peepshot.com/v1/0d03a6bc89/d06c16f085ceba605b5294126517d03a/original?url=http%3A%2F%2Fui-patterns.com