8
n8n 中文网amn8n.com

使用Icypeas执行域名搜索(单次)

中级

这是一个Sales, Marketing领域的自动化工作流,包含 6 个节点。主要使用 Code, HttpRequest, ManualTrigger 等节点。 使用Icypeas执行域名搜索(单次)

前置要求
  • 可能需要目标 API 的认证凭证
工作流预览
可视化展示节点连接关系,支持缩放和平移
导出工作流
复制以下 JSON 配置到 n8n 导入,即可使用此工作流
{
  "id": "IwOOVikQC7cn9VTv",
  "meta": {
    "instanceId": "a897062ac3223eacd9c7736276b653c446bc776a63cde2a42a2949ad984f7092"
  },
  "name": "使用 Icypeas 执行域名搜索(单次)",
  "tags": [],
  "nodes": [
    {
      "id": "a8be94cc-c695-4a24-b045-d6716fe6f043",
      "name": "当点击\"执行工作流\"时",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        4360,
        1720
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "c636d4ed-6310-4f2a-876e-c24d54dc9349",
      "name": "便签",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4200,
        1460
      ],
      "parameters": {
        "height": 243.6494382022472,
        "content": "## 使用 Icypeas 执行域名搜索(单次)"
      },
      "typeVersion": 1
    },
    {
      "id": "a6f4dbe2-478d-426c-b544-60cd97c84901",
      "name": "便签 1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        4507,
        1536
      ],
      "parameters": {
        "width": 506,
        "height": 1041.5303370786517,
        "content": "## 验证您的 Icypeas 账户"
      },
      "typeVersion": 1
    },
    {
      "id": "c42e5f50-93dd-48c6-8cfc-c37aefc609a5",
      "name": "便签 2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        5013,
        1540
      ],
      "parameters": {
        "width": 492,
        "height": 748,
        "content": "## 在您的 Icypeas 账户上执行域名/公司扫描"
      },
      "typeVersion": 1
    },
    {
      "id": "cdee270f-b6c0-4f60-ba41-f2ee9e091eaa",
      "name": "运行域名扫描(单次)",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        5080,
        1720
      ],
      "parameters": {
        "url": "={{ $json.api.url }}",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "sendHeaders": true,
        "authentication": "genericCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "domainOrCompany",
              "value": "=google"
            }
          ]
        },
        "genericAuthType": "httpHeaderAuth",
        "headerParameters": {
          "parameters": [
            {
              "name": "X-ROCK-TIMESTAMP",
              "value": "={{ $json.api.timestamp }}"
            }
          ]
        }
      },
      "credentials": {
        "httpHeaderAuth": {
          "id": "KGXtUrqC6lNLwW2w",
          "name": "Header Auth account"
        }
      },
      "typeVersion": 4.1
    },
    {
      "id": "b066f965-a3a7-45cb-96c2-ca3bdf2bb231",
      "name": "验证您的 Icypeas 账户",
      "type": "n8n-nodes-base.code",
      "position": [
        4700,
        1720
      ],
      "parameters": {
        "jsCode": "const BASE_URL = \"https://app.icypeas.com\";\nconst PATH = \"/api/domain-search\";\nconst METHOD = \"POST\";\n\n// Change here\nconst API_KEY = \"PUT_API_KEY_HERE\";\nconst API_SECRET = \"PUT_API_SECRET_HERE\";\nconst USER_ID = \"PUT_USER_ID_HERE\";\n////////////////\n\nconst genSignature = (\n    path,\n    method,\n    secret,\n    timestamp = new Date().toISOString()\n) => {\n    const Crypto = require('crypto');\n    const payload = `${method}${path}${timestamp}`.toLowerCase();\n    const sign = Crypto.createHmac(\"sha1\", secret).update(payload).digest(\"hex\");\n\n    return sign;\n};\n\nconst fullPath = `${BASE_URL}${PATH}`;\n$input.first().json.api = {\n  timestamp: new Date().toISOString(),\n  secret: API_SECRET,\n  key: API_KEY,\n  userId: USER_ID,\n  url: fullPath,\n};\n$input.first().json.api.signature = genSignature(PATH, METHOD, API_SECRET, $input.first().json.api.timestamp);\nreturn $input.first();"
      },
      "typeVersion": 1
    }
  ],
  "active": false,
  "pinData": {},
  "settings": {
    "executionOrder": "v1"
  },
  "versionId": "499f7092-5891-46cb-9756-0a11f75242f4",
  "connections": {
    "When clicking \"Execute Workflow\"": {
      "main": [
        [
          {
            "node": "Authenticates to your Icypeas account",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Authenticates to your Icypeas account": {
      "main": [
        [
          {
            "node": "Run domain scan (single)",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
常见问题

如何使用这个工作流?

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

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

中级 - 销售, 营销

需要付费吗?

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

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

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

外部链接
在 n8n.io 查看

分享此工作流