# B2B Tech Stack & Metadata Scraper for AI Agents (`generous_impactor/b2b-tech-stack-metadata-scraper-for-ai-agents`) Actor

Extract rich firmographic data, contact info, technology stacks, and DNS/mail provider infrastructure from any company website in seconds.

Designed specifically for AI Agents, n8n / Make workflows, and MCP (Model Context Protocol) integrations.

- **URL**: https://apify.com/generous\_impactor/b2b-tech-stack-metadata-scraper-for-ai-agents.md
- **Developed by:** [llio masta](https://apify.com/generous_impactor) (community)
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$10.00 / 1,000 company 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?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## B2B Company Intelligence & Lead Enrichment Scraper

Extract rich firmographic data, contact info, technology stacks, and DNS/mail provider infrastructure from any company website in seconds.

Designed specifically for **AI Agents**, **n8n / Make workflows**, and **MCP (Model Context Protocol)** integrations.

### 🌟 Key Features

- **Tech Stack Detection:** Identifies CMS, Analytics, Payment Gateways, CRM, and Frontend frameworks (WordPress, Shopify, Next.js, Stripe, HubSpot, etc.).
- **Contact & Social Extraction:** Scrapes direct emails and social profile links (LinkedIn, Twitter/X, GitHub, Facebook, Instagram).
- **Domain OSINT & Subdomains:** Discovers active subdomains via public SSL certificate transparency logs.
- **Infrastructure Analysis:** Identifies primary mail providers (Google Workspace vs. Microsoft 365) and SPF/DMARC security configurations.
- **LLM & Agent Ready:** Clean, structured JSON output ready for prompt context injection.

***

### 📥 Input Parameters

| Parameter | Type | Default | Description |
|---|---|---|---|
| `startUrls` | Array | *Required* | List of website URLs to analyze (e.g., `https://example.com`) |
| `extractEmails` | Boolean | `true` | Extract email addresses found in the HTML source |
| `extractSocials` | Boolean | `true` | Extract social network profile links |
| `discoverSubdomains` | Boolean | `true` | Query certificate logs for subdomains |
| `fetchDnsRecords` | Boolean | `true` | Perform DNS lookup to detect mail infrastructure |

***

### 📤 Output Example

```json
{
  "domain": "stripe.com",
  "url": "[https://stripe.com](https://stripe.com)",
  "scrapedAt": "2026-04-15T10:30:00.000Z",
  "metadata": {
    "title": "Stripe | Financial Infrastructure for the Internet",
    "description": "Stripe powers online and in-person payment processing..."
  },
  "contacts": {
    "emails": ["support@stripe.com", "info@stripe.com"],
    "socials": {
      "linkedin": "[https://www.linkedin.com/company/stripe](https://www.linkedin.com/company/stripe)",
      "twitter": "[https://twitter.com/stripe](https://twitter.com/stripe)",
      "github": "[https://github.com/stripe](https://github.com/stripe)"
    }
  },
  "techStack": ["React", "Next.js", "Google Analytics"],
  "infrastructure": {
    "subdomainsCount": 14,
    "subdomains": ["api.stripe.com", "dashboard.stripe.com", "docs.stripe.com"],
    "dns": {
      "mailProvider": "Google Workspace",
      "hasSPF": true
    }
  }
}
```

***

### ⚡ Integrations

#### 1. n8n Integration

To use this Actor inside **n8n**:

1. Add the **Apify Node** or an **HTTP Request Node**.
2. Set the endpoint to:
   `POST https://api.apify.com/v2/acts/YOUR_APIFY_USERNAME~b2b-company-intelligence/runs?token=YOUR_APIFY_TOKEN`
3. Pass the payload:
   ```json
   {
     "startUrls": [{ "url": "={{ $json.company_url }}" }]
   }
   ```

#### 2. Model Context Protocol (MCP) / Claude Desktop Setup

Connect this scraper directly to your AI agents using Apify's official MCP server. Add the following to your `claude_desktop_config.json`:

```json
{
  "mcpServers": {
    "apify": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/mcp-server",
        "--apify-token",
        "YOUR_APIFY_TOKEN"
      ]
    }
  }
}
```

Once connected, ask Claude:

> *"Analyze company.com and tell me if they are using Shopify and Google Workspace."*

***

### 💰 Pricing Model

This Actor operates on a **Pay Per Event (PPE)** pricing model:

- **$0.01 per company domain analyzed**
- No monthly subscription fees — pay only for what you extract.

***

### 🛠️ Support & Feature Requests

If you encounter any issues or need custom data extraction fields, open an issue in the **Issues** tab or contact the developer via the Apify console.

# Actor input Schema

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

Liste des sites web d'entreprises à analyser.

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

Recherche et filtre les adresses email dans le code HTML de la page.

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

Extrait les liens vers LinkedIn, Twitter/X, GitHub, Facebook et Instagram.

## `discoverSubdomains` (type: `boolean`):

Interroge les journaux de certificats SSL (crt.sh) pour lister jusqu'à 20 sous-domaines actifs.

## `fetchDnsRecords` (type: `boolean`):

Identifie si l'entreprise utilise Google Workspace ou Microsoft 365 et vérifie le SPF.

## Actor input object example

```json
{
  "startUrls": [
    {
      "url": "https://stripe.com"
    },
    {
      "url": "https://shopify.com"
    }
  ],
  "extractEmails": true,
  "extractSocials": true,
  "discoverSubdomains": true,
  "fetchDnsRecords": true
}
```

# Actor output Schema

## `results` (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 = {
    "startUrls": [
        {
            "url": "https://stripe.com"
        },
        {
            "url": "https://shopify.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("generous_impactor/b2b-tech-stack-metadata-scraper-for-ai-agents").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://stripe.com" },
        { "url": "https://shopify.com" },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("generous_impactor/b2b-tech-stack-metadata-scraper-for-ai-agents").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://stripe.com"
    },
    {
      "url": "https://shopify.com"
    }
  ]
}' |
apify call generous_impactor/b2b-tech-stack-metadata-scraper-for-ai-agents --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,generous_impactor/b2b-tech-stack-metadata-scraper-for-ai-agents"
        }
    }
}
```

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/jGGnfFmPAlnmtnhql/builds/9URqa0gex5yXZfMwL/openapi.json
