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

# ScreenshotOne

> Render a web page, HTML or Markdown to an image or PDF in a real browser, with ad and cookie-banner blocking, element capture and page metadata.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/screenshotone.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=b0b239bde2258d4fabb2d287d395cc0f)

[Web Catalog · Scraping](https://docs.webrouter.net/data-apis.md?category=scraping)

Needs&#x20;

`SCREENSHOTONE_API_KEY`

Endpoints

3

Auth

Key in query

[Vendor docs](https://screenshotone.com/docs/getting-started/)

&#x20;·&#x20;

[Pricing](https://screenshotone.com/pricing/)

## Setup

| Variable | | What it is |
| - | - | - |
| `SCREENSHOTONE_API_KEY` | required | A ScreenshotOne access key (dashboard > Access). Sent as the access\_key query parameter, the form every endpoint documents (take also accepts an X-Access-Key header). |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* A rendered screenshot counts against the plan's quota; results served from cache (cache=true) do not. GET /usage is free.
* The answer is the image or PDF bytes by default (Content-Type by format); set response\_type=json for a JSON answer. Errors are JSON with an error code and message.
* Signed requests (a signature parameter) are optional unless signing enforcement is turned on for the key; this entry sends the key unsigned.
* omit\_background works only with png; webp and jpeg refuse it even as false.

## Endpoints

GET

Take a screenshot of a URL

Render a page and return the image, PDF, HTML or Markdown.

[Open](#screenshotone-take)

POST

Take a screenshot from a JSON body

Same as take, with options as JSON; the way to send large html or markdown.

[Open](#screenshotone-take-post)

GET

Get quota usage

Requests allowed, used and available in the period, and the per-minute concurrency bucket.

[Open](#screenshotone-usage)

### Take a screenshot of a URL

GET

`/take`

`screenshotone.take`

Render a page and return the image, PDF, HTML or Markdown.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url`</td><td>string</td><td>query</td><td>Page to capture; one of url, html or markdown is required. Example `https://example.com`</td></tr>
    <tr><td>`format`</td><td>string</td><td>query</td><td>Output format, default jpg. One of `png`, `jpeg`, `jpg`, `webp`, `gif`, `jp2`, `tiff`, `avif`, `heif`, `pdf`, `html`, `markdown`</td></tr>

    <tr>
      <td>
        `full_page`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Capture the whole scrollable page, default false.
      </td>
    </tr>

    <tr>
      <td>
        `selector`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        CSS selector of the one element to capture.
      </td>
    </tr>

    <tr>
      <td>
        `viewport_width`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Viewport width in pixels, default 1280.
      </td>
    </tr>

    <tr>
      <td>
        `viewport_height`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Viewport height in pixels, default 1024.
      </td>
    </tr>

    <tr>
      <td>
        `device_scale_factor`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Pixel ratio, 1 to 5.
      </td>
    </tr>

    <tr>
      <td>
        `image_quality`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        0 to 100, default 80.
      </td>
    </tr>

    <tr>
      <td>
        `block_ads`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Block ads.
      </td>
    </tr>

    <tr>
      <td>
        `block_cookie_banners`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Hide cookie consent banners.
      </td>
    </tr>

    <tr>
      <td>
        `block_trackers`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Block trackers.
      </td>
    </tr>

    <tr>
      <td>
        `block_chats`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Block chat widgets.
      </td>
    </tr>

    <tr>
      <td>
        `dark_mode`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        true asks the page for dark mode, false for light.
      </td>
    </tr>

    <tr>
      <td>
        `delay`
      </td>

      <td>
        number
      </td>

      <td>
        query
      </td>

      <td>
        Seconds to wait before capturing, default 0.
      </td>
    </tr>

    <tr>
      <td>
        `wait_until`
      </td>

      <td>
        array
      </td>

      <td>
        query
      </td>

      <td>
        Navigation events to wait for, default \[load]; values load, domcontentloaded, networkidle0, networkidle2.
      </td>
    </tr>

    <tr>
      <td>
        `wait_for_selector`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Wait until this CSS selector is in the DOM.
      </td>
    </tr>

    <tr>
      <td>
        `timeout`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Seconds, default 60, max 90.
      </td>
    </tr>

    <tr>
      <td>
        `ip_country_code`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Country of the exit IP, default us (us, gb, de, it, fr, cn, ca, es, jp, kr, in, au, br, mx, nz, pe, is, ie).
      </td>
    </tr>

    <tr><td>`response_type`</td><td>string</td><td>query</td><td>by\_format returns the file; json returns a JSON answer (with the metadata\_\* results); empty returns nothing. One of `by_format`, `empty`, `json`</td></tr>

    <tr>
      <td>
        `cache`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Cache the result; cached hits do not use quota.
      </td>
    </tr>

    <tr>
      <td>
        `cache_ttl`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Cache lifetime in seconds, 14400 to 2592000; needs cache=true.
      </td>
    </tr>

    <tr>
      <td>
        `metadata_page_title`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Return the page title (with response\_type=json).
      </td>
    </tr>

    <tr>
      <td>
        `metadata_open_graph`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Return parsed Open Graph data.
      </td>
    </tr>

    <tr>
      <td>
        `metadata_content`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Upload the page content and return its URL.
      </td>
    </tr>

    <tr><td>`metadata_content_format`</td><td>string</td><td>query</td><td>Format of metadata\_content, default html. One of `html`, `markdown`</td></tr>
  </tbody>
</table>

[Vendor docs](https://screenshotone.com/docs/options/) · Same job: [Litescrape](https://docs.webrouter.net/data-apis/litescrape.md#litescrape-web-screenshot), [Search1API](https://docs.webrouter.net/data-apis/search1api.md#search1api-web-screenshot), [Spider Cloud](https://docs.webrouter.net/data-apis/spidercloud.md#spidercloud-screenshot-page)

```python Python theme={null}
router.call_data_api("screenshotone.take", {'url': 'https://example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="screenshotone.take", params={"url": "https://example.com"})
```

> [!NOTE]
>
> * Uses one render from the quota unless served from cache.
> * Over 30 seconds of delay is only allowed for async requests with a longer timeout.

### Take a screenshot from a JSON body

POST

`/take`

`screenshotone.take.post`

Same as take, with options as JSON; the way to send large html or markdown.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`url`</td><td>string</td><td>body</td><td>Page to capture; one of url, html or markdown is required. Example `https://example.com`</td></tr>

    <tr>
      <td>
        `html`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        HTML to render instead of a URL.
      </td>
    </tr>

    <tr>
      <td>
        `markdown`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Markdown to render instead of a URL.
      </td>
    </tr>

    <tr><td>`format`</td><td>string</td><td>body</td><td>Output format, default jpg. One of `png`, `jpeg`, `jpg`, `webp`, `gif`, `jp2`, `tiff`, `avif`, `heif`, `pdf`, `html`, `markdown`</td></tr>

    <tr>
      <td>
        `full_page`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Capture the whole scrollable page, default false.
      </td>
    </tr>

    <tr>
      <td>
        `selector`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        CSS selector of the one element to capture.
      </td>
    </tr>

    <tr>
      <td>
        `viewport_width`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Viewport width in pixels, default 1280.
      </td>
    </tr>

    <tr>
      <td>
        `viewport_height`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Viewport height in pixels, default 1024.
      </td>
    </tr>

    <tr>
      <td>
        `device_scale_factor`
      </td>

      <td>
        number
      </td>

      <td>
        body
      </td>

      <td>
        Pixel ratio, 1 to 5.
      </td>
    </tr>

    <tr>
      <td>
        `image_quality`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        0 to 100, default 80.
      </td>
    </tr>

    <tr>
      <td>
        `block_ads`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Block ads.
      </td>
    </tr>

    <tr>
      <td>
        `block_cookie_banners`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Hide cookie consent banners.
      </td>
    </tr>

    <tr>
      <td>
        `block_trackers`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Block trackers.
      </td>
    </tr>

    <tr>
      <td>
        `block_chats`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Block chat widgets.
      </td>
    </tr>

    <tr>
      <td>
        `dark_mode`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        true asks the page for dark mode, false for light.
      </td>
    </tr>

    <tr>
      <td>
        `delay`
      </td>

      <td>
        number
      </td>

      <td>
        body
      </td>

      <td>
        Seconds to wait before capturing, default 0.
      </td>
    </tr>

    <tr>
      <td>
        `wait_until`
      </td>

      <td>
        array
      </td>

      <td>
        body
      </td>

      <td>
        Navigation events to wait for, default \[load]; values load, domcontentloaded, networkidle0, networkidle2.
      </td>
    </tr>

    <tr>
      <td>
        `wait_for_selector`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Wait until this CSS selector is in the DOM.
      </td>
    </tr>

    <tr>
      <td>
        `timeout`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Seconds, default 60, max 90.
      </td>
    </tr>

    <tr>
      <td>
        `ip_country_code`
      </td>

      <td>
        string
      </td>

      <td>
        body
      </td>

      <td>
        Country of the exit IP, default us (us, gb, de, it, fr, cn, ca, es, jp, kr, in, au, br, mx, nz, pe, is, ie).
      </td>
    </tr>

    <tr><td>`response_type`</td><td>string</td><td>body</td><td>by\_format returns the file; json returns a JSON answer (with the metadata\_\* results); empty returns nothing. One of `by_format`, `empty`, `json`</td></tr>

    <tr>
      <td>
        `cache`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Cache the result; cached hits do not use quota.
      </td>
    </tr>

    <tr>
      <td>
        `cache_ttl`
      </td>

      <td>
        integer
      </td>

      <td>
        body
      </td>

      <td>
        Cache lifetime in seconds, 14400 to 2592000; needs cache=true.
      </td>
    </tr>

    <tr>
      <td>
        `metadata_page_title`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Return the page title (with response\_type=json).
      </td>
    </tr>

    <tr>
      <td>
        `metadata_open_graph`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Return parsed Open Graph data.
      </td>
    </tr>

    <tr>
      <td>
        `metadata_content`
      </td>

      <td>
        boolean
      </td>

      <td>
        body
      </td>

      <td>
        Upload the page content and return its URL.
      </td>
    </tr>

    <tr><td>`metadata_content_format`</td><td>string</td><td>body</td><td>Format of metadata\_content, default html. One of `html`, `markdown`</td></tr>
  </tbody>
</table>

[Vendor docs](https://screenshotone.com/docs/getting-started/) · Same job: [Litescrape](https://docs.webrouter.net/data-apis/litescrape.md#litescrape-web-screenshot), [Search1API](https://docs.webrouter.net/data-apis/search1api.md#search1api-web-screenshot), [Spider Cloud](https://docs.webrouter.net/data-apis/spidercloud.md#spidercloud-screenshot-page)

```python Python theme={null}
router.call_data_api("screenshotone.take.post", {'url': 'https://example.com'})
```

```text MCP theme={null}
call_data_api(endpoint="screenshotone.take.post", params={"url": "https://example.com"})
```

> [!NOTE]
>
> * A read over POST. Body limit 100 MiB; for very large HTML host it and pass url instead.
> * Uses one render from the quota unless served from cache.

### Get quota usage

GET

`/usage`

`screenshotone.usage`

Requests allowed, used and available in the period, and the per-minute concurrency bucket.

Input

No inputs.

[Vendor docs](https://screenshotone.com/docs/get-usage/)

```python Python theme={null}
router.call_data_api("screenshotone.usage")
```

```text MCP theme={null}
call_data_api(endpoint="screenshotone.usage")
```

> [!NOTE]
>
> * Free; a 400 with error\_code access\_key\_invalid means the key is wrong. concurrency.reset is a UNIX time in nanoseconds.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.