Screenshot API by providing a URL

It would be awesome to have an API that lets you specify a URL and takes a screenshot of the page that loads. It would be important for the API to have the following:

  1. Support for sites that render after load
  2. Support for setting the dimensions
  3. Support for setting a refresh ID of some sort so that the screenshot is taken again of that ID has changed.