Skip to Content
Mika Scraper 1.1.1 is released ๐ŸŽ‰
๐Ÿƒ MIKA FUNCTIONFunction: ScreenshostWebsite()

Mika Scraper v1.1.2


Mika Scraper / ScreenshostWebsite

Function: ScreenshostWebsite()

ScreenshostWebsite(url): Promise<ScreenshotResponse>

Defined in: src/_other-scraper/ssweb.ts:55

Captures a screenshot of the specified URL using Imagyโ€™s public API.

Parameters

url

string

The complete URL of the web page to capture a screenshot of.

Returns

Promise<ScreenshotResponse>

A promise that resolves to a ScreenshotResponse object, which contains either the URL of the screenshot file or an error message.

Example

const result = await ScreenshostWebsite('https://example.com'); if (result.success) { console.log(result.fileUrl); } else { console.error(result.error); }
Last updated on