# Website Tech Stack Watch (`mikee368/website-tech-stack-watch`) Actor

Detect CMS, shop, analytics, ad pixels, chat, payments, and CDN or hosting from one homepage request plus DNS. Watch mode returns added and removed technologies. Watch mode charges every analysed site, including unchanged sites that emit no row.

- **URL**: https://apify.com/mikee368/website-tech-stack-watch.md
- **Developed by:** [Mike Berckmoes](https://apify.com/mikee368) (community)
- **Categories:** Automation, Marketing
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$2.50 / 1,000 site analyzeds

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

## Website Tech Stack Watch

Detect the CMS, shop platform, analytics and ad pixels, chat, payments, and CDN or hosting on a list of domains. One polite homepage request per site, plus the response headers, cookies, meta tags, script sources, and public DNS (CNAME, NS, MX). There is no browser.

A one-off run stores one row per domain. Set a Watch ID to keep the last technology names under `state-<watchId>` and, on later runs, store a row only when a technology was added or removed, plus the first time a domain is seen. **Watch mode charges every analysed site, including unchanged sites that emit no row.**

### What it does

- Fetches `https://<domain>/` only. A path in the input is ignored. `http://` is fetched as https. Ports other than 443 and URLs with a username or password are rejected.
- Reads `robots.txt` with the same user agent before the homepage and obeys it, including `Crawl-delay` (0.5 to 5 seconds). An unreachable robots file is treated as an unreachable site. `404` allows the homepage.
- Follows at most 5 redirects. Each hop is resolved again and refused when any address is not a global unicast address, including private, loopback, link-local, and CGNAT (`100.64.0.0/10`) space. The DNS lookup for that check runs off the event loop.
- Each request times out after 15 seconds, and each homepage or DNS reply is also capped at about 30 seconds. The request asks for `gzip` or `deflate` only.
- Up to 5 sites run at once. The charge budget is reserved before a fetch so parallel sites cannot pass the cap together.
- The run stops after 15 unreachable or blocked sites in a row, or 50 in total.
- The body is read raw. Only `identity`, a single `gzip`, or a single `deflate` are decoded, with zlib stopped at 1.5 MB. Stacked encodings, `br`, and `zstd` are a free `unreachable` row (`unsupported-encoding`).
- Pattern matching uses a 0.25 second limit per pattern and about 10 seconds of CPU time per site (`time.thread_time`). Headers, cookies, meta, script sources, and DNS run before HTML patterns, and common products run first. When the budget runs out, `detectionTruncated` is true, that row is free, it does not list added or removed technologies, it does not call the webhook, and it counts toward the 15-in-a-row and 50-total failure caps. Watch history is left as it was.
- Dataset rows are stored in the order each site finishes, which can differ from the input order when several sites run at once.
- Asks Cloudflare DNS-over-HTTPS for CNAME, NS, and MX. A resolver failure does not fail the homepage analysis.
- Charges `site-analyzed` at $0.0025 only after a complete HTML analysis. Unreachable, blocked, robots-disallowed, non-HTML, and `detectionTruncated` rows are free. There is no start fee. The run checks the remaining charge budget before each site and stops without fetching once the cap is reached.
- Remembers domains charged in this run id under `charged-<runId>` so a resumed run does not charge them again. That record is deleted at the end of a clean run. A storage error on the delete is logged and does not fail the run.
- A one-off run never reads or writes `state-<watchId>`.

Saved watch state is one record per Watch ID in the named store `website-tech-stack-watch-state`. It stays there until you delete it.

### Fingerprints

Technology patterns come from [enthec/webappanalyzer](https://github.com/enthec/webappanalyzer), the GPL-3.0 continuation of the Wappalyzer catalogue. That project has no tagged release, so the image pins commit `eea872af449e207e055398f7369d11ee48c8ea03` and checks the tarball sha256 in `fetch_fingerprints.py`. The JSON is downloaded when the image is built. It is not committed in this repository.

The image keeps about 3,000 technologies in the categories this Actor reports (CMS, ecommerce, blogs, page builders, analytics, advertising, tag managers, retargeting, RUM, live chat, payments, buy-now-pay-later, marketing automation, CDN, hosting, PaaS, IaaS, reverse proxies, web servers, and caching). Rules that need a browser (JavaScript properties, DOM, CSS) or an extra probe URL are not used. Implied products are reported only when they are in that set.

The catalogue is © its contributors and licensed under the GNU General Public License v3.0. The licence text is written next to the fingerprints in the image (`my_actor/vendor/LICENSE`). The Actor source in this repository is separate from that data.

### What you get

| Field | Meaning | Example |
|---|---|---|
| `domain` | Normalised host | `example.com` |
| `finalUrl` | Homepage after redirects | `https://example.com/` |
| `status` | `ok`, `unreachable`, `blocked`, `robots_disallowed`, `non_html`, `invalid`, or `already_charged` | `ok` |
| `httpStatus` | Last homepage status | `200` |
| `technologies` | `name`, `category`, `confidence` (0–100), `evidence` | WordPress, CMS, meta generator |
| `change` | `first_seen` or `changed` on a watch row. Null on a one-off row | `first_seen` |
| `added`, `removed` | Technology names that appeared or disappeared | `["Shopify"]` |
| `checkedAt` | UTC time the row was built | set at run time |
| `error` | Why the site was not analyzed | null on `ok` |

`RUN_SUMMARY` holds the charge count, status counts, webhook result, and the reason a run stopped.

### How to use it

1. Paste domains, one per line. The hard cap is 500.
2. Leave Watch ID empty for a full report.
3. For a schedule, set one Watch ID per list. The first run stores every site. Later runs with the same ID add a row only for a new domain or a changed stack. Every analysed site is charged on those later runs too, including sites that did not change and produced no row.
4. Optional webhook: an https URL on port 443. Watch changes are POSTed with a 5 second timeout. Redirects are not followed. After 3 failures the webhook is turned off for the rest of the run. A one-off run does not call it.

### Input

```json
{
  "domains": ["example.com", "apify.com"]
}
```

A bad Watch ID, a webhook that is not public https on port 443, or an empty domain list stops the run. Nothing is fetched and nothing is charged.

### Pricing

**$2.50 per 1,000 analyzed sites** ($0.0025 per `site-analyzed`), pay per event, with no start fee. The live price on mikee368/website-tech-stack-watch (4KnfbjqFNLDm68507) is **$0.0025** per `site-analyzed`.

Watch mode charges every analysed site on every run, including a site whose technology list did not change and therefore has no dataset row.

A complete `ok` row is the only charge. Unreachable, blocked, robots-disallowed, non-HTML, and `detectionTruncated` rows are free. 400 analyzed sites and 100 blocked sites cost $1.00. When the run charge cap is reached, the remaining domains are not fetched.

### Limits

- 256 MB. No browser.
- 15 seconds per request, 5 redirects, 500 domains.
- The example input (`example.com` and `apify.com`) is two homepages and stays under 5 minutes.
- JavaScript-only products that do not appear in the HTML, headers, cookies, script sources, or DNS are not detected.

### Licence note

Fingerprint data: [enthec/webappanalyzer](https://github.com/enthec/webappanalyzer) commit `eea872af449e207e055398f7369d11ee48c8ea03`, GNU GPL-3.0. See that repository's LICENSE. This Actor does not vendor the JSON; `fetch_fingerprints.py` downloads it at build time and exits if the sha256 does not match.

# Actor input Schema

## `domains` (type: `array`):

Hostnames to check, one per line, up to 500. example.com and https://example.com/path both fetch https://example.com/. http is fetched as https. Private hosts, userinfo, and ports other than 443 are rejected and not charged.

## `watchId` (type: `string`):

When set, this run is a watch. The last technology names for each domain are stored under state-<watchId> in the named store website-tech-stack-watch-state. Later runs with the same ID output a row only when a technology is added or removed, plus the first time a domain is seen. Leave empty for a one-off report. A one-off run does not read or write that state. 1-64 letters, numbers, dots, underscores, or hyphens.

## `webhookUrl` (type: `string`):

Optional https URL on port 443. In watch mode, each first-seen or changed row is POSTed once. Timeout is 5 seconds. Redirects are not followed. After 3 failed deliveries the webhook is disabled for the rest of the run. A one-off run does not call it.

## Actor input object example

```json
{
  "domains": [
    "example.com",
    "apify.com"
  ],
  "watchId": "",
  "webhookUrl": ""
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset of technology rows

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

Charges, statuses, and why a run stopped

# 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 = {
    "domains": [
        "example.com",
        "apify.com"
    ],
    "watchId": "",
    "webhookUrl": ""
};

// Run the Actor and wait for it to finish
const run = await client.actor("mikee368/website-tech-stack-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 = {
    "domains": [
        "example.com",
        "apify.com",
    ],
    "watchId": "",
    "webhookUrl": "",
}

# Run the Actor and wait for it to finish
run = client.actor("mikee368/website-tech-stack-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 '{
  "domains": [
    "example.com",
    "apify.com"
  ],
  "watchId": "",
  "webhookUrl": ""
}' |
apify call mikee368/website-tech-stack-watch --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,mikee368/website-tech-stack-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/4KnfbjqFNLDm68507/builds/nlGfBsOwkxvIEbkpa/openapi.json
