# 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, 1 monthly users, 100.0% runs succeeded, 4 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

from $0.50 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
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.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## 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.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# 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.

# Changelog

This Actor's version history is a separate document: https://apify.com/dainty_screw/store-screenshot-url/changelog.md

# 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
