8
n8n 中文网amn8n.com

追踪网站 SEO 指标

中级

这是一个Market Research, Multimodal AI领域的自动化工作流,包含 11 个节点。主要使用 If, Code, FormTrigger, HttpRequest, GoogleSheets 等节点。 使用 Moz API 和 Google Sheets 集成追踪网站 SEO 指标

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "5a296cb8-2577-4498-b289-4f3bfdd0bfee",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "59fcf759-f288-458c-9c23-fb7b41dad842",
      "parameters": {
        "options": {},
        "formTitle": "DA PA Checker",
        "formFields": {
          "values": [
            {
              "fieldLabel": "website",
              "requiredField": true
            }
          ]
        },
        "formDescription": "DA PA Checker"
      },
      "typeVersion": 2.2
    },
    {
      "id": "f371c55e-1bd5-485a-a430-6133f40db31d",
      "name": "如果",
      "type": "n8n-nodes-base.if",
      "position": [
        540,
        0
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "version": 2,
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "dcbbd969-1369-457d-a843-be174c25757e",
              "operator": {
                "type": "boolean",
                "operation": "true",
                "singleValue": true
              },
              "leftValue": "={{ $json.success }}",
              "rightValue": ""
            }
          ]
        }
      },
      "typeVersion": 2.2
    },
    {
      "id": "76289667-505a-4749-a92f-7970bd085106",
      "name": "Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        1120,
        -20
      ],
      "parameters": {
        "columns": {
          "value": {
            "da": "={{ $json.da }}",
            "dr": "={{ $json.dr }}",
            "pa": "={{ $json.pa }}",
            "website": "={{ $('On form submission').item.json.website }}",
            "spam score": "={{ $json.spam_score }}",
            "organic traffic ": "={{ $json.org_traffic }}"
          },
          "schema": [
            {
              "id": "website",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "website",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "da",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "da",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "pa",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "pa",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "spam score",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "spam score",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "dr",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "dr",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "organic traffic ",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "organic traffic ",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [
            "website"
          ],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1fR7VFM-vxVcJLc96ESXstah_4U4qJeiRRjZFk_xhL9g",
          "cachedResultUrl": "",
          "cachedResultName": "DAPA"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "Rt0RWApx8PL9t0RF",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "fd6f9c88-de97-42cd-a0ea-2ad88dd4b5fc",
      "name": "DA PA API请求",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        280,
        0
      ],
      "parameters": {
        "url": "https://moz-da-pa-checker.p.rapidapi.com/dapa.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "website",
              "value": "={{ $json.website }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "moz-da-pa-checker.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "412189ff-e401-4d44-b0b7-45a52272a91c",
      "name": "清理输出",
      "type": "n8n-nodes-base.code",
      "position": [
        820,
        -20
      ],
      "parameters": {
        "jsCode": "\nreturn $input.first().json.data;"
      },
      "typeVersion": 2
    },
    {
      "id": "e9b714c4-224e-4f17-ad40-def31cb1cc9d",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -720,
        -220
      ],
      "parameters": {
        "width": 580,
        "height": 960,
        "content": "# 自动化域名权重(DA)和页面权重(PA)检查器与Google Sheets集成"
      },
      "typeVersion": 1
    },
    {
      "id": "1e796e18-2521-4a91-bce1-f4cef94c0de7",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -220
      ],
      "parameters": {
        "height": 400,
        "content": "## 1. 表单提交时"
      },
      "typeVersion": 1
    },
    {
      "id": "683512e1-b6f4-4993-b951-13869e3d1826",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        220,
        -220
      ],
      "parameters": {
        "height": 400,
        "content": "## 2. DA PA API请求"
      },
      "typeVersion": 1
    },
    {
      "id": "b781f084-a575-4ad5-abc2-06e8d59b1f22",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        480,
        -220
      ],
      "parameters": {
        "height": 400,
        "content": "## 3. 如果"
      },
      "typeVersion": 1
    },
    {
      "id": "02498b33-59ee-43e4-ac83-a54dfc6b7504",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        740,
        -220
      ],
      "parameters": {
        "height": 400,
        "content": "## 4. 清理输出"
      },
      "typeVersion": 1
    },
    {
      "id": "26f9be8e-67fc-467c-a3f8-621499b7d2f1",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1000,
        -220
      ],
      "parameters": {
        "height": 400,
        "content": "## 5. Google Sheets"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "If": {
      "main": [
        [
          {
            "node": "Clean Output",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Clean Output": {
      "main": [
        [
          {
            "node": "Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "DA PA API Request": {
      "main": [
        [
          {
            "node": "If",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "DA PA API Request",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

复制上方的 JSON 配置代码,在您的 n8n 实例中创建新工作流并选择「从 JSON 导入」,粘贴配置后根据需要修改凭证设置即可。

这个工作流适合什么场景?

中级 - 市场调研, 多模态 AI

需要付费吗?

本工作流完全免费,您可以直接导入使用。但请注意,工作流中使用的第三方服务(如 OpenAI API)可能需要您自行付费。

工作流信息
难度等级
中级
节点数量11
分类2
节点类型6
难度说明

适合有一定经验的用户,包含 6-15 个节点的中等复杂度工作流

外部链接
在 n8n.io 查看

分享此工作流