# Store Screenshot Url (`dainty_screw/store-screenshot-url`) Actor

Effortlessly capture and extract URL screenshots with the Store Screenshot URL Extractor. This powerful Apify actor is designed to streamline your data collection process, providing high-quality snapshots of web pages with ease. Ideal for market research, content verification, and SEO analysis, this

- **URL**: https://apify.com/dainty\_screw/store-screenshot-url.md
- **Developed by:** [codemaster devops](https://apify.com/dainty_screw) (community)
- **Categories:** Automation, E-commerce
- **Stats:** 88 total users, 0 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

$14.99/month + usage

To use this Actor, you pay a monthly rental fee to the developer. The rent is subtracted from your prepaid usage every month after the free trial period. You also pay for the Apify platform usage, which gets cheaper the higher Apify subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#rental-actors

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.
Actors are written with capital "A".

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## Screenshot URL Actor

This Actor serves as a practical demonstration of using an Input Schema. It takes a URL and screenshot configuration parameters as input and outputs a screenshot of the website into the Key-Value store.

### How It Works

#### Input

The input should be a JSON object containing specifications for capturing the screenshot. Below are the parameters you can configure:

| Field                             | Type    | Description                                                           | Allowed Values                                                   |
| --------------------------------- | ------- | --------------------------------------------------------------------- | ---------------------------------------------------------------- |
| `url`                             | String  | URL of the website to capture                                         | Any valid URL string                                             |
| `waitUntil`                       | String  | Specifies when to take the screenshot based on page load state        | "load", "domcontentloaded", "networkidle2", "networkidle0"       |
| `delay`                           | Number  | Delay in milliseconds after `waitUntil` event before taking screenshot| 0 to 3,600,000                                                   |
| `viewportWidth`                   | Number  | Width of the viewport for the screenshot                              | 100 to 3840                                                      |
| `scrollToBottom`                  | Boolean | Whether to scroll to the bottom of the page before taking a screenshot| true, false                                                      |
| `delayAfterScrolling`             | Number  | Delay after scrolling to the bottom before taking the screenshot      | 0 to 3,600,000                                                   |
| `waitUntilNetworkIdleAfterScroll` | Boolean | Wait for network to become idle after scrolling before screenshot     | true, false                                                      |
| `waitUntilNetworkIdleAfterScrollTimeout` | Number | Max wait time for network idle after scrolling              | 1,000 to 3,600,000                                               |

#### Output

The actor outputs a screenshot of the specified website into a file named `OUTPUT` in the Key-Value store associated with the actor's run.

### Connect With Us

- **YouTube**: [Visit our channel](https://www.youtube.com/@CodeMaster-421)
- **Instagram**: [Follow us on Instagram](https://www.instagram.com/quicklifesolutionsofficial/)
- **AI Newsletter**: [Subscribe to our newsletter](https://sendfox.com/quicklifesolutions)
- **Free Consultation**: [Book a free consultation call](https://tidycal.com/quicklifesolutions/free-consultation)
- **Explore More Tools**: [Check out our Apify actors](https://apify.com/dainty_screw)

#### Support

- **Discord**: [Raise a Support ticket here](https://discord.gg/2WGj2PDmHb)
- **Email**: [Contact us](mailto:codemasterdevops@gmail.com)

This Actor is an essential tool for anyone needing quick and accurate web screenshots. Perfect for testing, archiving, or content verification purposes.

# Actor input Schema

## `urls` (type: `array`):

List of URLs you want to take screenshots of.

## `waitUntil` (type: `string`):

Control's when will the browser take a screenshot

## `delay` (type: `integer`):

Add's delay before a screenshot is taken. Mimimum is 0, maximum is 5 minutes (3600000ms)

## `viewportWidth` (type: `integer`):

How wide should the website's viewport be

## `scrollToBottom` (type: `boolean`):

Should the browser scroll to the bottom of the page before taking a screenshot

## `delayAfterScrolling` (type: `integer`):

Specify the delay (in milliseconds) after scrolling to the bottom of the page before taking the screenshot. This option is only used if 'Wait for Network Idle After Scrolling' is not enabled.

## `waitUntilNetworkIdleAfterScroll` (type: `boolean`):

Choose whether to wait for the network to become idle after scrolling to the bottom of the page before taking a screenshot. If enabled, this option overrides the 'Delay After Scrolling' option.

## `waitUntilNetworkIdleAfterScrollTimeout` (type: `integer`):

Specify the maximum wait time (in milliseconds) for the network to become idle after scrolling to the bottom of the page before taking the screenshot, this option is used to make sure handler doesn't get stuck for some pages. This option is only used if 'Wait for Network Idle After Scrolling' is enabled.

## `proxy` (type: `object`):

Set the proxy configuration of the scraper

## `selectorsToHide` (type: `string`):

List of selectors to hide before taking a screenshot

## Actor input object example

```json
{
  "urls": [
    {
      "url": "https://www.apify.com/"
    }
  ],
  "waitUntil": "load",
  "delay": 0,
  "viewportWidth": 1280,
  "scrollToBottom": false,
  "delayAfterScrolling": 2500,
  "waitUntilNetworkIdleAfterScroll": false,
  "waitUntilNetworkIdleAfterScrollTimeout": 30000,
  "proxy": {
    "useApifyProxy": true
  },
  "selectorsToHide": ""
}
```

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "urls": [
        {
            "url": "https://www.apify.com/"
        }
    ],
    "waitUntil": "load",
    "delay": 0,
    "proxy": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("dainty_screw/store-screenshot-url").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "urls": [{ "url": "https://www.apify.com/" }],
    "waitUntil": "load",
    "delay": 0,
    "proxy": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("dainty_screw/store-screenshot-url").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "urls": [
    {
      "url": "https://www.apify.com/"
    }
  ],
  "waitUntil": "load",
  "delay": 0,
  "proxy": {
    "useApifyProxy": true
  }
}' |
apify call dainty_screw/store-screenshot-url --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,dainty_screw/store-screenshot-url"
        }
    }
}

```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/vwroWO2eLJh09Yld4/builds/OBcRs6kMnGeggutHA/openapi.json
