8
n8n 中文网amn8n.com

使用RapidAPI和Google Sheets进行SEO关键词难度与SERP分析

中级

这是一个Market Research, Multimodal AI领域的自动化工作流,包含 13 个节点。主要使用 Code, FormTrigger, HttpRequest, GoogleSheets 等节点。 使用RapidAPI和Google Sheets进行SEO关键词难度与SERP分析

前置要求
  • 可能需要目标 API 的认证凭证
  • Google Sheets API 凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "meta": {
    "instanceId": "60c025075753afcab9f803964b4caaca9402f435deb4efafbb8e3b93b54d8752",
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "b72a5043-e59a-4669-ac5e-bacdd601fb90",
      "name": "表单提交时",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "webhookId": "d0dd8007-d6b2-4961-b2e0-a4bccc0b5824",
      "parameters": {
        "options": {},
        "formTitle": "Keyword Difficulty Checker",
        "formFields": {
          "values": [
            {
              "fieldLabel": "keyword",
              "requiredField": true
            },
            {
              "fieldLabel": "country",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Keyword Difficulty Checker"
      },
      "typeVersion": 2.2
    },
    {
      "id": "2a1320b2-cc2a-42c9-9402-63f71aba61a4",
      "name": "重新格式化 1",
      "type": "n8n-nodes-base.code",
      "position": [
        520,
        -140
      ],
      "parameters": {
        "jsCode": "return $input.first().json.data.semrushAPI.keywordDifficulty;"
      },
      "typeVersion": 2
    },
    {
      "id": "303d9dce-ae05-4f9b-9248-e03f5a6cfc39",
      "name": "重新格式化 2",
      "type": "n8n-nodes-base.code",
      "position": [
        480,
        220
      ],
      "parameters": {
        "jsCode": "return $input.first().json.data.semrushAPI.serpResults;"
      },
      "typeVersion": 2
    },
    {
      "id": "305741d2-278c-41b1-9b42-fe3a9a00fcfc",
      "name": "关键词难度检查器",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        220,
        0
      ],
      "parameters": {
        "url": "https://keyword-difficulty-checker1.p.rapidapi.com/keywordDifficulty.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "keyword",
              "value": "={{ $json.keyword }}"
            },
            {
              "name": "country",
              "value": "={{ $json.country }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "keyword-difficulty-checker1.p.rapidapi.com"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "91b005e6-8d01-4b32-9210-621f8b68638f",
      "name": "SERP 结果",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        800,
        220
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [],
          "mappingMode": "autoMapInputData",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "",
          "cachedResultName": "backlinks"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "1BL8gZNhmaiZVThuEIFFra0XNQnnNrkxTsgEKeRoRHFM",
          "cachedResultUrl": "",
          "cachedResultName": "backlinks"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "Rt0RWApx8PL9t0RF",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "d9839383-542c-4365-b521-fa8950093197",
      "name": "关键词难度检查器1",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        800,
        -140
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [
            {
              "id": "keyword",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "keyword",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "keywordDifficultyIndex",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "keywordDifficultyIndex",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "autoMapInputData",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": 4590546,
          "cachedResultUrl": "",
          "cachedResultName": "backlink overflow"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "",
          "cachedResultName": "backlinks"
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "id": "Rt0RWApx8PL9t0RF",
          "name": "Google Docs account"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "25aa2e00-fb5f-484e-8fa8-c032d390969b",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -1140,
        -340
      ],
      "parameters": {
        "width": 1000,
        "height": 960,
        "content": "# 📊 用于 SEO 分析的关键词难度检查器工作流"
      },
      "typeVersion": 1
    },
    {
      "id": "d44aa91c-852e-40c4-9cab-40c7a507fffd",
      "name": "便签1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -80,
        -120
      ],
      "parameters": {
        "height": 320,
        "content": "📝 表单提交时"
      },
      "typeVersion": 1
    },
    {
      "id": "91e6c05b-eb6e-484f-b80b-8ae8d121ef45",
      "name": "便签2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        180,
        -120
      ],
      "parameters": {
        "height": 320,
        "content": "🌐 关键词难度检查器"
      },
      "typeVersion": 1
    },
    {
      "id": "f37486d8-5fe7-49b6-8093-d7aa7fedc468",
      "name": "便签3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        -240
      ],
      "parameters": {
        "height": 280,
        "content": "📦 重新格式化 1"
      },
      "typeVersion": 1
    },
    {
      "id": "9acfc662-2677-4b74-b5d9-5cd982be140f",
      "name": "便签4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -240
      ],
      "parameters": {
        "height": 280,
        "content": "📊 关键词难度检查器1"
      },
      "typeVersion": 1
    },
    {
      "id": "c8e846c0-5127-4c52-b235-f354b748ddc3",
      "name": "便签5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        440,
        80
      ],
      "parameters": {
        "height": 300,
        "content": "📦 重新格式化 2"
      },
      "typeVersion": 1
    },
    {
      "id": "88c0a09f-829d-4c61-b143-26ffa2fdaf0e",
      "name": "便签6",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        80
      ],
      "parameters": {
        "height": 300,
        "content": "📄 SERP 结果"
      },
      "typeVersion": 1
    }
  ],
  "pinData": {},
  "connections": {
    "Reformat 1": {
      "main": [
        [
          {
            "node": "Keyword Difficulty Checker1",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Reformat 2": {
      "main": [
        [
          {
            "node": "SERP Results ",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Keyword Difficulty Checker",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Keyword Difficulty Checker": {
      "main": [
        [
          {
            "node": "Reformat 1",
            "type": "main",
            "index": 0
          },
          {
            "node": "Reformat 2",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

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

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流