viewport

Type: <object>
It establishes a set of properties related with the browser visible area and device capabilities.
microlink-api https://en.wikipedia.org/wiki/Bob_Dylan&meta=false&screenshot&viewport.width=640&viewport.height=400&viewport.deviceScaleFactor=2&embed=screenshot.url&viewport.isMobile
Establishing a custom viewport.
The default viewport values are provided by the default device. The viewport should be defined by:
  • width <number>: The page width in pixels
  • height <number>: The page height in pixels.
  • deviceScaleFactor <number>: Specify device scale factor.
  • isMobile <boolean>: Whether the meta viewport tag is taken into account.
  • hasTouch <boolean>: Specifies if viewport supports touch events.
  • isLandscape <boolean>: Specifies if viewport is in landscape mode.
If you just provide an incomplete set of viewport values, they will be merged with the default values
microlink-api https://en.wikipedia.org/wiki/Bob_Dylan&meta=false&screenshot&viewport.deviceScaleFactor=0.5&embed=screenshot.url
Using the default viewport with lower device scale factor.
See device for using viewport presets.

viewport

Type: <object>
It establishes a set of properties related with the browser visible area and device capabilities.
microlink-api https://en.wikipedia.org/wiki/Bob_Dylan&meta=false&screenshot&viewport.width=640&viewport.height=400&viewport.deviceScaleFactor=2&embed=screenshot.url&viewport.isMobile
Establishing a custom viewport.
The default viewport values are provided by the default device. The viewport should be defined by:
  • width <number>: The page width in pixels
  • height <number>: The page height in pixels.
  • deviceScaleFactor <number>: Specify device scale factor.
  • isMobile <boolean>: Whether the meta viewport tag is taken into account.
  • hasTouch <boolean>: Specifies if viewport supports touch events.
  • isLandscape <boolean>: Specifies if viewport is in landscape mode.
If you just provide an incomplete set of viewport values, they will be merged with the default values
microlink-api https://en.wikipedia.org/wiki/Bob_Dylan&meta=false&screenshot&viewport.deviceScaleFactor=0.5&embed=screenshot.url
Using the default viewport with lower device scale factor.
See device for using viewport presets.