Skip to main content
GET
/
v1
/
viewports
List Available Viewports
curl --request GET \
  --url https://api.urldna.io/v1/viewports \
  --header 'Authorization: <api-key>'
[
  {
    "device": "DESKTOP",
    "width": 123,
    "height": 123
  }
]

Authorizations

Authorization
string
header
required

Response

Viewport list retrieved successfully.

device
enum<string>

Device type for viewport simulation.

Available options:
DESKTOP,
MOBILE
width
number

Viewport width in pixels.

height
number

Viewport height in pixels.