Skip to content

Eager Mode

Scott Behrens edited this page Aug 9, 2017 · 3 revisions

Eager Mode

Sketchy also supports an Eager mode, which blocks until the associated capture is created and returned. This is useful for one-off captures, testing, or if you just want to grab a screenshot from a URL and not need to poll the task or provide a callback.

HTTP Method URI ACTION
GET http://[hostname:port]/eager?url=[url]&type=[sketch,scrape,html] Retrieve either a sketch, scrape, or html depending on type specified