# Tech Stack Detector – Website Technology Lookup (`cellwright/tech-stack-detector`) Actor

Detects the technologies behind any list of websites: CMS, ecommerce, analytics, frameworks, CDN, hosting, payment and email providers – with versions, confidence and evidence. Plus security headers, TLS expiry and SPF/MX.

- **URL**: https://apify.com/cellwright/tech-stack-detector.md
- **Developed by:** [Cellwright](https://apify.com/cellwright) (community)
- **Categories:** Developer tools, Lead generation, SEO tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 0 monthly users, 0.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

Pay per event

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/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

## Tech Stack Detector – Website Technology Lookup

Find out **what any website is built with** – for a list of 1 or 50,000 sites. For each website you get the **CMS, ecommerce platform, analytics and tag managers, JavaScript frameworks and libraries, CDN, hosting, web server, payment and email providers** – each with **version** (where visible), **confidence** and the **evidence** that triggered the detection.

On top, every record includes a **security snapshot** (HTTPS, HSTS, CSP and four more security headers, server-version exposure), the **TLS certificate** (issuer, protocol, days until expiry) and **email DNS** (MX hosts, SPF record) – from the same request, at no extra cost.

Plain HTTP + DNS, no browser: fast and cheap. Ideal for **lead lists by technology** (e.g. all Shopify or WooCommerce shops in a list), competitor research, agency audits, migration planning, security hygiene checks and enrichment of website lists from other Actors.

### Why this Actor

- **~3,900 technologies in 100+ categories**, open-source fingerprint format (headers, cookies, HTML, meta tags, script URLs, inline scripts and CSS, DOM selectors, DNS records, TLS issuer).
- **Versions and confidence**, not just names – plus `implies`/`requires`/`excludes` logic (e.g. WooCommerce ⇒ WordPress ⇒ PHP).
- **Flat convenience fields** for spreadsheets: `cms`, `ecommerce`, `analytics`, `tagManagers`, `javascriptFrameworks`, `webServers`, `cdn`, `hosting`, `paymentProcessors`, `emailProviders`.
- **Security + TLS + SPF** in the same record – no second tool needed.
- **Never fails silently:** every input URL gives exactly one record; unreachable sites come back with an `error` and are **not charged**.
- **Safe and polite:** one request per site (plus robots.txt), honest user agent, respects robots.txt by default, private/internal addresses blocked.

### Input

| Field | Default | Description |
|---|---|---|
| `startUrls` | – | Websites (homepage or any URL), up to 50,000 per run |
| `includeDns` | `true` | MX/TXT/NS/SOA/CNAME lookups → email & DNS providers, MX hosts, SPF |
| `includeSecurity` | `true` | Security headers + TLS certificate summary |
| `onlyCategories` | – | e.g. `["CMS", "Ecommerce"]` – return only these categories |
| `minConfidence` | `0` | Drop detections below this confidence (%) |
| `respectRobotsTxt` | `true` | Skip pages disallowed by robots.txt (free error record) |
| `maxConcurrency` | `10` | Websites in parallel (1–50) |
| `requestTimeoutSecs` | `30` | Per request, one automatic retry |

Example:

```json
{
  "startUrls": [{ "url": "https://www.example.com" }, { "url": "shop.example.ch" }],
  "onlyCategories": ["CMS", "Ecommerce", "Analytics"]
}
```

### Output (one record per website)

| Field | Description |
|---|---|
| `url`, `domain`, `finalUrl`, `statusCode`, `redirectCount`, `responseTimeMs` | Request result |
| `title` | Page title |
| `technologies` | `[{name, version, confidence, categories, website, cpe, saas, openSource, evidence}]`, sorted by confidence |
| `technologyNames`, `technologyCount` | Flat list and count |
| `categories` | `{category: [technology names]}` |
| `cms`, `ecommerce`, `analytics`, `tagManagers`, `javascriptFrameworks`, `webServers`, `cdn`, `hosting`, `paymentProcessors`, `emailProviders` | Convenience lists |
| `security` | `https`, `redirectsToHttps`, `hsts`, `contentSecurityPolicy`, `xFrameOptions`, `xContentTypeOptions`, `referrerPolicy`, `permissionsPolicy` (header values or `null`), `securityHeadersPresent` (of 6), `exposesServerVersion` |
| `tls` | `issuer`, `issuerCommonName`, `protocol`, `validTo`, `daysUntilExpiry`, `subjectAltNames` (count) – HTTPS only |
| `dns` | `mx` (hosts), `spf` (record or `null`) |
| `warning` | e.g. `HTTP 404` – the page answered with an error but was still analyzed |
| `error`, `errorType` | Why a website could not be analyzed (`network`, `blocked`, `robots`) – not charged |

The run summary (`OUTPUT` in the key-value store) lists the 50 most common technologies across all websites.

Example record (shortened):

```json
{
  "url": "https://shop.example.ch/",
  "statusCode": 200,
  "cms": ["WordPress"],
  "ecommerce": ["WooCommerce"],
  "analytics": ["Google Analytics"],
  "technologies": [
    { "name": "WordPress", "version": "6.4.2", "confidence": 100, "categories": ["CMS", "Blogs"], "evidence": ["meta:generator", "scriptSrc"] }
  ],
  "security": { "https": true, "hsts": "max-age=31536000", "securityHeadersPresent": 3 },
  "tls": { "issuer": "Let's Encrypt", "daysUntilExpiry": 61 },
  "dns": { "mx": ["aspmx.l.google.com"], "spf": "v=spf1 include:_spf.google.com ~all" }
}
```

### Pricing (pay per event)

| Event | Price |
|---|---|
| Website analyzed | $0.001 |

**$1 per 1,000 websites**, all options included (DNS, security, TLS). Unreachable, blocked and robots.txt-disallowed websites are free.

### Limits

- One HTTP request per website (the start page, redirects followed). Technologies that only appear on sub-pages or only after JavaScript runs (e.g. some single-page apps that expose themselves only via JavaScript variables) may be missed; confidence below 100 % means fewer signals were seen.
- Fingerprint data: open-source Wappalyzer fingerprints, release 6.10.66 (GPL-3.0). Very new products may not be in the list yet.
- Only public websites. No logins, no captcha solving, no proxy rotation.
- No personal data: the Actor reports technologies, not people or contact details.

# Actor input Schema

## `startUrls` (type: `array`):

Websites to analyze – one start page per entry (homepage or any URL). Up to 50,000 per run. 'https://' is added if missing; duplicates are removed.

## `includeDns` (type: `boolean`):

Look up MX, TXT, NS, SOA and CNAME records to detect email providers (Google Workspace, Microsoft 365 …), DNS/CDN providers and verification records. Also returns MX hosts and the SPF record.

## `includeSecurity` (type: `boolean`):

Add a security summary (HTTPS, HSTS, CSP, X-Frame-Options, X-Content-Type-Options, Referrer-Policy, Permissions-Policy, server version exposure) and the TLS certificate issuer, protocol and days until expiry. No extra requests.

## `onlyCategories` (type: `array`):

Optional. Return only technologies in these categories, e.g. 'CMS', 'Ecommerce', 'Analytics', 'JavaScript frameworks', 'CDN', 'Payment processors'. Empty = all categories.

## `minConfidence` (type: `integer`):

Drop detections below this confidence (0–100). 0 = return everything with its confidence value.

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

Skip pages the site's robots.txt disallows for this bot (free error record). Turn off only for websites you own or may analyze.

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

Websites analyzed in parallel (1–50).

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

Timeout per HTTP request (5–120). One automatic retry on network errors, 429 and 503.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://wordpress.org"
    },
    {
      "url": "https://www.shopify.com"
    },
    {
      "url": "https://apify.com"
    }
  ],
  "includeDns": true,
  "includeSecurity": true,
  "minConfidence": 0,
  "respectRobotsTxt": true,
  "maxConcurrency": 10,
  "requestTimeoutSecs": 30
}
```

# Actor output Schema

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

One item per processed input in the default dataset (JSON, CSV, Excel via the dataset export).

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

Totals and statistics of the run (OUTPUT record).

# 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 = {
    "startUrls": [
        {
            "url": "https://wordpress.org"
        },
        {
            "url": "https://www.shopify.com"
        },
        {
            "url": "https://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("cellwright/tech-stack-detector").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 = { "startUrls": [
        { "url": "https://wordpress.org" },
        { "url": "https://www.shopify.com" },
        { "url": "https://apify.com" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("cellwright/tech-stack-detector").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 '{
  "startUrls": [
    {
      "url": "https://wordpress.org"
    },
    {
      "url": "https://www.shopify.com"
    },
    {
      "url": "https://apify.com"
    }
  ]
}' |
apify call cellwright/tech-stack-detector --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cellwright/tech-stack-detector"
        }
    }
}
```

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/dtzzHiPLJz1g7InzR/builds/O0kvsYSdH7LpmF51a/openapi.json
