# SpyFu Domain Intelligence Scraper (`clearpath/spyfu-scraper`) Actor

Extract SpyFu domain intelligence — competitors, ad history, backlinks, top pages, and monthly SEO/PPC metrics. Just add domains, get structured JSON with all six sections and time-series data included.

- **URL**: https://apify.com/clearpath/spyfu-scraper.md
- **Developed by:** [ClearPath](https://apify.com/clearpath) (community)
- **Categories:** SEO tools, Automation
- **Stats:** 6 total users, 3 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $6.99 / 1,000 domains

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/platform/actors/running/actors-in-store#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

## SpyFu Intelligence | Domain Competitive Intelligence from SpyFu (2026)

![SpyFu Intelligence](https://iili.io/B6pWlKG.png)

<blockquote style="border-left:4px solid #006D77;background:#EDF6F9;padding:12px 16px">
<span style="font-size:16px;font-weight:700;color:#0C0A09">16 fields per domain stat, 5 sections per run</span> <span style="font-size:15px;color:#57534E"> — monthly SEO/PPC metrics, organic and paid competitors, ad history, backlinks, and top pages in a single structured output.</span>
</blockquote>

#### Copy to your AI assistant

```
clearpath/spyfu-scraper on Apify. Scrapes SpyFu domain intelligence — competitors, ad history, backlinks, top pages, and domain stats. Call ApifyClient("TOKEN").actor("clearpath/spyfu-scraper").call(run_input={...}), then client.dataset(run["defaultDatasetId"]).list_items().items. Full spec: GET https://api.apify.com/v2/acts/clearpath~spyfu-scraper/builds/default (Bearer TOKEN) → inputSchema, actorDefinition.storages.dataset, readme. Token: https://console.apify.com/account/integrations
```

### What Data Can You Extract from SpyFu?

Every result covers one domain with up to five nested sections:

- **domainStats** — monthly SEO and PPC metrics going back years (average rank, monthly clicks, organic value, ad spend)
- **competitors** — organic and paid competitors with overlap scores and rank data
- **adHistory** — ad creatives with titles, body text, positions, and visibility percentages
- **backlinks** — backlink source records with domain strength, traffic metrics, and ranked keywords
- **topPages** — top pages by estimated monthly organic clicks with keyword-level breakdown

#### Quick Start

```json
{
    "queries": ["apify.com"]
}
```

#### Multiple Domains + Country

```json
{
    "queries": ["apify.com", "scrapingbee.com"],
    "countryCode": "US"
}
```

### Input Parameters

| Parameter | Type | Default | Description |
|-----------|------|---------|-------------|
| `queries` | array | *required* | Domains to scrape. Full URLs are accepted and normalized automatically. |
| `countryCode` | string | `US` | SpyFu country dataset. Defaults to United States. |

### Output Example

```json
{
  "query": "apify.com",
  "normalizedQuery": "apify.com",
  "countryCode": "US",
  "scrapedAt": "2026-04-25T08:18:17Z",
  "domainStats": [
    {
      "searchDate": "201710",
      "averageOrganicRank": 20.7,
      "monthlyPaidClicks": 0,
      "averageAdRank": 0,
      "totalOrganicResults": 279,
      "monthlyBudget": 0,
      "monthlyOrganicValue": 454.84,
      "totalAdsPurchased": 0,
      "monthlyOrganicClicks": 85006.17,
      "strength": 0,
      "totalInverseRank": 1120,
      "hasData": true,
      "domain": "apify.com",
      "totalResults": 106,
      "year": 2017,
      "month": 10
    }
    // more...
  ],
  "competitors": [
    {
      "domain": "scrapingbee.com",
      "commonTerms": 2177,
      "rank": 0.0048394115,
      "competitorType": "organic"
    }
  ],
  "competitorHistory": [
    {
      "type": "organic",
      "competitors": [
        {
          "domain": "scrapingbee.com",
          "domainId": 123456,
          "commonTerms": 2177,
          "rank": 0.0048394115,
          "graphCoordinates": [
            {
              "keywords": 279,
              "monthlyClicks": 85006.17,
              "monthlyValue": 454.84,
              "searchDate": { "dateString": "201710", "month": 10, "year": 2017 }
            }
            // more...
          ]
        }
        // more competitors...
      ]
    },
    {
      "type": "paid",
      "competitors": [
        {
          "domain": "scrapingbee.com",
          "domainId": 123456,
          "commonTerms": 1820,
          "rank": 0.00391234,
          "graphCoordinates": [
            {
              "keywords": 44,
              "monthlyClicks": 1205.5,
              "monthlyValue": 892.3,
              "searchDate": { "dateString": "201710", "month": 10, "year": 2017 }
            }
            // more...
          ]
        }
        // more competitors...
      ]
    }
  ],
  "adHistory": [
    {
      "adId": 740964057,
      "averagePosition": 3.67,
      "averageAdCount": 5.44,
      "body": "Find hundreds of ready-made Actors for your web scraping or automation project. Crawl any website, collect structured large datasets, and...",
      "title": "Apify - Extract data from any website",
      "fullUrl": "https://apify.com/",
      "leaderboardCount": 7,
      "percentageLeaderboard": 0.78,
      "percentageAdsServed": 0.11
    }
    // more...
  ],
  "backlinks": [
    {
      "url": "https://crawlee.dev/api/puppeteer-crawler",
      "backlinkDomain": "crawlee.dev",
      "numOutboundLinks": 130,
      "domainStrength": 27,
      "domainMonthlyOrganicClicks": 15000,
      "pageMonthlyOrganicClicks": 3,
      "rankedKeywords": 2
    }
    // more...
  ],
  "topPages": [
    {
      "title": "Pornhub Video (Downloader) API in Python",
      "url": "https://apify.com/pintxuki/pornhub-video-downloader/api/python",
      "estMonthlySeoClicks": 5378,
      "keywordCount": 20,
      "topKeyword": "pornhub downloader"
    }
    // more...
  ]
}
```

### Pricing — Pay Per Event (PPE)

**$7.99 per 1,000 domains** (base price). Volume discounts available.

| Tier | Price per 1,000 |
|------|-----------------|
| Free / Bronze | $7.99 |
| Silver | $7.49 |
| Gold | $6.99 |

Free tier: 5 lifetime runs, 5 domains per run.

### FAQ

**How many results does each domain return?**
Each domain produces one dataset row containing six sections. Section sizes vary — domainStats returns monthly records going back years (50–100+ entries), competitorHistory returns time-series for each competitor, competitors and backlinks typically return 5–50 records, adHistory returns 20–100 ads, and topPages returns up to 50 pages.

**What country data is available?**
SpyFu supports 32 country datasets. Select the desired country from the dropdown in the input schema. Default is US.

**Does this work on the free tier?**
Yes. Free tier allows 5 lifetime runs with up to 5 domains per run. Each subsequent run after the free limit requires credits.

**Is the data fresh?**
Data reflects SpyFu's latest available crawl. Historical metrics (domainStats) go back several years where SpyFu has coverage.

**What happens if a section fails?**
Failed sections are recorded in the `errors` field of the output row. The actor continues processing remaining sections and other domains.

### Support

- **Bugs**: Issues tab
- **Features**: Email or issues
- **Email**: max@mapa.slmail.me

### Legal Compliance

Extracts publicly available data from SpyFu. Users must comply with SpyFu terms of service and applicable data protection regulations (GDPR, CCPA).

***

*Structured domain intelligence from SpyFu — competitors, ad history, backlinks, and stats in one actor.*

# Actor input Schema

## `queries` (type: `array`):

Add domains to scrape. Full URLs are accepted and normalized to domains.

## `countryCode` (type: `string`):

SpyFu country dataset to use. Default is <code>US</code> — supported countries are listed in the dropdown.

## Actor input object example

```json
{
  "queries": [
    "apify.com",
    "scrapingbee.com",
    "semrush.com"
  ],
  "countryCode": "US"
}
```

# 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 = {
    "queries": [
        "apify.com",
        "scrapingbee.com",
        "semrush.com"
    ],
    "countryCode": "US"
};

// Run the Actor and wait for it to finish
const run = await client.actor("clearpath/spyfu-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 = {
    "queries": [
        "apify.com",
        "scrapingbee.com",
        "semrush.com",
    ],
    "countryCode": "US",
}

# Run the Actor and wait for it to finish
run = client.actor("clearpath/spyfu-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "queries": [
    "apify.com",
    "scrapingbee.com",
    "semrush.com"
  ],
  "countryCode": "US"
}' |
apify call clearpath/spyfu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=clearpath/spyfu-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/7Fs85gfq1XtijG7IC/builds/pd7aEfE9ya3GW7Ad0/openapi.json
