{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "6f007549-c9e9-445a-ac4b-bc86ae037257",
      "name": "Re Format",
      "type": "n8n-nodes-base.code",
      "position": [
        500,
        0
      ],
      "parameters": {
        "jsCode": "// Get first item\nconst raw = $input.first().json.data;\n\nconst results = [];\n\nfor (const domain in raw) {\n  const row = raw[domain];\n  // Include domain name as its own field\n  row.domain = domain;\n  results.push({ json: row });\n}\n\nreturn results;\n"
      },
      "typeVersion": 2
    },
    {
      "id": "fcf6b6ef-d3db-4142-9479-eb74c8f35ac2",
      "name": "Append In Google Sheets",
      "type": "n8n-nodes-base.googleSheets",
      "position": [
        760,
        0
      ],
      "parameters": {
        "columns": {
          "value": {},
          "schema": [
            {
              "id": "success",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "success",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "courses",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "courses",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "totalItems",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "totalItems",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "currentPage",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "currentPage",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            },
            {
              "id": "totalPages",
              "type": "string",
              "display": true,
              "removed": false,
              "required": false,
              "displayName": "totalPages",
              "defaultMatch": false,
              "canBeUsedToMatch": true
            }
          ],
          "mappingMode": "defineBelow",
          "matchingColumns": [],
          "attemptToConvertTypes": false,
          "convertFieldsToString": false
        },
        "options": {},
        "operation": "append",
        "sheetName": {
          "__rl": true,
          "mode": "list",
          "value": "gid=0",
          "cachedResultUrl": "",
          "cachedResultName": "Sheet1"
        },
        "documentId": {
          "__rl": true,
          "mode": "list",
          "value": "",
          "cachedResultUrl": "",
          "cachedResultName": "Course "
        },
        "authentication": "serviceAccount"
      },
      "credentials": {
        "googleApi": {
          "name": "<your credential>"
        }
      },
      "typeVersion": 4.6
    },
    {
      "id": "16f5e9f9-46ba-48e4-a5e1-31199ee86e9f",
      "name": "Check DA PA Bulk",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        260,
        0
      ],
      "parameters": {
        "url": "https://bulk-da-pa-checker2.p.rapidapi.com/bulk-dapa.php",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "contentType": "multipart-form-data",
        "sendHeaders": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "domains",
              "value": "={{ $json.Domains }}"
            }
          ]
        },
        "headerParameters": {
          "parameters": [
            {
              "name": "x-rapidapi-host",
              "value": "bulk-da-pa-checker2.p.rapidapi.co"
            },
            {
              "name": "x-rapidapi-key",
              "value": "your key"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "2b02f1cf-7936-45f1-902d-2b3cc8329b1f",
      "name": "On form submission",
      "type": "n8n-nodes-base.formTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {
        "options": {},
        "formTitle": "Bulk DA PA Checker",
        "formFields": {
          "values": [
            {
              "fieldLabel": "Domains",
              "placeholder": "Comma separated domains",
              "requiredField": true
            }
          ]
        },
        "formDescription": "Bulk DA PA Checker"
      },
      "typeVersion": 2.2
    },
    {
      "id": "199fcf28-3afb-4657-8836-94ec00996e65",
      "name": "Sticky Note",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -960,
        -340
      ],
      "parameters": {
        "width": 820,
        "height": 700,
        "content": "# \ud83c\udf10 Bulk Domain Authority (DA/PA) Checker\nEasily check **Domain Authority (DA)** and **Page Authority (PA)** for multiple domains using this automated **n8n workflow**.  \nJust submit a list of domains via a web form, and let the system handle the rest \u2014 pulling metrics from the [Bulk DA PA Checker API](https://rapidapi.com/skdeveloper/api/bulk-da-pa-checker2) and storing the results into **Google Sheets** for tracking, SEO analysis, or reporting.\n\n---\n\n## \ud83d\ude80 What This Workflow Does\n\nThis automated flow allows you to:\n\n- \ud83d\udd17 **Input domains** via a simple form (comma-separated)\n- \ud83d\udce1 **Send request** to Bulk DA/PA Checker API via RapidAPI\n- \ud83e\udde0 **Reformat and extract** all key metrics for each domain\n- \ud83d\udcca **Store the results** automatically in Google Sheets\n\nIdeal for:\n\n- SEO professionals tracking DA/PA across clients  \n- Agencies monitoring link-building opportunities  \n- Bloggers analyzing backlink domains  \n- Teams compiling domain authority reports regularly"
      },
      "typeVersion": 1
    },
    {
      "id": "37eb4455-37e7-4d35-98e5-16adfb5e34ba",
      "name": "Sticky Note1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        -60,
        -100
      ],
      "parameters": {
        "height": 280,
        "content": "Presents a public-facing form where users enter a comma-separated list of domains."
      },
      "typeVersion": 1
    },
    {
      "id": "3ffdebf5-0ae1-48ec-8200-574a894efd3f",
      "name": "Sticky Note2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        -100
      ],
      "parameters": {
        "height": 280,
        "content": " Sends the list to the [Bulk DA PA Checker API](https://rapidapi.com/skdeveloper/api/bulk-da-pa-checker2) using a POST request. "
      },
      "typeVersion": 1
    },
    {
      "id": "905c07cc-9ea5-455d-b4b3-1ce3c00e0c87",
      "name": "Sticky Note3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        460,
        -100
      ],
      "parameters": {
        "height": 280,
        "content": "Loops through the API response, extracts each domain's data, and flattens the fields for easy row-by-row logging."
      },
      "typeVersion": 1
    },
    {
      "id": "1e27bac7-b5ad-40ec-b9d7-ea7460889f5b",
      "name": "Sticky Note4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        720,
        -100
      ],
      "parameters": {
        "width": 220,
        "height": 280,
        "content": " Saves the full DA/PA report for each domain into a Google Sheet for tracking, reporting, or export. "
      },
      "typeVersion": 1
    }
  ],
  "connections": {
    "Re Format": {
      "main": [
        [
          {
            "node": "Append In Google Sheets",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "Check DA PA Bulk": {
      "main": [
        [
          {
            "node": "Re Format",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "On form submission": {
      "main": [
        [
          {
            "node": "Check DA PA Bulk",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}