域名分析器工作流模板
中级
这是一个Market Research领域的自动化工作流,包含 12 个节点。主要使用 Code, McpClient, GoogleSheets, ManualTrigger, SplitInBatches 等节点。 使用Ahrefs和Google Sheets自动化多域名SEO分析
前置要求
- •Google Sheets API 凭证
分类
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
"id": "62lxnDVx4b47ql6P",
"meta": {
"instanceId": "3d4f6f82ad714311bb383a0cddf651da8753530e5575f46d078b9a29d27557e0"
},
"name": "域名分析器工作流模板",
"nodes": [
{
"id": "d4d19da7-a633-4090-8449-0d51556b6f36",
"name": "当点击\"执行工作流\"时",
"type": "n8n-nodes-base.manualTrigger",
"position": [
-1024,
144
],
"parameters": {},
"typeVersion": 1
},
{
"id": "6297f8b6-b592-48e0-80ea-799e7ba02e95",
"name": "遍历项目",
"type": "n8n-nodes-base.splitInBatches",
"position": [
-560,
144
],
"parameters": {
"options": {}
},
"typeVersion": 3
},
{
"id": "8e2c22fa-bd52-4ef2-b998-f88b073eab71",
"name": "解析 JSON",
"type": "n8n-nodes-base.code",
"position": [
-160,
-240
],
"parameters": {
"jsCode": "// Input: Stringified JSON with escaped characters like \\n, \\\", etc.\nconst inputString = $input.first().json.result.content[0].text\n\n// Parse the string into a real object\nconst parsedJson = JSON.parse(inputString);\n\nreturn [\n {\n json: parsedJson\n }\n];"
},
"typeVersion": 2
},
{
"id": "5c3fa80f-a116-4d1c-8b3f-872dab147dba",
"name": "将流量数据添加到表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
16,
-240
],
"parameters": {
"columns": {
"value": {
"Domain": "={{ $('Get Domains in sheet').item.json.Domain }}",
"top_pages": "={{ $json.top_pages }}",
"top_keywords": "={{ $json.top_keywords }}",
"costMontlyAvg": "={{ $json.traffic.costMontlyAvg }}",
"top_countries": "={{ $json.top_countries }}",
"traffic_history": "={{ $json.traffic_history }}",
"trafficMonthlyAvg": "={{ $json.traffic.trafficMonthlyAvg }}"
},
"schema": [
{
"id": "Domain",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Domain",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "trafficMonthlyAvg",
"type": "string",
"display": true,
"required": false,
"displayName": "trafficMonthlyAvg",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "costMontlyAvg",
"type": "string",
"display": true,
"required": false,
"displayName": "costMontlyAvg",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "traffic_history",
"type": "string",
"display": true,
"required": false,
"displayName": "traffic_history",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "top_pages",
"type": "string",
"display": true,
"required": false,
"displayName": "top_pages",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "top_keywords",
"type": "string",
"display": true,
"required": false,
"displayName": "top_keywords",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "top_countries",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "top_countries",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "domainRating",
"type": "string",
"display": true,
"required": false,
"displayName": "domainRating",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "urlRating",
"type": "string",
"display": true,
"required": false,
"displayName": "urlRating",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "backlinksCount",
"type": "string",
"display": true,
"required": false,
"displayName": "backlinksCount",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "referringDomains",
"type": "string",
"display": true,
"required": false,
"displayName": "referringDomains",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "dofollowBacklinksPercentage",
"type": "string",
"display": true,
"required": false,
"displayName": "dofollowBacklinksPercentage",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "dofollowRefdomainsPercentage",
"type": "string",
"display": true,
"required": false,
"displayName": "dofollowRefdomainsPercentage",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "number",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Domain"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1hqDbgAfqxH7y79TO1Brt8lIXupGkQ7WSf1mnQiiw7Oo/edit#gid=0",
"cachedResultName": "Domains"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1oBQqboIT9ubDmMIvvZveAneUHpuNV60egXsIU3hyuy0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1oBQqboIT9ubDmMIvvZveAneUHpuNV60egXsIU3hyuy0/edit?usp=drivesdk",
"cachedResultName": "Example: Domain Analyzer Workflow"
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "CEWCuoGMaP93jgCn",
"name": "GCP Service account"
}
},
"typeVersion": 4.6
},
{
"id": "67be72c9-3fb1-43a5-a720-5cdb42c87129",
"name": "解析 JSON1",
"type": "n8n-nodes-base.code",
"position": [
-176,
416
],
"parameters": {
"jsCode": "// Input: Stringified JSON with escaped characters like \\n, \\\", etc.\nconst inputString = $input.first().json.result.content[0].text\n\n// Parse the string into a real object\nconst parsedJson = JSON.parse(inputString);\n\nreturn [\n {\n json: parsedJson\n }\n];"
},
"typeVersion": 2
},
{
"id": "ee24bf73-35c9-4f29-b577-6f2901ddf70d",
"name": "将域名SEO数据添加到表格",
"type": "n8n-nodes-base.googleSheets",
"position": [
0,
416
],
"parameters": {
"columns": {
"value": {
"Domain": "={{ $('Get Domains in sheet').item.json.Domain }}",
"urlRating": "={{ $json.overview.urlRating }}",
"domainRating": "={{ $json.overview.domainRating }}",
"backlinksCount": "={{ $json.overview.backlinks }}",
"referringDomains": "={{ $json.overview.refdomains }}",
"dofollowBacklinksPercentage": "={{ $json.overview.dofollowBacklinks }}",
"dofollowRefdomainsPercentage": "={{ $json.overview.dofollowRefdomains }}"
},
"schema": [
{
"id": "Domain",
"type": "string",
"display": true,
"removed": false,
"required": false,
"displayName": "Domain",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "trafficMonthlyAvg",
"type": "string",
"display": true,
"required": false,
"displayName": "trafficMonthlyAvg",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "costMontlyAvg",
"type": "string",
"display": true,
"required": false,
"displayName": "costMontlyAvg",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "traffic_history",
"type": "string",
"display": true,
"required": false,
"displayName": "traffic_history",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "top_pages",
"type": "string",
"display": true,
"required": false,
"displayName": "top_pages",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "top_keywords",
"type": "string",
"display": true,
"required": false,
"displayName": "top_keywords",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "top_countries",
"type": "string",
"display": true,
"required": false,
"displayName": "top_countries",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "domainRating",
"type": "string",
"display": true,
"required": false,
"displayName": "domainRating",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "urlRating",
"type": "string",
"display": true,
"required": false,
"displayName": "urlRating",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "backlinksCount",
"type": "string",
"display": true,
"required": false,
"displayName": "backlinksCount",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "referringDomains",
"type": "string",
"display": true,
"required": false,
"displayName": "referringDomains",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "dofollowBacklinksPercentage",
"type": "string",
"display": true,
"required": false,
"displayName": "dofollowBacklinksPercentage",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "dofollowRefdomainsPercentage",
"type": "string",
"display": true,
"required": false,
"displayName": "dofollowRefdomainsPercentage",
"defaultMatch": false,
"canBeUsedToMatch": true
},
{
"id": "row_number",
"type": "number",
"display": true,
"removed": true,
"readOnly": true,
"required": false,
"displayName": "row_number",
"defaultMatch": false,
"canBeUsedToMatch": true
}
],
"mappingMode": "defineBelow",
"matchingColumns": [
"Domain"
],
"attemptToConvertTypes": false,
"convertFieldsToString": false
},
"options": {},
"operation": "update",
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1hqDbgAfqxH7y79TO1Brt8lIXupGkQ7WSf1mnQiiw7Oo/edit#gid=0",
"cachedResultName": "Domains"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1oBQqboIT9ubDmMIvvZveAneUHpuNV60egXsIU3hyuy0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1oBQqboIT9ubDmMIvvZveAneUHpuNV60egXsIU3hyuy0/edit?usp=drivesdk",
"cachedResultName": "Example: Domain Analyzer Workflow"
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "CEWCuoGMaP93jgCn",
"name": "GCP Service account"
}
},
"typeVersion": 4.6
},
{
"id": "53a605a3-dbca-43f9-9dca-ab3e3aa46fd0",
"name": "获取表格中的域名",
"type": "n8n-nodes-base.googleSheets",
"position": [
-800,
144
],
"parameters": {
"options": {},
"sheetName": {
"__rl": true,
"mode": "list",
"value": "gid=0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1oBQqboIT9ubDmMIvvZveAneUHpuNV60egXsIU3hyuy0/edit#gid=0",
"cachedResultName": "Domains"
},
"documentId": {
"__rl": true,
"mode": "list",
"value": "1oBQqboIT9ubDmMIvvZveAneUHpuNV60egXsIU3hyuy0",
"cachedResultUrl": "https://docs.google.com/spreadsheets/d/1oBQqboIT9ubDmMIvvZveAneUHpuNV60egXsIU3hyuy0/edit?usp=drivesdk",
"cachedResultName": "Example: Domain Analyzer Workflow"
},
"authentication": "serviceAccount"
},
"credentials": {
"googleApi": {
"id": "CEWCuoGMaP93jgCn",
"name": "GCP Service account"
}
},
"typeVersion": 4.6
},
{
"id": "56dea17f-3c6d-4cd3-9aa8-87462ff28786",
"name": "获取SEO统计",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
-352,
416
],
"parameters": {
"toolName": "get_backlinks_list",
"operation": "executeTool",
"toolParameters": "={\n \"domain\": \"{{ $json.Domain }}\"\n}"
},
"credentials": {
"mcpClientApi": {
"id": "IHt3R0V5d8rgP6MK",
"name": "SEO-MCP Client (STDIO)"
}
},
"typeVersion": 1
},
{
"id": "f160163e-c900-47d5-b60e-0bbe6029e28a",
"name": "获取流量",
"type": "n8n-nodes-mcp.mcpClient",
"position": [
-336,
-240
],
"parameters": {
"toolName": "get_traffic",
"operation": "executeTool",
"toolParameters": "={\n \"domain_or_url\": \"{{ $json.Domain }}\"\n}"
},
"credentials": {
"mcpClientApi": {
"id": "IHt3R0V5d8rgP6MK",
"name": "SEO-MCP Client (STDIO)"
}
},
"typeVersion": 1
},
{
"id": "248f15ae-bbab-476c-9956-cafc2c0029e1",
"name": "便签 6",
"type": "n8n-nodes-base.stickyNote",
"position": [
-400,
-400
],
"parameters": {
"color": 7,
"width": 680,
"height": 460,
"content": "## 1. 获取域名流量信息"
},
"typeVersion": 1
},
{
"id": "223ef12a-7cb6-4c66-8cf0-88d8554b86f5",
"name": "便签",
"type": "n8n-nodes-base.stickyNote",
"position": [
-400,
288
],
"parameters": {
"color": 7,
"width": 680,
"height": 460,
"content": "## 2. 获取域名SEO信息"
},
"typeVersion": 1
},
{
"id": "1277a143-0010-4e82-8a0e-e34eacbe9424",
"name": "便签 7",
"type": "n8n-nodes-base.stickyNote",
"position": [
-1584,
-112
],
"parameters": {
"width": 460,
"height": 752,
"content": "## 域名分析器工作流"
},
"typeVersion": 1
}
],
"active": false,
"pinData": {},
"settings": {
"executionOrder": "v1"
},
"versionId": "86b5106a-5d48-43f0-bf5b-b684b68d05a4",
"connections": {
"Parse JSON": {
"main": [
[
{
"node": "Add Traffic Data To Sheet",
"type": "main",
"index": 0
}
]
]
},
"Get Traffic": {
"main": [
[
{
"node": "Parse JSON",
"type": "main",
"index": 0
}
]
]
},
"Parse JSON1": {
"main": [
[
{
"node": "Add Domain SEO Data To Sheet",
"type": "main",
"index": 0
}
]
]
},
"Get SEO Stats": {
"main": [
[
{
"node": "Parse JSON1",
"type": "main",
"index": 0
}
]
]
},
"Loop Over Items": {
"main": [
[],
[
{
"node": "Get SEO Stats",
"type": "main",
"index": 0
},
{
"node": "Get Traffic",
"type": "main",
"index": 0
}
]
]
},
"Get Domains in sheet": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Add Traffic Data To Sheet": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"Add Domain SEO Data To Sheet": {
"main": [
[
{
"node": "Loop Over Items",
"type": "main",
"index": 0
}
]
]
},
"When clicking ‘Execute workflow’": {
"main": [
[
{
"node": "Get Domains in sheet",
"type": "main",
"index": 0
}
]
]
}
}
}常见问题
如何使用这个工作流?
复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。
这个工作流适合什么场景?
中级 - 市场调研
需要付费吗?
本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。
相关工作流推荐
受众问题关键词研究模板
使用OpenAI、Ahrefs和Google表格的受众问题关键词研究工作流
If
Set
Code
+6
17 节点Michael Muenzer
市场调研
分页抓取 Airbnb 房源并存储到 Google Sheets
分页抓取 Airbnb 房源并存储到 Google Sheets
If
Set
Code
+6
18 节点Alex Huy
市场调研
使用GPT-4o-mini和Gmail分析YouTube频道并发送性能报告
使用GPT-4o-mini和Gmail分析YouTube频道并发送性能报告
Code
Email Send
Http Request
+6
20 节点Rahul Joshi
市场调研
模板v08/02 - Facebook广告库到亚马逊爬虫
使用 Apify 爬虫自动在亚马逊上搜索 Facebook 广告产品
If
Set
Code
+8
24 节点Richard Besier
市场调研
使用 OpenAI 自动标记和分析 Google Sheets 中的客户反馈
在 Google Sheets 中批量处理客户反馈,进行情感和情绪分析
Set
Code
Merge
+6
24 节点Parhum Khoshbakht
市场调研
将Google Maps评论同步到Google表格
使用SerpApi的Google Maps评论到Google表格同步
If
Set
Code
+7
22 节点SerpApi
市场调研