# Aktomate URL Watch (`nickslam/aktomate-url-watch`) Actor

Watch a customer-named public URL for text/price changes. Public pages only — no Maps or lead scraping. PPE: pay per check and per change.

- **URL**: https://apify.com/nickslam/aktomate-url-watch.md
- **Developed by:** [Nick](https://apify.com/nickslam) (community)
- **Categories:** Automation, E-commerce
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $5.00 / 1,000 url checks

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

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

## Aktomate URL Watch

**Watch a customer-named public URL** for visible-text or Shopify price changes. Hash the page, compare to a previous run, and get a clear `changed` flag — built for indie e-com / ops digests, not lead gen.

Try it with any public `https://` page (for example `https://example.com`). Pass an optional `previousHash` from a prior run to detect change.

### What this Actor does

1. Fetches the URL you provide (public HTTP/HTTPS only).
2. Extracts either **visible text** or a **Shopify product fingerprint** (title / price / availability) when the path looks like `/products/...`.
3. Returns a SHA-256 `hash`, a short `snippet`, optional `price`, and `changed` if `previousHash` differs.
4. Charges PPE events: `check` on every run, `change` only when a difference is detected.

**Platform extras:** schedule runs, call via Apify API / MCP, export the dataset to Sheets or webhooks, and keep compute bounded with a 256–512 MB memory cap.

### Legal scope

- **Public pages only** — same category as Visualping-style monitors.
- **No** Google Maps scraping, lead harvesting, wallet tools, or logged-in / behind-paywall pages.
- You must have the right to monitor the URL you pass in.

### How much does it cost?

Pay-per-event (PPE). Suggested Store prices (set in Console → Publishing → Monetization):

| Event | Suggested price | When |
|---|---|---|
| `apify-actor-start` | $0.00005 (keep default) | Automatic; covers first ~5s compute |
| `check` | **$0.005** (primary) | Every successful Actor start / fetch attempt |
| `change` | **$0.03** (~6× check) | When `previousHash` is set and differs from the new hash |

**Remove** the synthetic `apify-default-dataset-item` event so dataset writes are not double-billed with custom `check`/`change`.

Rough example: 1,000 baseline checks ≈ $5 in `check` events (plus tiny start charges). Free-plan users do not generate creator profit; paid-plan runs do (≈80% of event revenue minus platform cost).

Managed digests on [aktomate.com](https://aktomate.com) use Cloudflare Workers for cheap daily checks; use this Actor when you want Store/API access or harder pages later.

### Input

| Field | Required | Description |
|---|---|---|
| `url` | yes | Public `http(s)` page to check |
| `previousHash` | no | SHA-256 from a prior run; omit to establish a baseline |
| `mode` | no | `auto` (default), `visible_text`, or `shopify_price` |

```json
{
  "url": "https://example.com",
  "mode": "visible_text"
}
```

With change detection:

```json
{
  "url": "https://example.com/products/demo",
  "previousHash": "abc123…",
  "mode": "auto"
}
```

### Output

One dataset row per run:

| Field | Meaning |
|---|---|
| `url` | Input URL |
| `changed` | `true` if `previousHash` was set and differs |
| `hash` | New content fingerprint (store this for the next run) |
| `price` | Shopify price when mode resolves to shopify |
| `snippet` | Short text preview |
| `mode` | Mode actually used |
| `error` | Error message if the fetch/extract failed |

Key-value `OUTPUT` also stores `{ hash, changed, mode, price }` for easy chaining.

### How to use

1. Open the Actor in Apify Console or call it via API.
2. Paste a public URL; leave `previousHash` empty for the first run.
3. Save the returned `hash`.
4. On the next schedule, pass that hash as `previousHash` — `changed: true` means something meaningful moved.
5. Wire a webhook or Actor task to email / Slack / your digest pipeline when `changed` is true.

### Relation to Aktomate site product

| Rail | Role |
|---|---|
| **aktomate.com** (Workers + D1 + email) | Managed Watch & Digest SaaS for end customers |
| **This Actor** | Apify Store / PPE cash rail + API for builders; fallback when proxy/JS rendering is needed |

Same legal niche: customer-named public URLs only.

### FAQ

**Is scraping allowed?** This Actor monitors pages you name. It does not crawl directories or Maps. Respect the target site’s terms and robots rules.

**Why is my first run `changed: false`?** Without `previousHash` the run only sets a baseline.

**Shopify prices wrong?** Prefer `mode: "shopify_price"` on product URLs; otherwise `auto` falls back to visible text.

**Support:** Issues on the Actor page, or [aktomate.com](https://aktomate.com).

# Actor input Schema

## `url` (type: `string`):

Customer-named public HTTP(S) page to check. No Maps/lead scraping. Prefill for QA: https://example.com

## `previousHash` (type: `string`):

Optional SHA-256 from a prior run. If omitted, this run establishes a baseline only.

## `mode` (type: `string`):

visible_text, shopify_price (Shopify product pages), or auto.

## Actor input object example

```json
{
  "url": "https://example.com",
  "mode": "auto"
}
```

# Actor output Schema

## `results` (type: `string`):

Default dataset items from this run (url, changed, hash, price, snippet, mode, error).

## `summary` (type: `string`):

Compact JSON summary written to the default key-value store record OUTPUT.

# 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 = {
    "url": "https://example.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("nickslam/aktomate-url-watch").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 = { "url": "https://example.com" }

# Run the Actor and wait for it to finish
run = client.actor("nickslam/aktomate-url-watch").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 '{
  "url": "https://example.com"
}' |
apify call nickslam/aktomate-url-watch --silent --output-dataset

```

## MCP server setup

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

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/SiHmFvYaQNGxV3BaF/builds/vAvewHYOXlW2MGWEb/openapi.json
