# API Documentation
Given a url and dimensions in pixels, `utils.screenshot` returns a PNG.
For convenience, instead of specifying `width` and `height` manually, you can choose from two pre-defined `screenSize`s-
You can also provide a query selector as `selector` instead of a set of dimensions. `utils.screenshot` will return an image of just the element represented by the selector. Should a jpeg be preferred, you can set `fileFormat` to 'jpeg'.