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