DocumentationNode.js SDK
Node.js SDK
JavaScript/TypeScript SDK (coming soon).
Coming soon
The Node.js SDK is in progress. Use the REST API for now.
REST example (fetch)
const response = await fetch("https://api.ssapi.com/v1/capture", {
method: "POST",
headers: {
"Content-Type": "application/json",
"X-Access-Key": process.env.CAPTURE_KEY
},
body: JSON.stringify({
url: "https://example.com",
format: "png",
full_page: true
})
});
const data = await response.json();
console.log(data.result.storage.url);
Updated 1 day ago