import mql from '@microlink/mql' const { data } = await mql('https://www.netflix.com/title/80057281', { screenshot: true })
screenshot
Type: <boolean>
Default: false
Default: false
It generates a screenshot over the target url.
When it's enabled, a new
screenshot
data field will be part of the response payload.import mql from '@microlink/mql' const { data } = await mql('https://www.netflix.com/title/80057281', { screenshot: true, element: "#section-hero" })
Also, combine it with embed for inserting it as HTML markup and refresh it asynchronously in the background (known as stale).
or inside CSS stylesheets:
even in Markdown: