Screenshots from HTML

Actor creates screenshots from a saved HTML structure.

To run the code examples, you need to have an Apify account. Replace <YOUR_API_TOKEN> in the code with your API token that you can find under Settings > Integrations. For a more detailed explanation, please read about running Actors via the API in Apify Docs.

List of most relevant API endpoints

See API reference for full details.

Run Actor synchronously and get dataset items

Runs this Actor and waits for it to finish. The POST payload including its Content-Type header is passed as INPUT to the Actor (usually application/json). The HTTP response contains the Actor's dataset items, while the format of items depends on specifying dataset items' format parameter.

POSThttps://api.apify.com/v2/acts/vojtam~screenshots-from-html/run-sync-get-dataset-items?token=<YOUR_API_TOKEN>

Hint: This endpoint can be used with both POST and GET request methods, but only the POST method allows you to pass input.

Run Actor synchronously

Runs this Actor and waits for it to finish. The POST payload including its Content-Type is passed as INPUT to the Actor (usually application/json) and the OUTPUT is returned in the HTTP response. The Actor is started with the default options; you can override them using various URL query parameters. Note that long HTTP connections might break.

POSThttps://api.apify.com/v2/acts/vojtam~screenshots-from-html/run-sync?token=<YOUR_API_TOKEN>

Hint: This endpoint can be used with both POST and GET request methods, but only the POST method allows you to pass input.

Run Actor

Runs this Actor. The POST payload including its Content-Type header is passed as INPUT to the Actor (typically application/json). The Actor is started with the default options; you can override them using various URL query parameters.

POSThttps://api.apify.com/v2/acts/vojtam~screenshots-from-html/runs?token=<YOUR_API_TOKEN>

Hint: By adding the method=POST query parameter, this API endpoint can be called using a GET request and thus used in third-party webhooks.

Get Actor

Returns settings of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/vojtam~screenshots-from-html?token=<YOUR_API_TOKEN>

Get list of Actor versions

Returns a list of versions of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/vojtam~screenshots-from-html/versions?token=<YOUR_API_TOKEN>

Get list of Actor webhooks

Returns a list of webhooks of this Actor in JSON format.

GEThttps://api.apify.com/v2/acts/vojtam~screenshots-from-html/webhooks?token=<YOUR_API_TOKEN>