GET
/
viewports
curl --request GET \
  --url https://api.urldna.io/viewports \
  --header 'Authorization: <api-key>'
[
  {
    "device": "DESKTOP",
    "width": 123,
    "height": 123
  }
]

Authorizations

Authorization
string
header
required

Response

200
application/json
List of available viewports retrieved successfully.
device
enum<string>

Type of device used for the viewport.

Available options:
DESKTOP,
MOBILE
width
number

Width of the viewport in pixels.

height
number

Height of the viewport in pixels.