# Source Code Search Engine (`quintuple_quidnunc/source-code-search-engine`) Actor

Search engine for website source code. Reverse lookup of Google Analytics, GTM, AdSense and Meta Pixel IDs or any HTML snippet. Returns root domains with title, rank, country, language and technologies. A pay-per-result PublicWWW alternative.

- **URL**: https://apify.com/quintuple_quidnunc/source-code-search-engine.md
- **Developed by:** [Dmitry BT](https://apify.com/quintuple_quidnunc) (community)
- **Features:** Limited permissions
- **Stats:** 8 total users, 7 monthly users, 95.2% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $16.00 / 1,000 domain returneds

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

## Source Code Search Engine — PublicWWW Alternative

Search the **HTML source code of websites**. Find every site that uses a given **Google Analytics, Google Tag Manager, AdSense or Meta Pixel ID**, or any HTML snippet: a script URL, a CSS class, a meta tag, a text string. Get **root domains** with title, domain rank, country, language and detected technologies.

A pay-per-result alternative to PublicWWW and NerdyData, with no monthly subscription.

### What can Source Code Search Engine do?

- 🔁 **Reverse Google Analytics / GTM lookup**: find all sites that share the same `G-`, `UA-` or `GTM-` ID, which usually means the same owner.
- 💰 **Reverse AdSense lookup**: find sites monetized by the same `ca-pub-` publisher ID.
- 📊 **Reverse Meta Pixel lookup**: find sites that fire the same Facebook pixel.
- 🧩 **Search any HTML**: a script, widget, theme, plugin path, CSS class or text, alone or combined with other terms.
- 🌍 **Filter** by country, language, domain rank and last crawl date.
- 🗂 **Clean output**: subdomains are collapsed into root domains, with the matching hosts listed.
- 📤 **Export** to JSON, CSV, Excel, or use the results via API, MCP or integrations.

### Use cases

- **OSINT and investigations**: map a network of sites run by the same owner via shared analytics or ad IDs.
- **Competitive analysis**: discover all sites of a competitor, including ones they don't link from the main site.
- **SEO**: find PBNs and site networks, find sites using a specific plugin or theme.
- **Market research**: find sites that embed a widget, SDK or a competitor's script.

### How to search websites by source code

1. Click **Try for free**.
2. Enter one or more IDs in **Tracking IDs to look up** (for example `GTM-MNGXGGB`), or text in **HTML snippets (all must match)**.
3. Optionally add filters: countries, languages, domain rank. All filters are optional: an empty field is simply not applied.
4. Set **Max results** and click **Start**.

Each value in **Tracking IDs to look up** is searched separately: a site is found if it has any of them. All values in **HTML snippets (all must match)** must be on the same page. To find sites that have any one of several snippets, put them into **Tracking IDs to look up** instead.

### Input example

```json
{
  "ids": ["GTM-MNGXGGB", "ca-pub-1234567890123456"],
  "countries": ["US"],
  "minDomainRank": 100,
  "collapseSubdomains": true,
  "maxResults": 100
}
```

Search by HTML snippet:

```json
{
  "searchTerms": ["cdn.shopify.com", "klaviyo.js"],
  "matchMode": "entry",
  "maxResults": 500
}
```

### Output example

```json
{
  "domain": "apify.com",
  "hosts": ["blog.apify.com", "apify.com"],
  "matched_ids": ["GTM-MNGXGGB"],
  "title": "Apify: …",
  "domain_rank": 553,
  "last_visited": "2026-10-26",
  "country": "US",
  "language": "en",
  "technologies": ["Node.js", "Google Tag Manager", "Cloudflare"],
  "emails": [],
  "phone_numbers": [],
  "social_urls": []
}
```

The run summary (key-value store, `SUMMARY`) shows how many hosts matched each ID or query.

### How much does it cost?

No subscription: each tracking ID or search has a small fixed fee that covers the lookup itself, and after that you pay only for unique root domains found. Subdomains of the same site are merged for free, so you never pay twice for one website. The exact prices are on the **Pricing** tab.

Set **Max cost per run** and the Actor never charges more. If the data source is briefly unavailable, you keep the domains already found and pay only for them.

### Free plan

On the Apify free plan you can run the Actor with its example input (keep the prefilled tracking ID) and see real sample results: up to 10 websites that use that ID. Your own IDs, HTML snippets and filters are available on paid Apify plans. If you change the input on the free plan, the run finishes without any charge and the dataset contains a short note about this limit.

### Limitations

- **Only the home page of each site is indexed**, not inner pages. A tag that appears only on checkout or blog pages may not be found.
- The index covers **more than 80 million domains**. Each site is recrawled periodically.
- IDs used mostly on blog platforms (thousands of subdomains of the same site) return only a few unique root domains. This is expected: you get each real website once.
- **This is not a lead generation tool**: emails and phone numbers are rarely present on home pages and are usually empty.

### FAQ

**How do I find all websites using the same Google Analytics ID?**
Put the ID (`G-XXXXXXX`, `UA-XXXXXX-X` or `GTM-XXXXXXX`) into **Tracking IDs to look up** and run the Actor.

**Is this a PublicWWW alternative?**
Yes: the same idea of searching the source code of websites, paid per result instead of a monthly plan, with filters and export built in.

**Can I use it through an API or an AI agent?**
Yes. Call the Actor through the Apify API, the Apify MCP server, or integrations such as Make, Zapier and n8n.

### Related Actors

- [Technology Usage Statistics](https://apify.com/quintuple_quidnunc/technology-usage-statistics): how many websites use a technology, its trend and market share.
- [Expired Domains Finder](https://apify.com/quintuple_quidnunc/expired-domains-finder): expiring domains with organic keywords and backlinks.

Questions or a feature request? Open an issue on the **Issues** tab.

# Actor input Schema

## `ids` (type: `array`):

Tracking or ad IDs found in page source, e.g. GTM-XXXXXXX, G-XXXXXXXXXX, UA-12345-1, ca-pub-1234567890, Meta Pixel ID. Each ID is searched separately (results are combined, OR). Up to 10.

## `searchTerms` (type: `array`):

Optional if tracking IDs are set. Text that must appear in the homepage HTML source, e.g. cdn.shopify.com or "powered by". All terms must match (AND). Combined with each ID if both are set. Up to 10.

## `keywords` (type: `array`):

Optional words that must appear in the page title, description or meta keywords. Up to 10. Leave empty for no filter.

## `matchMode` (type: `string`):

"entry" matches the text anywhere; "strict_entry" matches it as a separate token.

## `maxResults` (type: `integer`):

Maximum number of websites to return. You pay per returned website.

## `countries` (type: `array`):

Optional ISO country codes, e.g. US, GB, DE (up to 5). Leave empty for all countries.

## `languages` (type: `array`):

Optional language codes, e.g. en, de (up to 5). Leave empty for all languages.

## `minDomainRank` (type: `integer`):

Optional. Domain authority score 0-1000. Use to skip tiny sites. Leave empty for no filter. Example: 100

## `maxDomainRank` (type: `integer`):

Optional. Domain authority score 0-1000. Use to skip very large platforms. Leave empty for no filter. Example: 700

## `lastVisitedDays` (type: `integer`):

Optional. Only sites whose homepage was crawled in the last N days, e.g. 180. Leave empty for no filter.

## `collapseSubdomains` (type: `boolean`):

blog.example.com and shop.example.com become one result example.com (hosts are listed).

## `sortBy` (type: `string`):

Sort order.

## Actor input object example

```json
{
  "ids": [
    "GTM-MNGXGGB"
  ],
  "matchMode": "entry",
  "maxResults": 100,
  "collapseSubdomains": true,
  "sortBy": "domain_rank,desc"
}
```

# Actor output Schema

## `results` (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 = {
    "ids": [
        "GTM-MNGXGGB"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("quintuple_quidnunc/source-code-search-engine").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 = { "ids": ["GTM-MNGXGGB"] }

# Run the Actor and wait for it to finish
run = client.actor("quintuple_quidnunc/source-code-search-engine").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 '{
  "ids": [
    "GTM-MNGXGGB"
  ]
}' |
apify call quintuple_quidnunc/source-code-search-engine --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,quintuple_quidnunc/source-code-search-engine"
        }
    }
}
```

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/QivCghBbraLKt4tCH/builds/1ANoMHobEH1zsgAdv/openapi.json
