# Scroll to an Element Before the Capture

A capture after scrolling to the page footer (scroll_to_element=footer): the viewport shows the bottom of the page.

Source: https://docs.deepinfo.com/reference/lookup/screenshot/examples/scroll-to-element/

Last updated: 2026-09-24

---
`GET https://api.deepinfo.com/v1/lookup/screenshot?url=https%3A%2F%2Fwww.deepinfo.com&scroll_to_element=footer`

A capture after scrolling to the page footer (scroll_to_element=footer): the viewport shows the bottom of the page.

Example 2 of 3 in **What to Capture** · [Screenshot Examples](/reference/lookup/screenshot/examples/) · endpoint: [Screenshot](/reference/lookup/screenshot/)

Tags: `param` `scroll_to_element` · `value` `footer`

Asks for a capture after scrolling to the first element that matches the CSS selector `footer` (`scroll_to_element=footer`).

The browser scrolls until that element is in view, then captures the viewport, so the image shows the footer of `https://www.deepinfo.com` instead of its top. Unlike `selector`, the image keeps the full viewport size. The response looks like the default one; the difference is in the image.

## Request

| Parameter | In | Value |
|---|---|---|
| `url` | query | `https://www.deepinfo.com` |
| `scroll_to_element` | query | `footer` |

```bash
curl 'https://api.deepinfo.com/v1/lookup/screenshot?url=https%3A%2F%2Fwww.deepinfo.com&scroll_to_element=footer' \
  -H 'apikey: YOUR_API_KEY' \
  -H 'Accept: application/json'
```

## Response

### 200 · OK

`Content-Type: application/json; charset=utf-8` · `ratelimit-limit: 1` · `ratelimit-remaining: 0` · `ratelimit-reset: 1` · `x-ratelimit-limit-second: 1` · `x-ratelimit-remaining-second: 0` · `deepinfo-request-id: 5f0c6a8e-1b2d-4c3e-9f4a-7b8c9d0e1f2a`

```json
{
  "url": "https://www.deepinfo.com",
  "redirected_url": "https://www.deepinfo.com/",
  "check_date": "2026-09-24T08:39:49.952Z",
  "connection_status": "success",
  "screenshot_url": "https://diss-999.storage.googleapis.com/202609/24/www-deepinfo-com-hzbATER1P4XKb-7AGlyzJOWA.jpeg?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Content-Sha256=UNSIGNED-PAYLOAD&X-Amz-Credential=<redacted>&X-Amz-Date=20260924T083949Z&X-Amz-Expires=604800&X-Amz-Signature=<redacted>&X-Amz-SignedHeaders=host&x-amz-checksum-mode=ENABLED&x-id=GetObject"
}
```
