# B2B Tech Stack & Contact Intelligence Extractor (`smoothed_samphire/b2b-tech-lead-extractor`) Actor

Turn company websites into scored B2B leads: detected tech stack (CMS, frameworks, analytics, CDN, payments), emails, phones and verified-format social profiles, ranked by a 0-100 qualification score.

- **URL**: https://apify.com/smoothed_samphire/b2b-tech-lead-extractor.md
- **Developed by:** [Maxime Pommery](https://apify.com/smoothed_samphire) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$50.00 / 1,000 qualified b2b leads

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

## B2B Tech Stack & Contact Intelligence Extractor

**Turn a list of company websites into a scored, contact-ready lead list — in one run.**

Paste your prospect domains. For every company the Actor reads the home page and its contact / about / legal pages, then returns:

- 🧰 **Tech stack** — CMS, frameworks, analytics & marketing tools, CDN / hosting, payment providers
- ✉️ **Business emails** — cleaned of placeholders, image names and no-reply addresses, named people ranked before `info@`
- 📞 **Phone numbers** — international, French and North-American formats
- 🔗 **Social profiles** — LinkedIn company & people, X/Twitter, GitHub, Facebook, YouTube (profile URLs only, no share links)
- 🎯 **A 0-100 qualification score** and an A / B / C tier, so your team starts with the best accounts

### Who it is for

| You are… | Use it to… |
| :--- | :--- |
| **A B2B agency** (web, SEO, CRO, martech) | Find companies running an outdated CMS, no analytics, no tag manager or no payment stack — and pitch exactly that |
| **An SDR / sales team** | Enrich account lists with a real contact channel and personalise the first line with the prospect's stack |
| **A lead-gen freelancer / scraper** | Deliver verified-format contact data and technographics instead of raw HTML dumps |
| **A SaaS vendor** | Build target lists of companies using HubSpot, Shopify, Webflow, Next.js, Stripe… |

### Why it beats a generic scraper

- **Technographics + contacts in one pass.** No chaining of a tech-detection tool, an email finder and a social scraper.
- **Noise filtered out.** `logo@2x.png`, `name@example.com`, Sentry tokens, `no-reply@` and template addresses never reach your CRM. Emails hidden behind Cloudflare protection and `name [at] domain [dot] com` obfuscation are decoded.
- **Decision-maker hints.** Named emails (`marie.curie@…`) and LinkedIn `/in/` profiles are scored higher than generic mailboxes.
- **Predictable cost.** A hard request budget per run, at most 4 sub-pages per domain, 10-second timeout per page.
- **Safe by design.** Only public websites are fetched: private networks, localhost and cloud metadata addresses are refused at every redirect.

### Input

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `startUrls` | array (required) | — | Company websites, plain URLs or `{"url": "…"}`. `acme.com` works. Several URLs of the same domain count once. |
| `maxCrawlDepth` | integer 1-2 | 1 | 1 = home + contact / about / legal pages linked from it. 2 = also the pages linked from those. |
| `extractEmails` | boolean | true | Emails **and** phone numbers. |
| `extractSocials` | boolean | true | LinkedIn, X/Twitter, GitHub, Facebook, YouTube profiles. |
| `detectTechStack` | boolean | true | CMS, frameworks, analytics / marketing, CDN / infra, payments. |
| `respectRobotsTxt` | boolean | true | Check each site's `robots.txt` and skip disallowed URLs. |
| `includePersonalData` | boolean | true | Include named emails (`jane.doe@…`) and LinkedIn `/in/` profiles (turn off for corporate-only contacts). |
| `maxRequestsPerCrawl` | integer | 10 | Total pages fetched in the run, shared by all domains. Home pages go first. Plan 3-5 requests per domain. |

```json
{
  "startUrls": [{ "url": "https://acme-widgets.com" }, "northwind.io", "https://globex.fr"],
  "maxCrawlDepth": 1,
  "maxRequestsPerCrawl": 15
}
```

### Output (one record per domain)

```json
{
  "domain": "acme-widgets.com",
  "url": "https://acme-widgets.com/",
  "status": "ok",
  "title": "Acme Widgets | Industrial widgets",
  "qualificationScore": 87,
  "qualificationTier": "A",
  "isQualifiedLead": true,
  "scoreBreakdown": { "contact": "43/50", "techStack": "24/30", "reachability": "20/20" },
  "emails": ["marie.curie@acme-widgets.com", "sales@acme-widgets.com"],
  "namedEmails": ["marie.curie@acme-widgets.com"],
  "phones": ["+33 1 23 45 67 89"],
  "socials": {
    "linkedinCompany": ["https://www.linkedin.com/company/acme-widgets"],
    "linkedinPeople": [],
    "twitter": ["https://x.com/acmewidgets"],
    "github": [], "facebook": [], "youtube": []
  },
  "technologies": [
    { "name": "WordPress", "category": "cms", "confidence": "high" },
    { "name": "Google Tag Manager", "category": "analytics_marketing", "confidence": "high" },
    { "name": "Cloudflare", "category": "cdn_infra", "confidence": "medium" }
  ],
  "techByCategory": { "cms": ["WordPress"], "analytics_marketing": ["Google Tag Manager"], "cdn_infra": ["Cloudflare"] },
  "pagesCrawled": ["https://acme-widgets.com/", "https://acme-widgets.com/contact", "https://acme-widgets.com/about"],
  "pagesFailed": [],
  "crawledAt": "2026-11-13T09:30:00+00:00"
}
```

*The record above is illustrative.* Export as JSON, CSV, Excel or push to your CRM with Apify integrations. A `RUN_SUMMARY` key in the Key-Value Store reports domains analysed, qualified leads, failures and requests used.

### How the qualification score works

| Component | Points | What earns them |
| :--- | :--- | :--- |
| **Contact** | up to 50 | Named email 25 (or generic email 15) · phone 5 · LinkedIn company 8 · LinkedIn person 7 · another social profile 5 |
| **Tech stack** | up to 30 | 8 points per distinct technology category detected (CMS, framework, analytics / marketing, CDN / infra, payment) |
| **Reachability** | up to 20 | Site reachable 10 · contact page found 5 · about / team page found 5 |

The score is normalised on the extractions you enabled — turning off a module never penalises a lead. **Tier A** ≥ 75, **B** ≥ 50, **C** below.

A domain is a **qualified lead** when its score is **50 or more** *and* at least one contact channel (email, phone or LinkedIn profile) was found. A site we cannot reach, or with no way to contact the company, is never a qualified lead.

### Pricing

| Plan | Price | What you pay for |
| :--- | :--- | :--- |
| **Pay-per-Event (`qualified-lead`)** | **$0.05 per qualified lead** | Only domains with `isQualifiedLead: true` (score ≥ 50 and at least one contact channel). Unreachable or unqualified domains cost $0. |

At least one contact extraction option (`extractEmails` or `extractSocials`) must remain enabled per run.

### Good to know

- **Heuristics, not certainty.** Technology detection relies on public signals (meta tags, scripts, HTTP headers, page structure). Each technology carries a `confidence` level; "low" means it is implied by another detection (Next.js ⇒ React).
- **A valid social URL is not a proof of ownership.** Profiles are checked for format and share/login links are removed, but the Actor cannot verify that the profile belongs to the company.
- **Public pages only.** No login, captcha solving or proxy rotation: sites that block automated traffic come back with `status: "failed"` and the reason.
- **GDPR / ePrivacy & `robots.txt`.** Individual emails and LinkedIn `/in/` profiles are personal data in the EU/UK. You are responsible for establishing a lawful basis (e.g. legitimate interest B2B) and honouring opt-outs, or you can set `includePersonalData: false` to limit output to corporate role mailboxes and company profiles. `respectRobotsTxt` is enabled by default.
- **Language-agnostic, tuned for EN / FR / DE / ES / IT** page names (`/contact`, `/a-propos`, `/impressum`, `/mentions-legales`…).

# Actor input Schema

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

Websites to analyse, one entry per company. Plain URLs or {"url": "..."} objects; the scheme is optional (acme.com works). Only public http(s) sites are fetched. Several URLs on the same domain count once.

## `maxCrawlDepth` (type: `integer`):

1 = home page plus the contact / about / legal pages linked from it. 2 = also the pages linked from those pages (team, legal sub-pages). At most 4 sub-pages are visited per domain.

## `extractEmails` (type: `boolean`):

Collect business email addresses (placeholders, file names and no-reply addresses are filtered out) and phone numbers.

## `extractSocials` (type: `boolean`):

Collect LinkedIn (company and people), X/Twitter, GitHub, Facebook and YouTube profile URLs. Share and login links are ignored.

## `detectTechStack` (type: `boolean`):

Identify CMS, frameworks, analytics / marketing tools, CDN / infrastructure and payment providers from meta tags, scripts, HTTP headers and page structure.

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

Check each host's robots.txt before fetching pages and skip disallowed paths.

## `includePersonalData` (type: `boolean`):

When true, includes individual business emails (e.g. jane.doe@...) and LinkedIn /in/ profiles. Turn off for strict corporate-only extraction (role mailboxes like info@ / sales@ and company LinkedIn pages).

## `maxRequestsPerCrawl` (type: `integer`):

Total number of pages fetched during the run, shared by all domains. Home pages are fetched first. Budget roughly 3-5 requests per domain.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://apify.com"
    }
  ],
  "maxCrawlDepth": 1,
  "extractEmails": true,
  "extractSocials": true,
  "detectTechStack": true,
  "respectRobotsTxt": true,
  "includePersonalData": true,
  "maxRequestsPerCrawl": 10
}
```

# Actor output Schema

## `leads` (type: `string`):

Dataset of analyzed domains ranked with qualificationScore (0-100), contacts, social profiles, and detected technologies.

## `runSummary` (type: `string`):

Aggregate metrics for the run (domains, qualified_leads, requests_used, respect_robots_txt, include_personal_data).

# 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://apify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("smoothed_samphire/b2b-tech-lead-extractor").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://apify.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("smoothed_samphire/b2b-tech-lead-extractor").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://apify.com"
    }
  ]
}' |
apify call smoothed_samphire/b2b-tech-lead-extractor --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,smoothed_samphire/b2b-tech-lead-extractor"
        }
    }
}
```

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/At2PpfLRjz6xwymFz/builds/8NMv8nbZn5zYgKpA3/openapi.json
