Ad Pixel Id Extractor avatar

Ad Pixel Id Extractor

Pricing

from $2.00 / 1,000 websites

Go to Apify Store
Ad Pixel Id Extractor

Ad Pixel Id Extractor

Extract advertising pixel IDs from any website. Get the actual pixel ID values for Facebook Pixel, TikTok Pixel, Google Ads, Google Analytics, GTM, LinkedIn, Pinterest, Snapchat, Twitter/X, Bing Ads, HotJar, Criteo, Klaviyo, Segment, Heap, and Mixpanel from a plain list of URLs.

Pricing

from $2.00 / 1,000 websites

Rating

0.0

(0)

Developer

Trove Vault

Trove Vault

Maintained by Community

Actor stats

0

Bookmarked

2

Total users

1

Monthly active users

5 hours ago

Last modified

Share

Ad Pixel ID Extractor — Detect Facebook, TikTok, Google Ads & More

Extract advertising pixel IDs from any website. Get the actual pixel ID values for Facebook Pixel, TikTok Pixel, Google Ads, Google Analytics, GTM, LinkedIn, Pinterest, Snapchat, Twitter/X, Bing Ads, HotJar, Criteo, Klaviyo, Segment, Heap, and Mixpanel — from a plain list of URLs.

Limitation: This Actor scans static HTML via HTTP. Sites protected by Cloudflare bot protection (e.g., Gymshark, Bombas) return a JavaScript challenge page to non-browser crawlers — you'll get 0 results for those URLs. Pixels loaded exclusively via Google Tag Manager at runtime are also harder to detect; the Actor automatically fetches GTM container files to extract IDs stored there, but if the initial page request is blocked, no data can be retrieved. Start with 5–10 URLs to verify coverage before running large batches.

What does the Ad Pixel ID Extractor do?

The Ad Pixel ID Extractor is an Apify Actor that scans the HTML source of any website and returns the actual tracking pixel IDs embedded in the page — not just which platforms are present, but the exact IDs you can use for audience targeting, competitive analysis, or pixel audit workflows.

Feed in a list of URLs or domains and get back a structured record per URL with every pixel ID found.

Core capabilities:

  • 🎯 16 ad platforms — Facebook, TikTok, Google Ads, Google Analytics (GA4 + UA), GTM, LinkedIn, Pinterest, Snapchat, Twitter/X, Bing Ads, HotJar, Criteo, Klaviyo, Segment, Heap, Mixpanel
  • 🔢 Actual IDs extracted — not just platform detection, but the real pixel ID values (e.g., 123456789012345 for Facebook, G-ABCDE12345 for GA4, AW-123456789 for Google Ads)
  • 🔍 Script presence flags — detects platforms loaded via Google Tag Manager that can't expose IDs from HTML source alone
  • Fast HTTP-based scanning — uses CheerioCrawler with no browser overhead — typically 1–3 seconds per URL
  • 📦 Batch scanning — scan thousands of URLs in a single run with configurable concurrency

What data can you extract from advertising pixels?

PlatformData pointExample value
🎯 Facebook / MetaFacebook Pixel ID123456789012345
🎬 TikTokTikTok Pixel IDCXXXXXXXXXXXXXXXX
📊 Google AnalyticsGA4 or Universal Analytics IDG-ABCDE12345 / UA-12345-1
💰 Google AdsGoogle Ads conversion IDAW-123456789
🏷️ Google Tag ManagerGTM container IDGTM-XXXXXXX
💼 LinkedInLinkedIn Partner ID1234567
📌 PinterestPinterest Tag ID12345678901234567
👻 SnapchatSnapchat Pixel UUIDabc123de-f456-...
🐦 Twitter / XTwitter Pixel IDo1abc2
🔷 Microsoft / BingBing UET Tag ID123456789
🔥 HotJarHotJar Site ID1234567
🛒 CriteoCriteo Account ID12345
📧 KlaviyoKlaviyo Company IDABCDEF
📡 SegmentSegment Write KeyAbCdEfGhIjKlMnOpQrSt
📐 HeapHeap App ID1234567890
🎵 MixpanelMixpanel Project Tokenabc123def456abc123def456abc123de

Can I use the Ad Pixel ID Extractor to research competitor ad accounts?

Yes. By extracting the Facebook Pixel ID, TikTok Pixel ID, and Google Ads conversion IDs from competitor websites, you can use those IDs in ad platform research tools or audience analysis workflows. The Actor returns the raw pixel ID values directly from the page HTML.

How does the Ad Pixel ID Extractor work?

The Actor applies multi-pattern regex extraction to the raw HTML of each page — like opening DevTools and reading the source, but automated across thousands of URLs simultaneously.

The Process:

  1. Fetch page HTML — CheerioCrawler fetches the raw HTML via HTTP, no browser overhead
  2. Parse inline scripts — reads all <script> tag content for pixel initialization calls
  3. Match platform patterns — applies regex for each platform (e.g., fbq('init', 'ID') for Facebook, ttq.load('ID') for TikTok, gtag('config', 'AW-ID') for Google Ads)
  4. Scan script src tags — checks <script src="..."> attributes for pixel URLs that include the ID in the URL query string
  5. Flag script presence — records which platform scripts are loaded even when the ID isn't in the HTML (common with GTM-only implementations)
  6. Return structured record — one JSON object per URL with IDs grouped by platform

Important: Pixels loaded exclusively via Google Tag Manager at runtime may not have their IDs extractable from static HTML. The scriptDetected object flags their presence in those cases.

Why use the Ad Pixel ID Extractor instead of manual DevTools inspection?

FeatureManual DevToolsAd Pixel ID Extractor
Speed5–10 minutes per site1–3 seconds per URL
ScaleOne site at a timeThousands of URLs per run
OutputNotes in a browserStructured JSON/CSV dataset
Platforms coveredWhatever you check16 platforms automatically
ID deduplicationManualAutomatic
CostYour timePay-per-compute-unit

Marketing analysts audit pixel deployment across their own domains. Media buyers verify pixel coverage before launching campaigns. Competitive intelligence teams map which ad platforms competitors invest in. Agencies audit client websites during onboarding.

What can you do with pixel ID data after extracting it?

Competitive ad intelligence

Map which advertising platforms your competitors use. Identify if they use Criteo or LinkedIn — signals of retargeting focus or B2B investment. Count the number of Google Ads IDs as a proxy for campaign complexity.

Pixel audit and QA

Verify that required pixels are present across all your domains and subdomains. Catch duplicate pixel IDs (e.g., Facebook Pixel fired twice) or wrong GTM container IDs deployed to the wrong site. Recommended schedule: run weekly for active campaigns, monthly for stable properties.

Agency onboarding

Extract all pixel IDs from a new client's site in seconds. Cross-reference against their ad account IDs to verify pixel connections without needing ad account access.

Market research

Scan 1,000 e-commerce stores and segment by ad platform adoption. Understand, for example, that 74% use Google Analytics but only 31% have TikTok Pixel deployed — an opportunity signal for TikTok-focused agencies and consultants.

How to use the Ad Pixel ID Extractor?

  1. Create an Apify account at apify.com — free tier available, no credit card required
  2. Open the Ad Pixel ID Extractor Actor page and click Try for free
  3. Go to the Input tab and paste your list of URLs — one per line, with or without https://
  4. Click Start and wait for the run to complete (typically 1–3 seconds per URL)
  5. Go to the Output tab to preview results, then download as JSON or CSV

Start with 5–10 URLs to validate output quality before running large batches.

How much does the Ad Pixel ID Extractor cost?

The Actor uses Apify's pay-per-compute-unit model — no subscription required, pay only for what you run.

Typical costs:

  • ~100 URLs: under $0.05
  • ~1,000 URLs: approximately $0.20–$0.50
  • ~10,000 URLs: approximately $1–$3

New Apify accounts include $5 free credit — enough to scan thousands of URLs.

⬇️ Input

Input example — basic URL list

{
"urls": [
"https://www.allbirds.com",
"https://www.gymshark.com",
"https://www.bombas.com"
],
"maxConcurrency": 5
}

Input example — bare domains (https:// added automatically)

{
"urls": [
"allbirds.com",
"gymshark.com",
"rothys.com",
"bombas.com",
"patagonia.com"
],
"maxConcurrency": 10
}

Input parameters

ParameterTypeRequiredDescription
urlsstring[]YesURLs or bare domains to scan. https:// is added automatically if missing.
maxConcurrencyintegerNoURLs to process in parallel. Default: 5. Range: 120.

⬆️ Output

Output views

  • Dataset — one row per URL with all 16 platform pixel ID arrays + script presence flags
  • JSON / CSV — downloadable for spreadsheets, CRMs, or further analysis

Output example

{
"url": "https://www.allbirds.com",
"domain": "allbirds.com",
"facebookPixelIds": ["123456789012345"],
"googleTagManagerIds": ["GTM-ABCDE12"],
"googleAnalyticsIds": ["G-ABCDE12345"],
"googleAdsIds": ["AW-123456789"],
"tiktokPixelIds": ["CXXXXXXXXXXXXXXXXXX"],
"linkedinPartnerIds": ["1234567"],
"pinterestTagIds": [],
"snapchatPixelIds": [],
"twitterPixelIds": ["o1abc2"],
"bingAdsIds": [],
"hotjarIds": ["1234567"],
"criteoIds": [],
"klaviyoIds": ["ABCDEF"],
"segmentWriteKeys": [],
"heapIds": [],
"mixpanelTokens": [],
"scriptDetected": {
"facebookPixel": true,
"googleTagManager": true,
"googleAnalytics": true,
"tiktokPixel": true,
"linkedinInsight": false,
"pinterestTag": false,
"snapchatPixel": false,
"twitterPixel": false,
"bingAds": false,
"hotjar": true,
"criteo": false,
"klaviyo": true,
"segment": false,
"heap": false,
"mixpanel": false
},
"scannedAt": "2026-03-18T10:00:00.000Z"
}

The scriptDetected object is useful for GTM-heavy sites — it confirms a platform's script is on the page even when the pixel ID can't be extracted from the HTML source.

Are there other e-commerce intelligence tools in Apify Store?

🔍 E-Commerce Tech Stack Detector — detect the full tech stack (platform, CMS, marketing tools, chat widgets) of any e-commerce store

🏪 E-commerce Store Data Enricher — enrich a list of store domains with contacts, social profiles, platform, and business intelligence

🔎 Competitor Intelligence Scraper — scrape competitor pricing, funnel structure, and conversion tactics

📊 Product Listing SEO Auditor — audit e-commerce product listings for SEO completeness and quality

🛍️ Shopify Products Scraper — scrape every product from any Shopify store using just the domain

FAQ

Can I extract Facebook Pixel IDs, TikTok Pixel IDs, and Google Ads IDs from any website?

Yes. The Ad Pixel ID Extractor scans the public HTML source of each URL and returns the actual pixel ID values for all 16 supported ad platforms. Facebook Pixel IDs are extracted from fbq('init', 'ID') calls, TikTok from ttq.load('ID'), Google Ads from gtag('config', 'AW-ID').

How many URLs can I scan per run?

There is no hard limit. The Actor processes URLs in parallel batches controlled by maxConcurrency. In practice, 10,000 URLs can be scanned in under 30 minutes at the default concurrency of 5.

Why are some pixel IDs missing even though the pixel fires in the ad platform?

Most likely the pixel is loaded exclusively via Google Tag Manager without an inline fallback. GTM executes JavaScript at runtime — the Actor reads HTML source and cannot see what GTM injects dynamically. The scriptDetected object will still flag which ad platform scripts are present on the page.

Can I scan pages behind login or paywalls?

No. The Actor only accesses publicly visible pages. It does not support cookies, sessions, or authenticated requests.

How accurate is the pixel ID extraction?

Accuracy is high (95%+) for sites with direct pixel implementations. For GTM-only implementations, the scriptDetected flags are reliable but the ID itself may not be extractable. Empty arrays mean no ID was found in the HTML source.

Can I use the Ad Pixel ID Extractor with integrations like Zapier or Make?

Yes. Use Apify's native Zapier and Make integrations, or trigger the Actor via the Apify API and push results to Google Sheets, Airtable, or your CRM.

Can I access the Ad Pixel ID Extractor via the Apify API?

Yes. Every Apify Actor is accessible via REST API. Use your API token to start runs and fetch dataset results programmatically. Full API documentation is on the Actor's API tab.

Can I use the Ad Pixel ID Extractor with an MCP Server?

Yes. The Apify MCP Server exposes this Actor as a callable tool for AI agents and LLM workflows. Connect Claude, GPT-4, or any MCP-compatible client to run pixel extraction from your AI assistant. See the Apify MCP documentation for setup instructions.

Yes. Advertising pixel IDs are embedded in the public HTML source of websites — visible to anyone who views page source. Extracting this information is equivalent to reading publicly visible text. The Actor does not bypass any authentication, access private data, or interact with ad platform APIs.

What happens if a URL fails to load?

Failed URLs are written to the dataset with an error field explaining the reason (DNS failure, timeout, HTTP error). No URL is silently dropped.

Your feedback

Found a missing pixel platform or a site where extraction fails? Open an issue on the Actor's Issues tab.