# SpyFu Scraper · Competitor SEO & PPC Data by Domain (`memo23/spyfu-scraper`) Actor

Get SpyFu's report for any list of domains: organic and paid keywords, clicks, traffic value and Google Ads spend, monthly changes, top keywords, competitors, ad history with ad copy, keywords to buy, backlinks and up to 20 years of monthly history. JSON, CSV or Excel.

- **URL**: https://apify.com/memo23/spyfu-scraper.md
- **Developed by:** [Muhamed Didovic](https://apify.com/memo23) (community)
- **Categories:** SEO tools
- **Features:** Limited permissions
- **Stats:** 1 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.00 / 1,000 domain reports

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

## SpyFu Scraper · Competitor SEO & PPC Data by Domain

Paste a list of domains and get SpyFu's report for each one as a clean row: organic keywords, organic clicks and their dollar value, paid keywords, paid clicks and Google Ads spend for the latest month, with the change since last month and the same numbers a year ago. Each row also carries the domain's most valuable organic keywords, its top and newest paid keywords, how many keywords gained or lost rankings, its top organic and paid competitors, its Google Ads history with the ad copy and landing pages, keywords its ad competitors buy that it does not, its backlinks, keyword counts in 32 countries and up to 20 years of monthly history.

| Input | Rows you get |
|---|---|
| Domain (`hubspot.com`) | One report for that domain |
| Website address (`https://www.hubspot.com/products`) | The same report; the path is ignored |
| SpyFu link (`spyfu.com/overview/domain?query=hubspot.com`) | The same report |
| Several domains on one line (`a.com, b.com`) | One report each |

![How the SpyFu Scraper works](https://raw.githubusercontent.com/muhamed-didovic/muhamed-didovic.github.io/main/assets/spyfu-how-it-works.png)

***

### Why Use This Scraper?

- ✅ Hundreds of domains in one run, about 50 domains a minute
- ✅ Organic and paid numbers side by side: keywords, clicks, traffic value, ad spend, average positions and SpyFu domain strength
- ✅ Month-over-month change worked out for every headline number, plus the year-ago figures for a quick trend read
- ✅ Up to 240 months of history per domain, newest first, ready for a chart
- ✅ Top organic keywords with ranking URL, position, search volume, CPC and estimated clicks
- ✅ Top paid keywords and newly bought paid keywords, with cost per click, monthly cost and the other advertisers on each keyword
- ✅ Keyword movement counts: newly ranked, gained, lost, made it to page one, fell off page one
- ✅ Top organic and Google Ads competitors with the number of shared keywords
- ✅ Google Ads history: the domain's best-performing ads with their titles and text, the landing pages it sends ad traffic to, and the keywords it advertised on
- ✅ Buy ideas: keywords the domain's top three ad competitors all buy and it does not, with clicks, CPC and monthly cost
- ✅ Backlinks: total count, a split by site type (blogs, news, forums, affiliate, .gov and .edu) and five linking pages with their strength and traffic
- ✅ Organic vs paid click share, so you see at a glance how much of a site's Google traffic it pays for
- ✅ 32 SpyFu country databases, and a per-country keyword count to see where a site really competes
- ✅ Domains SpyFu has no data for come back as a free row that says so, so your list stays aligned

***

### Overview

The SpyFu Scraper is built for SEO and PPC agencies running competitor audits, marketers sizing up a new market, sales teams scoring leads by ad spend and analysts tracking how a group of sites moves month to month.

The dataset is one row per domain. Every row describes the domain in one SpyFu country (United States by default). The headline numbers are for SpyFu's latest month; `month` says which one. A domain that used to rank and no longer does shows zeros for the current month, with `lastMonthWithData` telling you when it was last seen.

Keyword lists, competitors, ad history, backlinks and the country breakdown can each be switched off when you only need the headline numbers. The row then gets smaller and the run gets faster.

***

### Supported Inputs

#### Domain formats

| Format | Example | Read as |
|---|---|---|
| Bare domain | `hubspot.com` | `hubspot.com` |
| With `www.` or upper case | `WWW.HubSpot.com` | `hubspot.com` |
| Full URL | `https://www.notion.so/product?ref=x` | `notion.so` |
| SpyFu link | `https://www.spyfu.com/overview/domain?query=canva.com` | `canva.com` |
| Subdomain | `blog.hubspot.com` | reported as `hubspot.com` data, which is how SpyFu counts it |

Duplicates are checked once. Entries that are not a domain are skipped and named in the run log.

#### Countries

United States, United Kingdom, Canada, Australia, Ireland, New Zealand, India, Singapore, South Africa, Germany, France, Spain, Italy, Netherlands, Belgium, Austria, Switzerland, Sweden, Norway, Denmark, Finland, Poland, Czech Republic, Portugal, Turkey, Ukraine, Brazil, Mexico, Argentina, Chile, Venezuela and Japan.

One run uses one country. Run again with another country to compare markets.

***

### Use Cases

- **Competitor audits:** pull organic and paid numbers for a client and five competitors in one run and drop them into a report.
- **PPC research:** see which competitors spend the most on Google Ads, what they bid on and which keywords they started buying recently.
- **Ad copy research:** read a competitor's best-performing ad titles and text and see which landing pages get their ad traffic.
- **Keyword gap for ads:** get the keywords a domain's ad competitors all pay for that it has not bought yet.
- **Link building:** see how many backlinks a site has, what kind of sites link to it and sample linking pages.
- **Lead scoring:** sort a list of prospects by monthly ad spend or organic traffic value to find the ones with budget.
- **Market sizing:** check how many keywords each site ranks for across 32 countries before you expand.
- **Trend tracking:** pull 24 or more months of history and chart who is gaining and who is losing search visibility.
- **Agency prospecting:** spot sites whose organic clicks dropped sharply since last month or last year.

***

### How It Works

1. Paste your domains and pick a country.
2. The scraper looks up each domain in SpyFu's database for that country, a couple of domains at a time.
3. Each domain becomes one row with the latest month's numbers, changes, keywords, competitors, ad history, buy ideas, backlinks, countries and history.
4. A domain SpyFu has no data for becomes a short row with `found: false`, and you are not charged for it.
5. Download the rows as JSON, CSV or Excel, or read them through the API.

***

### Input Configuration

#### Input fields

| Field | Type | Default | Description |
|---|---|---|---|
| `domains` | array of strings | – | Domains, website addresses or SpyFu links |
| `country` | string | `US` | SpyFu country database (32 to choose from) |
| `monthsOfHistory` | integer | 12 | Months of history per domain, 0 to 240 |
| `keywordData` | boolean | true | Top organic, paid and new paid keywords, keyword movement and sample keywords |
| `competitorData` | boolean | true | Top organic and Google Ads competitors |
| `countryBreakdown` | boolean | true | Keyword counts in each of the 32 countries |
| `adData` | boolean | true | Google Ads history (ads, landing pages, ad keywords) and buy ideas |
| `backlinkData` | boolean | true | Backlink count, types and five linking pages |
| `maxConcurrency` | integer | 2 | Domains checked at the same time, up to 5 |

#### Common scenarios

Competitor snapshot for a client and its rivals:

```json
{
    "domains": ["hubspot.com", "salesforce.com", "pipedrive.com", "zoho.com", "monday.com"],
    "country": "US"
}
```

Headline numbers only, for a long lead list:

```json
{
    "domains": ["acme.com", "example.org", "globex.com"],
    "monthsOfHistory": 0,
    "keywordData": false,
    "competitorData": false,
    "countryBreakdown": false,
    "adData": false,
    "backlinkData": false
}
```

Two years of UK history for trend charts:

```json
{ "domains": ["asos.com", "boohoo.com", "next.co.uk"], "country": "UK", "monthsOfHistory": 24 }
```

***

### Output Overview

| Group | Fields |
|---|---|
| Domain | `domain`, `country`, `countryName`, `found`, `month`, `lastMonthWithData`, `firstSeenMonth`, `domainStrength` |
| Organic | `organicKeywords`, `monthlyOrganicClicks`, `monthlyOrganicValue`, `averageOrganicPosition`, each with a `…Change` field |
| Paid | `paidKeywords`, `monthlyPaidClicks`, `monthlyAdBudget`, `averageAdPosition`, each with a `…Change` field |
| Year ago | `yearAgo` with the same numbers twelve months earlier |
| Keywords | `topOrganicKeywords`, `topPaidKeywords`, `newPaidKeywords`, `keywordMovement`, `rankingChanges` |
| Click share | `organicClickShare`, `paidClickShare` (percent of Google clicks) |
| Competitors | `organicCompetitors`, `paidCompetitors` |
| Google Ads | `adHistory` (`keywordsWithAds`, `topAds`, `adCopySamples`, `landingPages`, `adKeywords`), `buyRecommendationsTotal`, `buyRecommendations` |
| Backlinks | `backlinksTotal`, `backlinkTypes`, `backlinks` |
| Countries | `primaryCountry`, `keywordsByCountry` |
| History | `history`, one entry per month, newest first |
| Other | `currency` (USD), `spyfuUrl`, `inputValue`, `missingSections`, `scrapedAt` |

The Output tab has five views: Overview, Keywords, Competitors, Ads & backlinks and History.

***

### Output Samples

A report (lists shortened):

```json
{
    "domain": "hubspot.com",
    "country": "US",
    "countryName": "United States",
    "found": true,
    "month": "2026-10",
    "lastMonthWithData": "2026-10",
    "firstSeenMonth": "2006-11",
    "domainStrength": 72,
    "organicKeywords": 842400,
    "organicKeywordsChange": -43100,
    "monthlyOrganicClicks": 888000,
    "monthlyOrganicClicksChange": -23100,
    "monthlyOrganicValue": 13200000,
    "monthlyOrganicValueChange": -720000,
    "averageOrganicPosition": 39.8,
    "paidKeywords": 67480,
    "paidKeywordsChange": 1620,
    "monthlyPaidClicks": 455200,
    "monthlyPaidClicksChange": 4100,
    "monthlyAdBudget": 1843000,
    "monthlyAdBudgetChange": -75000,
    "averageAdPosition": 2.4,
    "organicClickShare": 66.1,
    "paidClickShare": 33.9,
    "currency": "USD",
    "yearAgo": {
        "month": "2025-10",
        "organicKeywords": 1395000,
        "monthlyOrganicClicks": 1552000,
        "monthlyOrganicValue": 8382000,
        "paidKeywords": 6914,
        "monthlyPaidClicks": 8376,
        "monthlyAdBudget": 3352000
    },
    "topOrganicKeywords": [
        {
            "keyword": "crm",
            "position": 2,
            "positionChange": 1,
            "url": "https://www.hubspot.com/products/crm",
            "searchVolume": 247000,
            "cpc": 20.83,
            "monthlyClicks": 20700,
            "monthlyClicksChange": 6700,
            "difficulty": 49
        }
    ],
    "topPaidKeywords": [
        {
            "keyword": "slack",
            "searchVolume": 1260000,
            "cpc": 0.59,
            "monthlyClicks": 82600,
            "monthlyCost": 48587.7,
            "difficulty": 42,
            "advertisers": 63,
            "topOrganicResult": "slack.com",
            "recentAdvertisers": ["monday.com", "yourco.io", "circle.so"]
        }
    ],
    "newPaidKeywords": [
        {
            "keyword": "drop shipping",
            "searchVolume": 36500,
            "cpc": 6.26,
            "monthlyClicks": 16500,
            "monthlyCost": 103257.9,
            "difficulty": 38,
            "advertisers": 72,
            "topOrganicResult": "whop.com",
            "recentAdvertisers": ["dropxl.com", "shopify.com"]
        }
    ],
    "keywordMovement": {
        "newlyRanked": 269552,
        "gainedRanks": 189557,
        "lostRanks": 164331,
        "justMadeItToPageOne": 43892,
        "justFellOffPageOne": 16365,
        "almostOnPageOne": 74029,
        "onPageOne": 104400,
        "beyondPageOne": 681185,
        "gainedClicks": 22757,
        "lostClicks": 100005
    },
    "organicCompetitors": [
        { "domain": "mailchimp.com", "commonKeywords": 26096 },
        { "domain": "salesforce.com", "commonKeywords": 33288 }
    ],
    "paidCompetitors": [
        { "domain": "attio.com", "commonKeywords": 13054 },
        { "domain": "monday.com", "commonKeywords": 18133 }
    ],
    "primaryCountry": "US",
    "keywordsByCountry": [
        { "country": "US", "keywords": 842400 },
        { "country": "UK", "keywords": 405400 }
    ],
    "adHistory": {
        "keywordsWithAds": 4148,
        "topAds": [
            {
                "title": "Free Online CRM",
                "body": "HubSpot CRM Software — Increase leads, accelerate sales, organize your contacts, and better serve your customers.",
                "url": "http://hubspot.com/",
                "averagePosition": 2.3,
                "shareOfAdsServed": 13.5
            }
        ],
        "adCopySamples": [
            {
                "keyword": "crm free",
                "month": "2024-08",
                "position": 1,
                "title": "Free Online CRM",
                "body": "HubSpot CRM Software — Increase leads, accelerate sales, organize your contacts, and better serve your customers.",
                "url": "http://hubspot.com/",
                "landingPage": "http://hubspot.com/"
            }
        ],
        "landingPages": [
            { "url": "http://hubspot.com/", "adsSeen": 949, "keywords": ["crm free", "crm software", "free crm software", "hub spot", "free website"], "lastSeenMonth": "2024-09" }
        ],
        "adKeywords": [
            { "keyword": "crm software", "monthlyClicks": 6652, "cpc": 28.45, "adsSeen": 35 }
        ]
    },
    "buyRecommendationsTotal": 159324,
    "buyRecommendations": [
        {
            "keyword": "constant contact",
            "searchVolume": 170000,
            "monthlyClicks": 24400,
            "cpc": 0.86,
            "monthlyCost": 21036,
            "competitorsBuying": ["attio.com", "monday.com", "pipedrive.com"]
        }
    ],
    "backlinksTotal": 32343,
    "backlinkTypes": { "affiliate": 217, "blog": 11463, "forum": 46, "news": 233, "other": 20172, "governmentOrEducation": 290 },
    "backlinks": [
        {
            "url": "https://www.insidesales.com/largest-sales-development-summit/",
            "linkingDomain": "insidesales.com",
            "linkingDomainStrength": 41,
            "linkingDomainMonthlyClicks": 120000,
            "pageMonthlyClicks": 1,
            "pageRankedKeywords": 1,
            "outboundLinksOnPage": 21
        }
    ],
    "history": [
        { "month": "2026-10", "domainStrength": 72, "organicKeywords": 842400, "monthlyOrganicClicks": 888000, "monthlyOrganicValue": 13200000, "averageOrganicPosition": 39.8, "paidKeywords": 67480, "monthlyPaidClicks": 455200, "monthlyAdBudget": 1843000, "averageAdPosition": 2.4 },
        { "month": "2026-09", "domainStrength": 72, "organicKeywords": 885500, "monthlyOrganicClicks": 911100, "monthlyOrganicValue": 13920000, "averageOrganicPosition": 40.3, "paidKeywords": 65860, "monthlyPaidClicks": 451100, "monthlyAdBudget": 1918000, "averageAdPosition": 2.4 }
    ],
    "spyfuUrl": "https://www.spyfu.com/overview/domain?query=hubspot.com",
    "inputValue": "hubspot.com",
    "scrapedAt": "2026-11-13T08:52:11.204Z"
}
```

A domain SpyFu has no data for (not charged):

```json
{
    "domain": "brand-new-site.com",
    "country": "US",
    "countryName": "United States",
    "found": false,
    "errorKind": "unavailable",
    "error": "SpyFu has no search data for this domain in United States. Try another country, or check the spelling.",
    "spyfuUrl": "https://www.spyfu.com/overview/domain?query=brand-new-site.com",
    "inputValue": "brand-new-site.com",
    "scrapedAt": "2026-11-13T08:52:11.371Z"
}
```

***

### Key Output Fields

#### Headline numbers

`organicKeywords`, `monthlyOrganicClicks` and `monthlyOrganicValue` describe Google's organic results; `paidKeywords`, `monthlyPaidClicks` and `monthlyAdBudget` describe Google Ads. Money is in USD. Each has a `…Change` field against the previous month.

#### Trend

`yearAgo` holds the same numbers twelve months earlier. `history` holds one entry per month, newest first, for as many months as `monthsOfHistory` asks.

#### Keywords

`topOrganicKeywords` are the domain's most valuable organic keywords. `topPaidKeywords` are the keywords it has bought ads on most successfully, `newPaidKeywords` the ones it started buying recently. Costs are broad match. `keywordMovement` counts keywords by what changed; `rankingChanges` gives sample keywords for each change.

#### Competitors

`organicCompetitors` and `paidCompetitors` list the domains that share the most keywords, with `commonKeywords`.

#### Google Ads

`adHistory.keywordsWithAds` counts every keyword SpyFu has seen the domain advertise on. `topAds` are its most-served ads with title, text, average position and their share of all its ads. `adCopySamples`, `landingPages` and `adKeywords` come from the ad keywords SpyFu shows publicly. `buyRecommendations` are keywords the domain's top three ad competitors all buy and it does not.

#### Backlinks

`backlinksTotal` is the number of backlinks SpyFu has found, `backlinkTypes` splits them by site type, and `backlinks` lists five linking pages with the linking site's strength and traffic.

#### Click share

`organicClickShare` and `paidClickShare` split the domain's Google clicks for the month between organic results and ads, in percent.

***

### FAQ

#### How many keywords does each list hold?

Keyword lists and linking pages hold up to five entries, the same number SpyFu shows on its public domain overview. Buy ideas, top ads, ad copy samples and landing pages hold up to ten. The counts in `keywordMovement`, `backlinksTotal`, `buyRecommendationsTotal` and `adHistory.keywordsWithAds` are SpyFu's full totals.

#### Why are the ad copy samples older than the paid numbers?

SpyFu's public view shows the ads for one page of 25 ad keywords and hides the text of some of them. The samples, landing pages and ad keywords come from that page, so they can be older than the domain's latest campaigns. The monthly paid numbers (`paidKeywords`, `monthlyAdBudget`, `history`) are complete.

#### Why does a row show zeros for the current month?

The domain no longer ranks or advertises in that country. `lastMonthWithData` says when SpyFu last saw it.

#### Why does a row have `found: false`?

With `errorKind: "unavailable"`, SpyFu has no data for the domain in that country; try another country or check the spelling. With `errorKind: "failed"`, SpyFu did not answer for that domain during the run; run it again. Neither kind is charged.

#### Why does a row have `missingSections`?

SpyFu answered with the domain's numbers but not with one of the extra parts (for example competitors). The row is still complete for everything else.

#### Can I look up a subdomain or a single page?

SpyFu reports at the domain level, so `blog.example.com` and `example.com/page` both return the `example.com` report.

#### How fast is a run?

About 50 domains a minute with the default **Max concurrency** of 2, which keeps results complete. You can raise it to 5 to finish sooner; any domain that comes back without data is a free `failed` row you can run again.

#### How fresh is the data?

SpyFu updates its database monthly. `month` says which month the headline numbers describe.

#### How do I compare countries?

Run once per country. `keywordsByCountry` shows where a domain has the most keywords, which tells you which countries are worth a full run.

***

### Support

Found a bug or need a field that is not there? Open an issue on the actor's **Issues** tab.

Email: muhamed.didovic@gmail.com

***

### Additional Services

Need a custom scraper, a tailored export, or an integration into your own pipeline? Custom builds are available: muhamed.didovic@gmail.com.

***

### Explore More Scrapers

- **[Similarweb Scraper](https://apify.com/memo23/similarweb-scraper)**: website traffic, rank, visits and traffic sources
- **[Ahrefs Scraper](https://apify.com/memo23/ahrefs-scraper)**: domain rating, backlinks, keywords and traffic
- **[Semrush Scraper](https://apify.com/memo23/semrush-scraper)**: traffic, backlinks, keyword ideas and top sites
- **[Moz Scraper](https://apify.com/memo23/moz-scraper)**: domain authority, spam score and keywords
- **[Keyword Search Volume](https://apify.com/memo23/keyword-metrics)**: search volume, CPC and difficulty for Google and Bing

***

### 🤖 For AI Agents & LLM Apps

Compact reference for AI agents calling this actor via the [Apify MCP server](https://mcp.apify.com) or the Apify API (actor: `memo23/spyfu-scraper`).

**Purpose:** SpyFu's organic and paid search report for a list of domains, in one of 32 countries. No login.

**Minimal input:**

```json
{ "domains": ["hubspot.com", "mailchimp.com"] }
```

**Output:** one dataset row per domain: domain, country, found, month, domainStrength, organicKeywords, monthlyOrganicClicks, monthlyOrganicValue, averageOrganicPosition, paidKeywords, monthlyPaidClicks, monthlyAdBudget, averageAdPosition, a `…Change` field for each, yearAgo, topOrganicKeywords, topPaidKeywords, newPaidKeywords, keywordMovement, rankingChanges, organicClickShare, paidClickShare, organicCompetitors, paidCompetitors, adHistory, buyRecommendationsTotal, buyRecommendations, backlinksTotal, backlinkTypes, backlinks, primaryCountry, keywordsByCountry, history, spyfuUrl.

**Behaviors an agent should know:**

- `country` takes SpyFu codes (US, UK, DE, FR, ...); GB is read as UK.
- Set `monthsOfHistory: 0` and the five toggles (`keywordData`, `competitorData`, `countryBreakdown`, `adData`, `backlinkData`) to false for the smallest rows.
- Rows with `found: false` carry `errorKind` (`unavailable` or `failed`) and are not charged.
- Keyword lists and linking pages hold up to 5 entries; buy ideas and ad lists up to 10.
- Billing: one `domain` event per row with `found: true`.

***

### ⚠️ Disclaimer

This Actor is an independent tool and is not affiliated with, endorsed by, or sponsored by SpyFu. All trademarks mentioned are the property of their respective owners.

The scraper reads only the domain data SpyFu shows publicly to visitors who are not signed in, with no account, paid features or content behind the SpyFu login. Users are responsible for making sure their use complies with SpyFu's Terms of Service, applicable data-protection law, and any contractual obligations of their own organization.

***

### SEO Keywords

SpyFu scraper, SpyFu API, SpyFu API alternative, SpyFu data export, scrape SpyFu, SpyFu bulk domain lookup, SpyFu competitor analysis, competitor keyword research, competitor PPC research, competitor ad spend, Google Ads spend checker, paid keywords by domain, organic keywords by domain, organic traffic value, domain strength, SEO competitor analysis tool, PPC competitor analysis tool, keyword gap, top competitors by domain, monthly SEO history, bulk SEO metrics, agency SEO reporting, lead scoring by ad spend, competitor ad copy, Google Ads history by domain, competitor landing pages, keywords to buy, backlinks by domain, backlink checker, Apify SpyFu

# Actor input Schema

## `domains` (type: `array`):

Websites to look up, one per line. A bare domain (hubspot.com), a full website address or a SpyFu report link all work. Subdomains are reported for their main domain, as SpyFu does.

## `country` (type: `string`):

Whose Google results the numbers describe. SpyFu keeps a separate database per country.

## `monthsOfHistory` (type: `integer`):

How many months of organic and paid numbers to add to each report, newest first. 0 leaves the history out. SpyFu goes back as far as 2006 for established sites.

## `keywordData` (type: `boolean`):

Adds the domain's most valuable organic keywords, top and newest paid keywords, how many keywords gained or lost rankings, and sample keywords for each change.

## `competitorData` (type: `boolean`):

Adds the domains competing for the same organic and paid keywords, with how many keywords each shares.

## `countryBreakdown` (type: `boolean`):

Adds how many keywords the domain ranks for in each of SpyFu's 32 countries, and its main country.

## `adData` (type: `boolean`):

Adds the domain's Google Ads history (ad titles and text, landing pages, the keywords it advertised on and when) and up to 10 keywords its ad competitors buy that it does not.

## `backlinkData` (type: `boolean`):

Adds the domain's backlink count, a split by site type (blogs, news, forums and more) and five linking pages with their strength and traffic.

## `maxConcurrency` (type: `integer`):

How many domains are checked at the same time. The default of 2 keeps results complete; up to 5 finishes sooner, and any domain left without data comes back as a free failed row.

## Actor input object example

```json
{
  "domains": [
    "hubspot.com",
    "mailchimp.com",
    "canva.com"
  ],
  "country": "US",
  "monthsOfHistory": 12,
  "keywordData": true,
  "competitorData": true,
  "countryBreakdown": true,
  "adData": true,
  "backlinkData": true,
  "maxConcurrency": 2
}
```

# Actor output Schema

## `reports` (type: `string`):

Every domain report, including rows for domains SpyFu has no data for.

# 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 = {
    "domains": [
        "hubspot.com",
        "mailchimp.com",
        "canva.com"
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("memo23/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 = { "domains": [
        "hubspot.com",
        "mailchimp.com",
        "canva.com",
    ] }

# Run the Actor and wait for it to finish
run = client.actor("memo23/spyfu-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 '{
  "domains": [
    "hubspot.com",
    "mailchimp.com",
    "canva.com"
  ]
}' |
apify call memo23/spyfu-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,memo23/spyfu-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/8wxSjHhdMVLbjeIpS/builds/KTc3mxHdJcIe77Uk2/openapi.json
