POST
/
v1
/
tools
/
screenshot
JavaScript
import Anchorbrowser from 'anchorbrowser';

const client = new Anchorbrowser({
  apiKey: 'My API Key',
});

const response = await client.tools.screenshotWebpage();

console.log(response);

const content = await response.blob();
console.log(content);
This response does not have an example.

Authorizations

anchor-api-key
string
header
required

API key passed in the header

Query Parameters

sessionId
string

An optional browser session identifier to reference an existing running browser sessions. When passed, the tool will be executed on the provided browser session.

Body

application/json

Response

200
image/png

Screenshot successfully captured.

The response is of type file.