# Competitor Page & Price Change Monitor (`kayhermes/ai-competitor-monitor`) Actor

Monitor public competitor pages for content and price changes. Evidence-linked receipts, durable baselines, optional alerts. Static HTML only; no AI-generated summary or browser rendering in this release.

- **URL**: https://apify.com/kayhermes/ai-competitor-monitor.md
- **Developed by:** [Khoa Nguyen](https://apify.com/kayhermes) (community)
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 monitored pages

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

## Competitor Page & Price Change Monitor

Monitor public competitor pages, pricing and changes with evidence-linked results. Lightweight HTTP fetching, without a browser. The primary event is billed only after a page is successfully read and processed. Failed fetches, inaccessible pages and removal alerts are not charged as successful checks.

### Highlights

- Monitor specified public web pages across repeat runs using persistent snapshots and fingerprints.
- Detect normalized text and price changes while reducing noise from timestamps and session tokens.
- Treat disappearing pages cautiously: two successive definitive 404 or 410 checks are needed for removal.
- Review machine-readable evidence, settled receipts, dataset items and optional alert attempts.
- Set run budget limits and explicitly choose the URLs to check.

### Pricing (release target)

- Monitored page: $0.002 per successfully read page, regardless of whether it changed. Failed or skipped pages are free of the monitored-page event.
- Actor start: $0.00005 per applicable Apify-managed start event. The platform determines the number of start events; the local receipt excludes automatic start events, which appear in the Apify billing ledger.
- AI analysis: not available or charged in this release. A future AI implementation could have its own event price.
- Examples excluding automatic start: 50 successful checks = $0.10; 1,000 = $2.00. Actual charges depend on successfully read pages and the maximum run charge.
- Any separate platform usage costs appear in the Apify estimate.

### Quick start

Set targets to public URLs, for example:
{ "targets": \["https://example.com/"], "enableAiSummary": false, "maxTargets": 10, "maxConcurrency": 2, "respectRobotsTxt": true }

Run again later with the same URL to compare with the saved baseline. See OUTPUT and the dataset for change evidence and billing disclosure.

### Settings

- includeUrlRegex and excludeUrlRegex filter targets.
- contentSelector narrows structural extraction.
- requestTimeoutSecs, maxRedirects and maxConcurrency control fetching.
- respectRobotsTxt defaults to true.
- minimumAlertSeverity and alertDestinations configure optional webhook, Slack, Discord or Telegram alert attempts.
- maxTotalChargeUsd limits paid events locally; also use Apify's maximum run charge setting.

### Honest limitations

- Static HTML only: no JavaScript rendering, screenshots, visual diffs, CAPTCHA solving or logins.
- AI summaries not available: enableAiSummary is retained for compatibility, but the current entrypoint has no model provider. When requested, the feature reports NOT_RUN and does not charge the AI analysis event.
- Failed HTTP requests and anti-bot protections can prevent full coverage. A failed page is not billed as a successful check.
- Local settled charges exclude Apify-managed automatic events and explicitly mark unverified charge acknowledgements for reconciliation.
- Concurrent runs for the same Actor may be refused by server-side lease admission to avoid double billing.
- No guarantees of completeness or visual comparison.

### Running

Default memory is 256 MB. For repeat monitoring, create an Apify schedule suitable for the sites' rules and rate limits. A higher memory option may be needed for larger workloads.

# Actor input Schema

## `targets` (type: `array`):

Pages to watch. Each is fetched exactly once per run.

## `includeUrlRegex` (type: `string`):

Optional regular expression. Non-matching targets are rejected with a reason, never silently dropped.

## `excludeUrlRegex` (type: `string`):

Optional regular expression applied after the include filter.

## `contentSelector` (type: `string`):

Restrict extraction to one element by id or class, e.g. #main or .price-block. Leave empty for the whole visible page.

## `maxTargets` (type: `integer`):

Reject input above this many targets rather than silently truncating.

## `requestTimeoutSecs` (type: `integer`):

Maximum time to wait for each requested page before recording a failed fetch.

## `maxRedirects` (type: `integer`):

Every hop is re-checked by the network guard.

## `maxConcurrency` (type: `integer`):

Maximum number of page requests processed concurrently in one run.

## `respectRobotsTxt` (type: `boolean`):

A monitor should not behave like a scraper.

## `minimumAlertSeverity` (type: `string`):

Changes below this severity are not dispatched.

## `alertDestinations` (type: `array`):

Where to send change alerts. Suppressed alerts make no outbound call.

## `enableAiSummary` (type: `boolean`):

Not available in this release: no AI model provider is connected. Leave OFF. Turning it on will not generate AI summaries or charge ai-analysis events.

## `maxTotalChargeUsd` (type: `number`):

Hard ceiling on this run's settled charges. Leave empty for no ceiling. Checked BEFORE each charge, so no money is spent past it.

## Actor input object example

```json
{
  "targets": [],
  "includeUrlRegex": "",
  "excludeUrlRegex": "",
  "contentSelector": "",
  "maxTargets": 1000,
  "requestTimeoutSecs": 30,
  "maxRedirects": 5,
  "maxConcurrency": 5,
  "respectRobotsTxt": true,
  "minimumAlertSeverity": "low",
  "enableAiSummary": false
}
```

# Actor output Schema

## `changes` (type: `string`):

Dataset of structured reports, including page observations, detected changes and billing disclosures.

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

Run report with evidence, capability states and local settled billing totals.

## `report` (type: `string`):

Human-readable report saved at the REPORT_HTML key.

# 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 = {
    "targets": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("kayhermes/ai-competitor-monitor").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 = { "targets": [] }

# Run the Actor and wait for it to finish
run = client.actor("kayhermes/ai-competitor-monitor").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 '{
  "targets": []
}' |
apify call kayhermes/ai-competitor-monitor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,kayhermes/ai-competitor-monitor"
        }
    }
}
```

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/KUBYO8Hf19rAeG1YK/builds/KorKQ5FqW2aQM4Ho2/openapi.json
