# MOZ Scraper (`api-empire/moz-scraper`) Actor

🔍 MOZ Scraper automates extraction of Moz data for SEO teams—surfacing key metrics & insights fast. ⚡ Perfect for competitive research, link analysis, reporting & workflow efficiency.

- **URL**: https://apify.com/api-empire/moz-scraper.md
- **Developed by:** [API Empire](https://apify.com/api-empire) (community)
- **Categories:** SEO tools, Automation, Developer tools
- **Stats:** 3 total users, 2 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $4.99 / 1,000 results

This Actor is paid per event and usage. You are charged both the fixed price for specific events and for Apify platform usage.

Learn more: https://docs.apify.com/platform/actors/running/actors-in-store#pay-per-event

## What's an Apify Actor?

Actors are a software tools running on the Apify platform, for all kinds of web data extraction and automation use cases.
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.

In JavaScript/TypeScript projects, use official [JavaScript/TypeScript client](https://docs.apify.com/api/client/js.md):

```bash
npm install apify-client
```

In Python projects, use official [Python client library](https://docs.apify.com/api/client/python.md):

```bash
pip install apify-client
```

In shell scripts, use [Apify CLI](https://docs.apify.com/cli/docs.md):

````bash
# MacOS / Linux
curl -fsSL https://apify.com/install-cli.sh | bash
# Windows
irm https://apify.com/install-cli.ps1 | iex
```bash

In AI frameworks, you might use the [Apify MCP server](https://docs.apify.com/platform/integrations/mcp.md).

If your project is in a different language, use 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

## 🦅 MOZ Domain Authority Scraper

Extract **enterprise-grade MOZ SEO insights** for any domain — **Domain Authority (DA)**, **Page Authority (PA)**, **Spam Score**, **Trust Score**, backlink history, ranking keywords, branded keywords, top questions, competitors & visibility — straight from [MOZ.com](https://moz.com/domain-analysis). Built for **bulk analysis** with one-click exports to JSON, CSV, Excel & XML.

---

### ✨ Why Choose This Actor?

- 🧠 **Complete domain overview** — DA, PA, Spam, Trust, off-page SEO score in one record.
- 📈 **Real authority history** — monthly Domain Authority timeline, verified against historical archives where available.
- 🧲 **Backlink intelligence** — total & quality backlinks, do/no-follow split, discovered/lost trend.
- 🔑 **Keyword & competitor data** — ranking distribution, top ranking & branded keywords, top questions, top competitors with visibility.
- 🛡️ **Self-healing proxy ladder** — starts direct, then auto-falls-back to **Datacenter → Residential** if MOZ blocks. You don't have to think about it.
- ⚡ **Bulk + concurrent** — analyze many domains in parallel, with live results streamed to the dataset.

---

### 🔑 Key Features

| Feature | Description |
|---|---|
| Domain Authority (DA) | MOZ authority score 0–100 |
| Page Authority (PA) | Authority of the strongest page |
| Spam & Trust Score | Risk + trust signals |
| Backlinks | Total, quality %, do/no-follow %, discovered/lost history |
| Keywords | Ranking distribution, top ranking, branded, questions |
| Competitors | Top search competitors with visibility % |
| Domain age | Registration-based age in years |
| Authority history | Up to 33 months of DA history |

---

### 🛠️ Input

| Field | Type | Description |
|---|---|---|
| `urls` | array (required) | Domains or URLs to analyze, e.g. `zapier.com`. Bulk-friendly. |
| `include_authority` | boolean | Include full domain overview (DA/PA/Spam/backlinks/keywords/competitors). Default `true`. |
| `include_history` | boolean | Include monthly Domain Authority history (~15–45s/domain). Default `true`. |
| `maxConcurrency` | integer | Domains analyzed in parallel (1–10). Default `3`. |
| `proxyConfiguration` | object | Proxy settings. Auto-fallback ladder is always active. |

#### Example input

```json
{
  "urls": ["zapier.com", "moz.com"],
  "include_authority": true,
  "include_history": true,
  "maxConcurrency": 3,
  "proxyConfiguration": { "useApifyProxy": true }
}
````

***

### 📦 Output

Each domain produces one rich record. Example (truncated):

```json
{
  "data_captured_at": "2026-06-14T12:32:35",
  "type": "domain_authority",
  "domain": "zapier.com",
  "domain_age_years": 14.63,
  "authority_score": 82,
  "page_authority_score": 75,
  "trust_score": 8,
  "spam_score": 2,
  "offpage_seo_score_percentage": 0.71,
  "authority_score_last_month": 81,
  "authority_score_month_over_month_change": 1,
  "authority_score_history": [{ "date": "2023-10-01T00:00:00", "domain_authority": 83 }],
  "total_linking_root_domains": 112600,
  "total_backlinks": 2000000,
  "quality_backlinks": 352000,
  "quality_backlinks_percentage": 0.18,
  "do_follow_backlinks_percentage": 0.83,
  "no_follow_backlinks_percentage": 0.17,
  "backlinks_discovered_lost_history": [{ "date": "2026-06-11T00:00:00", "discovered": 75, "lost": -36 }],
  "keywords_ranking_distribution": [{ "domain": "zapier.com", "position": "#1-3", "ranking_keywords": 25576 }],
  "top_pages": [{ "page_url": "zapier.com/", "page_authority": 75 }],
  "top_linking_domains": [{ "domain": "linkedin.com", "domain_authority": 99 }],
  "top_ranking_keywords": [{ "keyword": "zapier", "rank": 1 }],
  "top_branded_keywords": [{ "keyword": "zapier", "volume": 94400 }],
  "top_questions": [{ "question": "What exactly does Zapier do?", "relevance": 28.43 }],
  "top_competitors": [{ "domain": "www.reddit.com", "visibility": 6.88 }]
}
```

The dataset is split into **per-section views** (Overview, Authority History, Backlinks, Keyword Distribution, Top Pages, Linking Domains, Ranking Keywords, Branded Keywords, Questions, Competitors) for clean, focused tables.

***

### 🚀 How to Use (Apify Console)

1. Log in at [console.apify.com](https://console.apify.com) → **Actors**.
2. Open **MOZ Domain Authority Scraper**.
3. Enter one or more domains in **URL(s) or Domain(s)** (use **Bulk edit** for lists).
4. Toggle **Overview** / **History** as needed.
5. Click **Start** and watch the live log fill with real-time SEO results.
6. Open the **Output** tab — switch between section views — and export to JSON / CSV / XLSX.

### 🤖 Use via API

```bash
curl -X POST "https://api.apify.com/v2/acts/<ACTOR_ID>/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
     -H "Content-Type: application/json" \
     -d '{"urls":["zapier.com"],"include_authority":true,"include_history":true}'
```

***

### 💡 Best Use Cases

- Competitor SEO benchmarking and link-gap analysis.
- Lead qualification (filter prospects by DA / spam score).
- Tracking authority trends over time.
- Building SEO dashboards and reports at scale.

### 💰 Pricing

This actor uses the **pay-per-event** model. You are charged a flat price per **`row_result`** — i.e. one charge for every domain record successfully written to the output table. Runs that fail to scrape a domain are pushed as error records and are **not** charged. No surprise compute bills — you pay per result delivered.

### ❓ FAQ

**Why does it sometimes switch to a residential proxy?** MOZ's free tool limits reports per IP. The actor starts with direct requests and only escalates (datacenter → residential) when blocked, then sticks with the working proxy.

**Are all fields scraped live?** Core metrics (DA, PA, spam, linking domains, top pages/keywords/competitors, charts) are scraped live. Backlink totals, trust and off-page scores are deterministic estimates derived from the live metrics, and history months without an archive snapshot are estimated.

**Can I scrape many domains?** Yes — add them in bulk and tune **Max Concurrency**.

### 📨 Support & Feedback

Found an issue or want a new field? Open an issue on the actor's **Issues** tab.

***

> ⚖️ Data is collected from publicly available MOZ pages. You are responsible for compliance with applicable laws and the target site's terms of service.

# Actor input Schema

## `urls` (type: `array`):

List one or more domains or URLs to analyze on MOZ (e.g. `zapier.com`, `https://moz.com`). Add them one-by-one or paste a bulk list with **Bulk edit**.

## `include_authority` (type: `boolean`):

If enabled, collects the full domain overview: Domain Authority, Page Authority, Spam Score, backlink totals, top pages, linking domains, ranking & branded keywords, top questions and competitors.

## `include_history` (type: `boolean`):

If enabled, builds a monthly Domain Authority history timeline for each domain (verified against historical snapshots where available).

## `proxyConfiguration` (type: `object`):

Proxy strategy. The scraper starts with NO proxy, then automatically falls back to a Datacenter proxy, and finally to a sticky Residential proxy if MOZ blocks the request — so you almost never need to change this.

## Actor input object example

```json
{
  "urls": [
    "zapier.com"
  ],
  "include_authority": true,
  "include_history": true,
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}
```

# 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 = {
    "urls": [
        "zapier.com"
    ],
    "proxyConfiguration": {
        "useApifyProxy": true
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("api-empire/moz-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 = {
    "urls": ["zapier.com"],
    "proxyConfiguration": { "useApifyProxy": True },
}

# Run the Actor and wait for it to finish
run = client.actor("api-empire/moz-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 '{
  "urls": [
    "zapier.com"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true
  }
}' |
apify call api-empire/moz-scraper --silent --output-dataset

```

## MCP server setup

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

```

## OpenAPI specification

```json
{
    "openapi": "3.0.1",
    "info": {
        "title": "MOZ Scraper",
        "description": "🔍 MOZ Scraper automates extraction of Moz data for SEO teams—surfacing key metrics & insights fast. ⚡ Perfect for competitive research, link analysis, reporting & workflow efficiency.",
        "version": "0.1",
        "x-build-id": "O1tboOAjeQ2tPYRKT"
    },
    "servers": [
        {
            "url": "https://api.apify.com/v2"
        }
    ],
    "paths": {
        "/acts/api-empire~moz-scraper/run-sync-get-dataset-items": {
            "post": {
                "operationId": "run-sync-get-dataset-items-api-empire-moz-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        },
        "/acts/api-empire~moz-scraper/runs": {
            "post": {
                "operationId": "runs-sync-api-empire-moz-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor and returns information about the initiated run in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK",
                        "content": {
                            "application/json": {
                                "schema": {
                                    "$ref": "#/components/schemas/runsResponseSchema"
                                }
                            }
                        }
                    }
                }
            }
        },
        "/acts/api-empire~moz-scraper/run-sync": {
            "post": {
                "operationId": "run-sync-api-empire-moz-scraper",
                "x-openai-isConsequential": false,
                "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
                "tags": [
                    "Run Actor"
                ],
                "requestBody": {
                    "required": true,
                    "content": {
                        "application/json": {
                            "schema": {
                                "$ref": "#/components/schemas/inputSchema"
                            }
                        }
                    }
                },
                "parameters": [
                    {
                        "name": "token",
                        "in": "query",
                        "required": true,
                        "schema": {
                            "type": "string"
                        },
                        "description": "Enter your Apify token here"
                    }
                ],
                "responses": {
                    "200": {
                        "description": "OK"
                    }
                }
            }
        }
    },
    "components": {
        "schemas": {
            "inputSchema": {
                "type": "object",
                "required": [
                    "urls"
                ],
                "properties": {
                    "urls": {
                        "title": "🌐 URL(s) or Domain(s)",
                        "type": "array",
                        "description": "List one or more domains or URLs to analyze on MOZ (e.g. `zapier.com`, `https://moz.com`). Add them one-by-one or paste a bulk list with **Bulk edit**.",
                        "items": {
                            "type": "string"
                        }
                    },
                    "include_authority": {
                        "title": "📊 Include Domain Overview (DA & PA, Spam, Backlinks, Keywords, Competitors)",
                        "type": "boolean",
                        "description": "If enabled, collects the full domain overview: Domain Authority, Page Authority, Spam Score, backlink totals, top pages, linking domains, ranking & branded keywords, top questions and competitors.",
                        "default": true
                    },
                    "include_history": {
                        "title": "📈 Include Domain Authority History (~15–45s per domain)",
                        "type": "boolean",
                        "description": "If enabled, builds a monthly Domain Authority history timeline for each domain (verified against historical snapshots where available).",
                        "default": true
                    },
                    "proxyConfiguration": {
                        "title": "🛡️ Proxy Configuration",
                        "type": "object",
                        "description": "Proxy strategy. The scraper starts with NO proxy, then automatically falls back to a Datacenter proxy, and finally to a sticky Residential proxy if MOZ blocks the request — so you almost never need to change this.",
                        "default": {
                            "useApifyProxy": true
                        }
                    }
                }
            },
            "runsResponseSchema": {
                "type": "object",
                "properties": {
                    "data": {
                        "type": "object",
                        "properties": {
                            "id": {
                                "type": "string"
                            },
                            "actId": {
                                "type": "string"
                            },
                            "userId": {
                                "type": "string"
                            },
                            "startedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "finishedAt": {
                                "type": "string",
                                "format": "date-time",
                                "example": "2025-01-08T00:00:00.000Z"
                            },
                            "status": {
                                "type": "string",
                                "example": "READY"
                            },
                            "meta": {
                                "type": "object",
                                "properties": {
                                    "origin": {
                                        "type": "string",
                                        "example": "API"
                                    },
                                    "userAgent": {
                                        "type": "string"
                                    }
                                }
                            },
                            "stats": {
                                "type": "object",
                                "properties": {
                                    "inputBodyLen": {
                                        "type": "integer",
                                        "example": 2000
                                    },
                                    "rebootCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "restartCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "resurrectCount": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "computeUnits": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "options": {
                                "type": "object",
                                "properties": {
                                    "build": {
                                        "type": "string",
                                        "example": "latest"
                                    },
                                    "timeoutSecs": {
                                        "type": "integer",
                                        "example": 300
                                    },
                                    "memoryMbytes": {
                                        "type": "integer",
                                        "example": 1024
                                    },
                                    "diskMbytes": {
                                        "type": "integer",
                                        "example": 2048
                                    }
                                }
                            },
                            "buildId": {
                                "type": "string"
                            },
                            "defaultKeyValueStoreId": {
                                "type": "string"
                            },
                            "defaultDatasetId": {
                                "type": "string"
                            },
                            "defaultRequestQueueId": {
                                "type": "string"
                            },
                            "buildNumber": {
                                "type": "string",
                                "example": "1.0.0"
                            },
                            "containerUrl": {
                                "type": "string"
                            },
                            "usage": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "integer",
                                        "example": 1
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            },
                            "usageTotalUsd": {
                                "type": "number",
                                "example": 0.00005
                            },
                            "usageUsd": {
                                "type": "object",
                                "properties": {
                                    "ACTOR_COMPUTE_UNITS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATASET_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "KEY_VALUE_STORE_WRITES": {
                                        "type": "number",
                                        "example": 0.00005
                                    },
                                    "KEY_VALUE_STORE_LISTS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_READS": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "REQUEST_QUEUE_WRITES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_INTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "DATA_TRANSFER_EXTERNAL_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                                        "type": "integer",
                                        "example": 0
                                    },
                                    "PROXY_SERPS": {
                                        "type": "integer",
                                        "example": 0
                                    }
                                }
                            }
                        }
                    }
                }
            }
        }
    }
}
```
