# B2B Live Ad-Spend, Pixel ID & Sales Icebreaker Scraper (`b2b-telemetry-labs/b2b-ad-spend-pixel-lead-scraper`) Actor

Inspects live DOM & network beacons to detect active Google/Meta/TikTok ad spend, Server-Side CAPI tracking gaps, Cloudflare emails, INPI corporate officers, and tailored B2B sales icebreakers.

- **URL**: https://apify.com/b2b-telemetry-labs/b2b-ad-spend-pixel-lead-scraper.md
- **Developed by:** [Arthur Vatel](https://apify.com/b2b-telemetry-labs) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $15.00 / 1,000 analyzed b2b domains

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 Ad Spend & Marketing Pixel Telemetry Lead Scraper

#### Live Meta/Google/TikTok Pixel Detector, Server-Side CAPI Gap Analyzer & INPI Decision Maker Matcher

[![Apify Actor](https://img.shields.io/badge/Apify%20Store-Pay--Per--Event%20%240.015-orange?logo=apify)](https://apify.com/b2b-telemetry-labs/b2b-ad-spend-pixel-lead-scraper)
[![RapidAPI](https://img.shields.io/badge/RapidAPI-Active%20Endpoint-blue?logo=rapidapi)](https://rapidapi.com)
[![Make & n8n Ready](https://img.shields.io/badge/Workflow-n8n%20%7C%20Make%20%7C%20Clay-green)](https://n8n.io)

***

### 🎯 High-Intent Value Proposition (Why This Is NOT Another Generic Email Scraper)

Generic B2B scrapers return thousands of stale corporate directory contacts with `info@` and `contact@` addresses.
**This actor inspects live web traffic and DOM telemetry to identify companies that are ACTIVELY SPENDING AD BUDGET TODAY, but have critical conversion tracking flaws.**

#### Key Capabilities :

1. **Live Ad Network Detection :** Detects active beacons for **Google Ads (`AW-`)**, **Meta Ads (`FB Pixel`)**, **TikTok Ads**, **LinkedIn Insight Tag**, **Criteo**, and **Microsoft Clarity**.
2. **Server-Side Tracking / CAPI Gap Audit :** Identifies whether pixels are running client-side in the browser (losing 15-25% of conversions due to iOS 14 / ad blockers) or hardcoded without Google Tag Manager.
3. **Cloudflare `data-cfemail` Decryption :** Automatically decrypts obfuscated Cloudflare email tokens using XOR cipher decoding on the fly.
4. **Official French Company Registry Enrichment (INPI) :** Matches verified corporate officers (Gérant, Président, DG), SIREN number, revenue bracket, and employee headcount.
5. **Tailored Sales Icebreaker Generation :** Generates a ready-to-send technical icebreaker referencing real pixel IDs and tracking gaps to achieve 20%+ cold email reply rates.

***

### 🔍 SEO Keywords & Search Tags (Apify Store & RapidAPI)

`ad-spend-detection`, `google-ads-scraper`, `meta-pixel-detector`, `conversion-api-audit`, `server-side-tracking`, `facebook-capi-lead-generation`, `make-enrichment-webhook`, `n8n-b2b-leads`, `clay-http-enrichment`, `cloudflare-email-decoder`, `french-pme-siren`, `inpi-company-registry`, `b2b-icebreaker-generator`

***

### 📥 Input JSON Schema

````json
{
  "domain": "kipli.com",
    "include_inpi_registry": true,
      "generate_icebreaker": true,
        "timeout_seconds": 25
        }
        ```

        ---

        ## 📤 Output JSON Schema (Live Data Example)

        ```json
        {
          "status": "success",
            "domain": "kipli.com",
              "company_name": "Créateur de mobilier et literie durables - Kipli®",
                "qualification_score": 99,
                  "telemetry": {
                      "active_ad_networks": ["Meta Ads", "Google Ads", "Microsoft Ads"],
                          "gtm_containers": ["GTM-N7F3BLR"],
                              "google_ads_ids": ["AW-18203247252", "AW-527810472"],
                                  "meta_pixel_ids": ["1843112752432642"],
                                      "ecommerce_stack": ["Shopify", "Klaviyo"],
                                          "tracking_flaw": "Campagnes Meta Ads, Google Ads cote navigateur (gain ROAS possible via Server-Side CAPI)"
                                            },
                                              "decision_maker": {
                                                  "name": "Davide Ballotta (Gérant)",
                                                      "role": "Gérant / Direction Générale",
                                                          "official_company_id": "841674302",
                                                              "headcount_bracket": "20-49 employees",
                                                                  "annual_revenue": "8,1 M€",
                                                                      "location": "Paris (75), France"
                                                                        },
                                                                          "verified_contact": {
                                                                              "primary_email": "hello@kipli.com",
                                                                                  "direct_phone": "01 76 42 11 72",
                                                                                      "email_validation": "deliverable"
                                                                                        },
                                                                                          "sales_icebreaker": "Vos balises Meta Ads, Google Ads tournent cote navigateur sur kipli.com : basculer sur un suivi Server-Side (CAPI) permet generalement de recuperer 15 a 25% de signaux de conversion perdus."
                                                                                          }
                                                                                          ```

                                                                                          ---

                                                                                          ## 🚀 Ready-to-Use Integration Snippets

                                                                                          ### 1. cURL / Shell Request
                                                                                          ```bash
                                                                                          curl -X POST "https://api.apify.com/v2/acts/b2b-telemetry-labs~b2b-ad-spend-pixel-lead-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
                                                                                               -H "Content-Type: application/json" \
                                                                                                    -d '{"domain": "kipli.com"}'
                                                                                                    ```

                                                                                                    ### 2. Python (Async / Requests)
                                                                                                    ```python
                                                                                                    import requests

                                                                                                    APIFY_TOKEN = "YOUR_APIFY_TOKEN"
                                                                                                    url = f"https://api.apify.com/v2/acts/b2b-telemetry-labs~b2b-ad-spend-pixel-lead-scraper/run-sync-get-dataset-items?token={APIFY_TOKEN}"

                                                                                                    payload = {
                                                                                                        "domain": "kipli.com",
                                                                                                            "include_inpi_registry": True,
                                                                                                                "generate_icebreaker": True
                                                                                                                }

                                                                                                                response = requests.post(url, json=payload, timeout=45)
                                                                                                                lead_data = response.json()
                                                                                                                print("Audited Lead:", lead_data[0]["decision_maker"]["name"], lead_data[0]["sales_icebreaker"])
                                                                                                                ```

                                                                                                                ### 3. n8n Workflow Node (HTTP Request Node Configuration)
                                                                                                                - **Method :** `POST`
                                                                                                                - **URL :** `https://api.apify.com/v2/acts/b2b-telemetry-labs~b2b-ad-spend-pixel-lead-scraper/run-sync-get-dataset-items?token={{ $env.APIFY_TOKEN }}`
                                                                                                                - **Body Content Type :** `JSON`
                                                                                                                - **Body Parameters :**
                                                                                                                ```json
                                                                                                                {
                                                                                                                  "domain": "={{ $json.website_url }}"
                                                                                                                  }
                                                                                                                  ```

                                                                                                                  ### 4. Make.com (Integromat) Module
                                                                                                                  1. Add an **HTTP — Make a request** module.
                                                                                                                  2. Set URL to `https://api.apify.com/v2/acts/b2b-telemetry-labs~b2b-ad-spend-pixel-lead-scraper/run-sync-get-dataset-items?token=[Your_Token]`.
                                                                                                                  3. Method: `POST`.
                                                                                                                  4. Body: `{"domain": "{{1.company_domain}}"}`.
                                                                                                                  5. Parse response: `Yes`. Map `decision_maker.name`, `primary_email`, and `sales_icebreaker` directly into your CRM or cold email sender (Lemlist/Brevo).

                                                                                                                  ### 5. Clay.com HTTP API Enrichment Column
                                                                                                                  - Add a new **Enrich from HTTP API** column.
                                                                                                                  - Endpoint: `https://api.apify.com/v2/acts/b2b-telemetry-labs~b2b-ad-spend-pixel-lead-scraper/run-sync-get-dataset-items?token=YOUR_TOKEN`
                                                                                                                  - Method: `POST` with `{"domain": "/domain"}`.
                                                                                                                  - Extract `sales_icebreaker` to automatically populate your outreach table!

                                                                                                                  ---

                                                                                                                  ## 💼 Ideal Customer Profile & Use Cases
                                                                                                                  - **Paid Media & Tracking Agencies :** Sell 500 € - 2,000 € Server-Side CAPI tracking setups to brands losing data post-iOS 14.
                                                                                                                  - **Freelance Media Buyers (Google/Meta Ads) :** Spot brands spending ad budget without proper conversion tracking.
                                                                                                                  - **Outbound Growth Teams :** Generate personalized technical hooks that stand out in crowded B2B inboxes.



# Actor input Schema

## `start_urls` (type: `array`):

List of B2B or E-commerce domains to inspect via live headless Chromium network telemetry.
## `deepContactCrawl` (type: `boolean`):

Automatically visits /contact or /about if zero emails are found on the homepage and decodes Cloudflare XOR-protected emails.

## Actor input object example

```json
{
  "start_urls": [
    {
      "url": "https://stripe.com"
    }
  ],
  "deepContactCrawl": true
}
````

# Actor output Schema

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

Structured B2B lead intelligence with firing ad pixels, GTM/Ads IDs, decoded emails, and sales icebreakers.

# 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 = {
    "start_urls": [
        {
            "url": "https://stripe.com"
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("b2b-telemetry-labs/b2b-ad-spend-pixel-lead-scraper").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 = { "start_urls": [{ "url": "https://stripe.com" }] }

# Run the Actor and wait for it to finish
run = client.actor("b2b-telemetry-labs/b2b-ad-spend-pixel-lead-scraper").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 '{
  "start_urls": [
    {
      "url": "https://stripe.com"
    }
  ]
}' |
apify call b2b-telemetry-labs/b2b-ad-spend-pixel-lead-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,b2b-telemetry-labs/b2b-ad-spend-pixel-lead-scraper"
        }
    }
}
```

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/6e5jPDPHvyPsoZ9MA/builds/D584rKfpc2OhncqaP/openapi.json
