> ## Documentation Index
> Fetch the complete documentation index at: https://docs.rustybrowser.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Scroll By

> Scroll the page by a relative amount

## Description

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

## Authentication

Open-source deployments do not require authentication by default. If your server config enables `X-API-Key`, include that header with the request.

## Path Parameters

<ParamField path="id" type="string" required>
  The browser ID returned from Create Session.
</ParamField>

## Request Body

<ParamField body="x" type="number">
  Horizontal scroll amount in pixels. Positive scrolls right, negative scrolls left.
</ParamField>

<ParamField body="y" type="number">
  Vertical scroll amount in pixels. Positive scrolls down, negative scrolls up.
</ParamField>

## Response

<ResponseField name="success" type="boolean">
  Whether the scroll was performed successfully.
</ResponseField>

## Example

```bash theme={null}
curl -X POST http://localhost:8080/browsers/exc-b9534e98-c3ce-4d1b-9671-b563ac66adc3/scroll-by/ \
  -H "Content-Type: application/json" \
  -d '{ "x": 0, "y": 500 }'
```
