# Tech Stack Detector API - CMS, Ecommerce & Frameworks (`stas_k/tech-stack-detector`) Actor

Most tech stack detectors bill a page they never read: a timeout or a 404 still lands in your bill. This one reads the page, names the CMS, framework and analytics it found with the evidence that matched, and charges nothing when it found nothing or your filter says no.

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

## Pricing

$3.00 / 1,000 sites

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

## Tech Stack Detector API - CMS, Ecommerce and Frameworks

Give it a list of domains. It reads each page and tells you what that site is built with:
the CMS, the ecommerce platform, the framework, the analytics, the ad pixels, the payment
provider, the CDN and the hosting. Every technology comes with the mark that proves it,
so a row is evidence, not a guess.

### What you get

One row per site:

- `technologies` - every match as `name`, `categories`, `confidence`, `evidence` and
  `version`;
- `evidence` names the exact mark that matched: a response header, a cookie, a script
  url, a meta tag or a snippet of the markup;
- `technologyNames` and `categories` - the same answer flattened, ready for a filter or
  a spreadsheet;
- `server` and `poweredBy` - the raw headers, which often say a lot on their own;
- `finalUrl` and `redirects` - where the request ended up.

A name is reported only when its mark proves it. A product word buried inside a hash,
inside somebody else's file name or inside a longer token is not that product: a Cloudinary
hash that spells `modx`, or the BBC's own `dotcom-bootstrap.js`, is not MODX and not
Bootstrap, and such a page is free. A header, a cookie or a generator meta tag is
`confidence: high`; a mark found only in the markup is `medium`, and `medium` on a name
like Contentful means an asset came from that platform, not that the whole site is built
on it. Filter on `high` when you need certainty.

About 160 signatures ship in the image: WordPress, Shopify, WooCommerce, Magento, Wix,
Webflow, Squarespace, HubSpot, Next.js, Nuxt, React, Vue, Angular, Svelte, Gatsby, Astro,
Laravel, Django, Rails, Google Analytics 4, Google Tag Manager, Meta Pixel, TikTok Pixel,
Klaviyo, Mailchimp, Intercom, Stripe, PayPal, Cloudflare, CloudFront, Fastly, Vercel,
Netlify, nginx, Apache, and more across 25 categories.

### How the money works

Pay per event: `site-scanned`, charged once for a site that was read and whose answer you
are given. Everything else is free, and the row still tells you why:

| status | when | charged |
|---|---|---|
| `OK` | the page was read and at least one technology was recognised | yes |
| `NO_TECHNOLOGY_FOUND` | the page was read and no signature matched | no |
| `FILTERED_OUT` | the site was scanned but your own `onlyIf` or `excludeIf` removed it | no |
| `NOT_CHECKED_BLOCKED_PAGE` | the site answered a challenge page instead of itself, whether it names itself (Cloudflare, Fastly, an anti-bot wall) or is a wall of markup with nothing to read | no |
| `NOT_CHECKED_NO_CONTENT` | the edge answered 202, 203 or 204: accepted, but there is no page inside | no |
| `NOT_CHECKED_EMPTY_PAGE` | the answer had no readable text at all, or an empty body | no |
| `NOT_CHECKED_*` | the site was not scanned: a typo, a timeout, a 404, a private address, a duplicate, a page that is a file, or the run stopped early | no |

A filter is a promise about the money: with `onlyIf: ["shopify"]` you pay only for the
sites that really run Shopify, and the rest come back as `FILTERED_OUT` with the answer
attached and no charge. That is the difference between buying a scan and buying a lead
list.

### Input

- `urls` - one site per line, a full url or a bare domain (`example.com` works);
- `maxSites` - the list is cut here (default 100), the rest come back free;
- `onlyIf` - deliver and charge only sites that use one of these technologies;
- `excludeIf` - skip sites that use any of these technologies;
- `timeoutSecs` - request timeout, default 20;
- `includeEvidence` - turn the evidence off for a leaner dataset;
- `userAgent` - empty means desktop Chrome. Some sites serve a different stack to a bot,
  and a custom value is how you look at that other answer.

A name in a filter matches a part of the technology name: `shopify` finds Shopify,
`next` finds Next.js, `google` finds Google Analytics 4 and Google Tag Manager.

### What this actor does not do

- it does not run javascript. A technology that only exists after a script executes is
  not seen, and a page with nothing recognised comes back free rather than wrong;
- it does not guess versions. A version is reported only where the vendor prints it,
  such as a generator meta tag or a versioned asset path;
- it does not use a commercial database such as BuiltWith or Wappalyzer: the answer is
  read from the page itself, which is why the price is a fraction of theirs;
- it does not keep history, take screenshots or crawl the whole site: one url, one page;
- it does not read a site through a proxy. A site that answers a challenge page
  instead of itself (Cloudflare, a captcha wall, "enable javascript") is recognised and
  comes back free as `NOT_CHECKED_BLOCKED_PAGE`, because the stack of a challenge page is
  not the stack of the site. The same goes for a wall that does not name itself: a page
  that ships kilobytes of markup and almost nothing to read is a challenge too, and an
  interim answer such as `202 Accepted` is not a page at all. Try a custom `userAgent`
  for those sites.

### Limits

- a page larger than 3 MB is refused with `NOT_CHECKED_TOO_LARGE`, because the marks live
  in the head and the first screens of markup;
- only `200` and `201` count as a page: `202`, `203` and `204` come back as
  `NOT_CHECKED_NO_CONTENT`, and an empty body as `NOT_CHECKED_EMPTY_PAGE`;
- at most 3 redirect hops, each one resolved and refused before its request goes out if it
  leads into a private network;
- a private or loopback address is refused before any request: this actor never reads the
  inner network, and it never charges for trying;
- one site gets the time left before the platform deadline, minus a margin. A server that
  drips a hundred bytes every few seconds comes back as `NOT_CHECKED_TIME` instead of
  taking the whole run down with it, which would lose every row of the run.

### Output

Every row also carries `status`, `reason`, `input`, `inputIndex`, `httpStatus`,
`contentType`, `detected` and `billable`. The run summary says how many lines were asked
for, how many were scanned, how many were filtered, how many had no known technology,
what the whole list is built with, and what was really charged. The summary lands under
`RUN_SUMMARY` in the run's own default key-value store, and under `RUN_SUMMARY-<runId>` in
the named store `tech-stack-detector-summary`, so two runs in a row do not overwrite each
other. `uniqueSites` counts the distinct urls in the list with the cut lines included, and
`sitesAttempted` says how many sites this run really worked on: a list cut by `maxSites`
is not a scan.

### Categories

The `categories` field groups a match as one of: `cms`, `ecommerce`, `framework`,
`js-library`, `ui`, `programming-language`, `server`, `hosting`, `cdn`, `analytics`,
`tag-manager`, `advertising`, `marketing`, `email`, `crm`, `support`, `chat`, `payments`,
`security`, `ab-testing`, `seo`, `video`, `fonts`, `page-builder`, `blogs`.

# Actor input Schema

## `urls` (type: `array`):

One site per line, a full url or a bare domain. Every site is read once: a line that repeats is free, and a line that is not a url comes back as its own free row with the reason.

## `maxSites` (type: `integer`):

The list is cut here, and sites beyond the limit come back free with status NOT_CHECKED_LIMIT. 0 means the default of 100, and the summary reports the number actually applied.

## `onlyIf` (type: `array`):

A lead list filter: a site that does not use any of these names comes back free with status FILTERED_OUT. A name matches a part of the technology name, so 'shopify' finds Shopify and 'next' finds Next.js. Empty means every scanned site is delivered.

## `excludeIf` (type: `array`):

The opposite filter: a site that uses any of these names comes back free with status FILTERED_OUT. Useful when WordPress shops are not your market.

## `timeoutSecs` (type: `integer`):

A site that does not answer in this many seconds comes back free with status NOT_CHECKED_TIMEOUT. Raising it costs run time, not money.

## `includeEvidence` (type: `boolean`):

On, every technology carries the mark that matched it: a response header, a cookie, a script url, a meta tag or a snippet of the markup. Turn it off for a leaner dataset, the names stay.

## `userAgent` (type: `string`):

An empty value sends a desktop Chrome user agent, which is what a site mostly serves to a visitor. Some sites answer a different stack to a bot, so a custom value is a way to look at that other answer.

## Actor input object example

```json
{
  "urls": [
    "https://www.shopify.com",
    "https://wordpress.org",
    "https://vercel.com"
  ],
  "maxSites": 100,
  "onlyIf": [],
  "excludeIf": [],
  "timeoutSecs": 20,
  "includeEvidence": true
}
```

# Actor output Schema

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

One row per site. status is OK when the row carries a detection somebody paid for, FILTERED_OUT when the site passed the scan but your own onlyIf or excludeIf removed it (free), NO_TECHNOLOGY_FOUND when the page was read and no signature matched (also free), or NOT_CHECKED\_\* with the reason in plain words: INVALID (the line is not an http url), DUPLICATE (the same site came earlier), LIMIT (beyond maxSites), PRIVATE_ADDRESS (a host name really answered with a non public address, whether the site itself or a redirect hop, and that hop was never requested), DNS_ERROR (the host name does not resolve or is not a valid host name), TIMEOUT (no answer in timeoutSecs), HTTP_ERROR (4xx or 5xx), NOT_HTML (the answer is a file, not a page), TOO_LARGE (a page over 3 MB), FETCH_ERROR (the page could not be read or redirected more than 3 times), BLOCKED_PAGE (the site answered a challenge page instead of itself, named or not, so its stack is not the stack of the site), NO_CONTENT (the edge answered 202, 203 or 204: accepted, but no page inside), EMPTY_PAGE (the answer carried no readable text at all), and TIME, CAP, BILLING and ERROR when the run stopped before this site for the reason named in the summary. The answer itself: technologies lists every match as name, categories, confidence, evidence and version, where evidence names the mark that matched (a header, a cookie, a script url, a meta tag or a snippet of the markup) and version is filled only where the vendor prints it. technologyNames is the same list flattened for filters and spreadsheets, categories is the sorted set of their categories, detected counts them, versionsFound maps a name to the version when one was read. server and poweredBy repeat the raw headers, because those two say a lot on their own. finalUrl and redirects say where the request ended up. billable is a claim about the price list; the money actually taken is chargedEvents in the summary.

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

Run summary. requested is how many lines were sent, blank lines included; processed plus filteredOut plus noTechnologyFound plus notChecked always equals requested. delivered counts OK rows, rowsWritten counts every row in the dataset, and chargedEvents is the money really taken, which stays 0 when billing is off for any reason. blockedPages, noContentPages and emptyPages count the answers that were not sites at all, byStatus splits the rows by the status above, byCategory and topTechnologies count what the whole list is built with, and noTechnologyFound counts the pages that were read with nothing recognised. sitesAttempted is how many sites this run really worked on, with the list cut by maxSites left out. onlyIf and excludeIf echo the filters that were applied, billableOnlyWhenMatched says whether a filter was in force, maxSites and cutByMaxSites say how the list was cut, and deadlineCapped says the platform deadline, not the list, ended the run. siteMarginSecs is the worst case the run reserved for one site. datasetItemCountApi is the platform counter, which lags by minutes, so a smaller number there is a lag and not a lost row, and datasetItemCountNote says so when it happens. priceEvent names the charged event, runId and finishedAt close the 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 = {
    "urls": [
        "https://www.shopify.com",
        "https://wordpress.org",
        "https://vercel.com"
    ],
    "onlyIf": [],
    "excludeIf": []
};

// Run the Actor and wait for it to finish
const run = await client.actor("stas_k/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 = {
    "urls": [
        "https://www.shopify.com",
        "https://wordpress.org",
        "https://vercel.com",
    ],
    "onlyIf": [],
    "excludeIf": [],
}

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

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,stas_k/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/CGTJRw5DwaVx1s9TZ/builds/M46rdOIk6ZGI5geag/openapi.json
