Getting started
Introduction
PreviewAPI turns URLs into hosted screenshot images through a small JSON API. You submit a capture job, poll its status, and read the final image URL. There are no browsers to run, no queues to manage, and no image storage to provision.
BASE URL
https://previewapi.dev/api/v1Endpoints
POST
/screenshotsCreate a screenshot jobGET
/screenshots/{job_uuid}Check job statusDEL
/screenshots/{job_uuid}Delete a screenshotJob lifecycle
Every job moves through a fixed set of states. Poll the status endpoint until it reaches a terminal state.
queued→processing→completedorfailed
A completed job consumes one credit and returns a hosted image URL. A failed job is refunded automatically.