> ## Documentation Index
> Fetch the complete documentation index at: https://docs.fetchhive.com/llms.txt
> Use this file to discover all available pages before exploring further.

# 竞争域名

> 配置一个工作流步骤，找出与某个域名竞争相同 Google 关键词的域名

# 竞争域名

当你想知道谁在 Google 搜索中与某个域名竞争时，使用 **Competitor Domains**。该步骤返回与该域名共同排名关键词最多的域名，以及它们共享的关键词数量。典型用途是找出网站真正的搜索竞争对手，然后在循环中把它们交给 **Ranked Keywords**，对比各自的关键词列表。

## 配置

| 选项 | 必填 | 说明 |
| - | - | - |
| Name | 否 | 工作流画布上的步骤标签。 |
| Domain | 是 | 要查找竞争对手的域名，例如 `example.com`。如果输入完整 URL，则只使用其中的域名。此字段支持通过 **Insert Variable** 使用工作流变量。 |
| Language | 否 | 结果的语言，例如英语。可从列表中选择或启用 **Custom Value**。 |
| Location | 否 | 要检查的国家或地区。可从列表中选择，或启用 **Custom Value** 并填写数字位置代码（例如美国为 `2840`）或解析为位置代码的变量。 |
| Domain limit | 否 | 返回多少个竞争域名，范围 1 到 1000。默认 25。 |
| Exclude very large sites | 否 | 开启后，会排除 Wikipedia、YouTube 等超大型综合网站，使列表更贴近真正的竞争对手。默认开启。 |
| When the step fails | 否 | 控制此步骤失败时工作流应 **Terminate Workflow** 还是 **Continue**。 |

从 **Search steps...** 的 **Research** 分组中添加此步骤。

竞争对手按共享关键词数从高到低排序。仅统计自然（非付费）排名。

## 输出

点击步骤标题中的 **Run** 进行测试。运行完成后，Fetch Hive 会在 **Output** 中显示域名列表。

在后续步骤中使用变量选择器插入该次运行可用的精确输出路径。竞争对手列表为：

```text theme={null}
{{step_2.output.items}}
```

输出还包含 `target`（所查询的域名）、`total_count`（总共找到的竞争域名数量）、`items_count`（本次运行返回的数量），以及所使用的 `location_code` 和 `language_code`。

`items` 中的每一项包括：

| 字段 | 含义 |
| - | - |
| `domain` | 竞争域名。 |
| `shared_keywords` | 该竞争对手与你的域名共同排名的关键词数量。 |
| `average_position` | 该竞争对手在共享关键词上的平均排名。 |
| `organic_keywords` | 该竞争对手总共排名的关键词数量。 |
| `organic_traffic` | 该竞争对手从自然搜索获得的预计月访问量。 |

要使用第一个竞争对手及其共享关键词数：

```text theme={null}
{{step_2.output.items[0].domain}}
{{step_2.output.items[0].shared_keywords}}
```

## 示例

从 **Search steps...** 的 **Research** 分组中添加 **Competitor Domains**。

将 **Name** 设为类似 `搜索竞争对手` 的名称。

在 **Domain** 中输入你的域名，或点击 **Insert Variable** 使用先前步骤或工作流输入中的值。

选择 **Language** 和 **Location**，设置 **Domain limit**，然后点击 **Run**，在 **Output** 中查看竞争对手。

## 说明

* 单次运行最多返回 1000 个域名，没有分页。可用 `total_count` 查看还找到了多少个。
* 托管运行会将记录的服务费用加上 6% 服务费转换为任务积分。费用随返回的域名数量增加。请参阅 [任务费用](https://docs.fetchhive.com/zh/resources/task-costs.md)。

另请参阅：[排名关键词](https://docs.fetchhive.com/zh/workflows/steps/web-research/ranked-keywords.md)、[关键词难度](https://docs.fetchhive.com/zh/workflows/steps/web-research/keyword-difficulty.md)、[创建和编辑](https://docs.fetchhive.com/zh/workflows/creating-and-editing.md)、[测试与迭代](https://docs.fetchhive.com/zh/workflows/testing-and-iteration.md) 和 [错误处理](https://docs.fetchhive.com/zh/workflows/error-handling.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.