# B2B Company Dossier, SaaS Tech Stack & Lead Enricher (`kiosklabs/b2b-company-lead-dossier`) Actor

Generate a 360° B2B company dossier from any domain: BuiltWith-style SaaS/cloud tech stack, DNS/MX email provider, WHOIS age, social pulse & HQ leads.

- **URL**: https://apify.com/kiosklabs/b2b-company-lead-dossier.md
- **Developed by:** [batuhan senavci](https://apify.com/kiosklabs) (community)
- **Categories:** Lead generation, Agents, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $37.50 / 1,000 360° b2b company dossiers

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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 Company Dossier, Tech Stack & Local Lead Extractor

Generate a structured **B2B company dossier** from any company domain — or a whole batch of domains — in one run. Each dossier combines DNS/MX email infrastructure, SaaS & cloud tech stack signals, domain registration dates, a homepage summary, recent community mentions, optional office listings in a city, and an LLM-ready Markdown brief.

The Actor runs fully standalone: it resolves DNS itself and calls public data sources directly (RDAP, the company's own homepage, Hacker News, Reddit, OpenStreetMap). No API keys and no third-party relay.

***

### What You Get Per Domain

One flat dataset item per successfully enriched domain:

- **Email & DNS infrastructure** — `mxRecords`, `emailProvider` (Google Workspace, Microsoft 365, Proofpoint, Mimecast, Zoho, ...), `hasSpfRecord`, `nameservers`, `ipv4Addresses`.
- **SaaS & cloud tech stack signals** — `detectedTechStack`, inferred from nameservers, MX records and TXT verification records (e.g. Cloudflare DNS, AWS Route53, Stripe, HubSpot, Atlassian, Slack Enterprise, OpenAI Enterprise, DocuSign, Zendesk, SendGrid).
- **Domain registration** — `registeredAt`, `expiresAt`, `registrationStatus` from RDAP, useful for filtering out very new or shell domains.
- **Active subdomains** — which of `api`, `app`, `docs`, `dev`, `status`, `mail`, `auth`, `dashboard`, `blog`, `cdn` resolve.
- **Homepage summary** — `websiteTitle`, `websiteDescription`, `websiteExcerpt`.
- **Community mentions** — recent Hacker News and Reddit posts mentioning the company name (`socialMentions`).
- **Office listings (optional)** — when `location` is set, OpenStreetMap places in that area whose name contains the company name, with phone, email, website, address and GPS when published (`localLeads`).
- **`llmMarkdown`** — a compact Markdown brief ready to paste into an LLM prompt.

#### Scope and limits

- Tech stack detection is based on **public DNS records only**. It finds tools a company has verified at the domain level; it does not see scripts loaded on the website.
- `registeredAt` / `expiresAt` are `null` when the TLD's registry does not expose RDAP data.
- Reddit often rate-limits unauthenticated requests. When that happens, `socialMentions` contains Hacker News results only.
- Office listings depend on OpenStreetMap coverage; many companies have no mapped office, in which case `localLeads` is empty.
- If a website blocks automated requests, the homepage fields are `null` while the DNS-based fields are still returned.

***

### Input Parameters

| Field | Type | Default | Description |
| :--- | :--- | :--- | :--- |
| `domain` | `string` | `"stripe.com"` | Single company domain or URL. |
| `domains` | `string[]` | `[]` | Batch list of domains or URLs (up to 100 per run). |
| `location` | `string` | `""` | Optional city/region. When set, looks up the company's offices there via OpenStreetMap. Empty = lookup skipped. |

`domain` and `domains` are merged and de-duplicated. One exception: when `domains` is filled, the default value `stripe.com` in `domain` is ignored, so the schema default never adds an extra dossier to your batch (put `stripe.com` in the list if you want it).

If no valid domain remains after normalization, the run **fails** with a clear message instead of substituting a demo domain.

#### Example Input — single domain

```json
{
  "domain": "stripe.com"
}
```

#### Example Input — batch with office lookup

```json
{
  "domains": ["vercel.com", "linear.app", "https://www.notion.so/product"],
  "location": "San Francisco"
}
```

***

### Example Output

```json
{
  "domain": "stripe.com",
  "company": "stripe",
  "websiteUrl": "https://stripe.com/",
  "websiteTitle": "Stripe | Financial Infrastructure to Grow Your Revenue",
  "websiteDescription": "Stripe is a suite of APIs powering online payment processing...",
  "emailProvider": "Google Workspace",
  "detectedTechStack": [
    "AWS Route53",
    "Google Workspace",
    "Google Search Console",
    "Atlassian (Jira/Confluence)",
    "SPF Email Auth"
  ],
  "hasSpfRecord": true,
  "ipv4Addresses": ["198.137.150.161", "198.202.176.161"],
  "nameservers": ["ns-423.awsdns-52.com", "ns-705.awsdns-24.net"],
  "mxRecords": ["aspmx.l.google.com", "alt1.aspmx.l.google.com"],
  "activeSubdomains": ["api.stripe.com", "docs.stripe.com", "status.stripe.com", "dashboard.stripe.com"],
  "registeredAt": "1995-09-12T04:00:00Z",
  "expiresAt": "2027-09-11T04:00:00Z",
  "registrationStatus": ["client transfer prohibited"],
  "location": null,
  "localLeadsCount": 0,
  "localLeads": [],
  "socialMentionsCount": 5,
  "socialMentions": [
    {
      "source": "hackernews",
      "title": "Example discussion title",
      "author": "example_user",
      "score": 312,
      "commentsCount": 148,
      "url": "https://news.ycombinator.com/item?id=00000000"
    }
  ],
  "llmMarkdown": "# B2B Company Dossier: stripe (stripe.com)\n- **Website Title:** ...",
  "scrapedAt": "2026-11-13T11:15:00.000Z"
}
```

***

### Pricing (Pay-Per-Event)

- **`dossier-generated`** — charged once per successfully enriched domain.

Domains that do not resolve in DNS and whose website is unreachable are **not charged** and not pushed; they are listed in the `SUMMARY` record under `failedDomains`. If your run's maximum charge limit is reached, the Actor stops without pushing unpaid dossiers.

### Failure Behaviour

- No valid domain in the input → run **FAILED**, nothing charged.
- Every requested domain fails to enrich → run **FAILED** with the reasons, nothing charged.
- Some domains fail → run succeeds, failed domains are reported in `SUMMARY.failedDomains`.

***

### Automate with n8n, Make.com & Zapier

#### n8n

1. Trigger on a **new CRM lead / form submission** and extract the email domain (`{{ $json.email.split('@')[1] }}`).
2. Add **Apify → Run an Actor and Get Dataset** with `devoted_helix/b2b-company-lead-dossier` and pass `domain`.
3. Feed `detectedTechStack`, `emailProvider`, and `llmMarkdown` into your LLM node to draft personalized outreach, or write them back to the CRM record.

#### Make.com & Zapier

1. Use the official **Apify** module (**Run an Actor**).
2. Map **Get Dataset Items** to **Google Sheets**, **Airtable**, **Clay**, **Salesforce**, or **Slack** deal alerts.

# Actor input Schema

## `domain` (type: `string`):

Single company domain or website URL (e.g., 'stripe.com', 'vercel.com', 'linear.app'). Note: when the batch list below is filled, the default value 'stripe.com' in this field is ignored so it is not added to your batch.

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

List of company domains or URLs for batch enrichment (up to 100 per run). One dossier is generated and charged per successfully enriched domain.

## `location` (type: `string`):

Optional city, state, or country (e.g., 'San Francisco', 'London'). When set, OpenStreetMap is searched for the company's offices in that area. Leave empty to skip the local office lookup.

## Actor input object example

```json
{
  "domain": "stripe.com",
  "location": ""
}
```

# Actor output Schema

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

No description

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

No description

# 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 = {
    "domain": "stripe.com"
};

// Run the Actor and wait for it to finish
const run = await client.actor("kiosklabs/b2b-company-lead-dossier").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 = { "domain": "stripe.com" }

# Run the Actor and wait for it to finish
run = client.actor("kiosklabs/b2b-company-lead-dossier").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 '{
  "domain": "stripe.com"
}' |
apify call kiosklabs/b2b-company-lead-dossier --silent --output-dataset

```

## MCP server setup

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

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/vBBOmirJVbyMjt6x4/builds/ggG9Ewf58PH9AYD6E/openapi.json
