# Capture a Full-Height Screenshot

*The following example is a request we've prebuilt to show you Gaffa's capabilities on our* [*demo site.*](https://demo.gaffa.dev) ***You can run this request right now in the*** [***Gaffa API Playground***](https://gaffa.dev/dashboard/playground?templateId=screenshot_ecommerce)***.***

Gaffa can also capture screenshots at any point during your interaction for use in your app or to work out exactly what was shown at a given time. You can capture just what is shown, as if you were looking at the screen or the full height of the page.

## API Request

The request below uses the [POST endpoint](https://gaffa.dev/docs/api-reference/post-v1-browser-requests) to open the demo site on the ecommerce page with 20 items, wait for and dismiss the dialog, scroll to the bottom of the page, and capture a full height screenshot.

```json
{
  "url": "https://demo.gaffa.dev/simulate/ecommerce?loadTime=3&showModal=true&modalDelay=0&itemCount=20",
  "proxy_location": null,
  "async": false,
  "max_cache_age": 0,
  "settings": {
    "record_request": false,
    "actions": [
      {
        "type": "wait",
        "selector": "div[role=\"dialog\"]",
        "timeout": 10000
      },
      {
        "type": "click",
        "selector": "[data-testid=\"accept-all-button\"]"
      },
      {
        "type": "wait",
        "selector": "[data-testid^=\"product-1\"]",
        "timeout": 5000
      },
      {
        "type": "scroll",
        "percentage": 100
      },
      {
        "type": "capture_screenshot",
        "size": "fullscreen"
      }
    ]
  }
}
```

## Actions

{% content-ref url="../actions/wait" %}
[wait](https://gaffa.dev/docs/features/browser-requests/actions/wait)
{% endcontent-ref %}

{% content-ref url="../actions/click" %}
[click](https://gaffa.dev/docs/features/browser-requests/actions/click)
{% endcontent-ref %}

{% content-ref url="../actions/scroll" %}
[scroll](https://gaffa.dev/docs/features/browser-requests/actions/scroll)
{% endcontent-ref %}

{% content-ref url="../actions/capture-screenshot" %}
[capture-screenshot](https://gaffa.dev/docs/features/browser-requests/actions/capture-screenshot)
{% endcontent-ref %}

## Response

The full-height export screenshot of the page showing all items.

<figure><img src="https://2341007864-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FyUba6osOT5MkKiV0wmgr%2Fuploads%2FthrsvIcMkNEGKPOmQOYE%2FGaffaFullHeightScreenshotExample.png?alt=media&#x26;token=ab0f9d2f-ec48-4e5a-ad00-99bd97760333" alt=""><figcaption><p>Gaffa's full height screenshot</p></figcaption></figure>
