Skip to main content
POST
/
v1
/
browsers
/
{id}
/
scroll-by
Scroll By
curl --request POST \
  --url https://api.example.com/v1/browsers/{id}/scroll-by/ \
  --header 'Content-Type: application/json' \
  --data '
{
  "x": 123,
  "y": 123
}
'
{
  "success": true
}

Description

Scrolls the page by a relative pixel offset from the current position.

Authentication

Authorization: Bearer YOUR_API_KEY

Path Parameters

id
string
required
UUID of the browser.

Request Body

x
number
Horizontal scroll amount in pixels. Positive scrolls right, negative scrolls left.
y
number
Vertical scroll amount in pixels. Positive scrolls down, negative scrolls up.

Response

success
boolean
Whether the scroll was performed successfully.

Example

curl -X POST https://api.rustybrowser.com/v1/browsers/550e8400-e29b-41d4-a716-446655440000/scroll-by/ \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "x": 0, "y": 500 }'