Using the API with cURL

Take screenshots of your site

curl -d "url=http://www.google.com/" http://getscreenshots.io/api/ss

Response with url of screenshots

{
  "message":"Screenshots from http://www.google.com/",
  "url":"http://getscreenshots.io/mylz19eRn"
}

Get information of screenshot by id

curl http://getscreenshots.io/api/ss/mylz19eRn

Response with screenshot details

{
 "url":"http://www.google.com/",
 "id":"mylz19eRn"
 "images":[
  {
   "width":1360,
   "height":768,
   "url":"http://res.cloudinary.com/getscreenshots/image/upload/v1415816252/oghgwkvwclh5sqtyniwa.jpg"
  },
  {
   "width":320,
   "height":480,
   "url":"http://res.cloudinary.com/getscreenshots/image/upload/v1415816257/xod1pdbj9413w8rgqepa.jpg"
  }
 ],
 "date":"2014-11-12T18:17:30.778Z",
}

Set specific resolutions

curl -d "url=http://www.google.com/" \
     -d "resolutions=[[1240,768],[640,1136]]" http://getscreenshots.io/api/ss