AutomationFlowsContent & Video › Update Rank Math SEO Fields in WordPress

Update Rank Math SEO Fields in WordPress

Original n8n title: Automate Rank Math SEO Field Updates for Wordpress or Woocommerce

Byphil @phil on n8n.io

This workflow automates the process of updating important Rank Math SEO fields (SEO Title, Description, and Canonical URL) directly via n8n.

Event trigger★☆☆☆☆ complexity3 nodesHTTP Request
Content & Video Trigger: Event Nodes: 3 Complexity: ★☆☆☆☆ Added:

This workflow corresponds to n8n.io template #2836 — we link there as the canonical source.

The workflow JSON

Copy or download the full n8n JSON below. Paste it into a new n8n workflow, add your credentials, activate. Full import guide →

Download .json
{
  "meta": {
    "templateCredsSetupCompleted": true
  },
  "nodes": [
    {
      "id": "83c6d7e3-ae2e-4576-8bc6-1e1a7b553fca",
      "name": "Settings",
      "type": "n8n-nodes-base.set",
      "position": [
        260,
        0
      ],
      "parameters": {
        "options": {},
        "assignments": {
          "assignments": [
            {
              "id": "080b234c-a753-409d-9d2d-3322678a01f2",
              "name": "woocommerce url",
              "type": "string",
              "value": "https://mydom.com/"
            }
          ]
        }
      },
      "typeVersion": 3.4
    },
    {
      "id": "7018ae65-bb9d-4bac-8746-01193cb0e523",
      "name": "When clicking \u2018Test workflow\u2019",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        0,
        0
      ],
      "parameters": {},
      "typeVersion": 1
    },
    {
      "id": "223ed34b-3e26-406c-a5a5-34f8408e3fe6",
      "name": "HTTP Request - Update Rank Math Meta",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        500,
        0
      ],
      "parameters": {
        "url": "={{ $('Settings').item.json[\"woocommerce url\"] }}wp-json/rank-math-api/v1/update-meta",
        "method": "POST",
        "options": {},
        "sendBody": true,
        "authentication": "predefinedCredentialType",
        "bodyParameters": {
          "parameters": [
            {
              "name": "post_id",
              "value": "246"
            },
            {
              "name": "rank_math_title",
              "value": "Demo SEO Title"
            },
            {
              "name": "rank_math_description",
              "value": "Demo SEO Description"
            },
            {
              "name": "rank_math_canonical_url",
              "value": "https://example.com/demo-product"
            }
          ]
        },
        "nodeCredentialType": "wordpressApi"
      },
      "credentials": {
        "wordpressApi": {
          "name": "<your credential>"
        },
        "wooCommerceApi": {
          "name": "<your credential>"
        }
      },
      "retryOnFail": true,
      "typeVersion": 4.2
    }
  ],
  "connections": {
    "Settings": {
      "main": [
        [
          {
            "node": "HTTP Request - Update Rank Math Meta",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "When clicking \u2018Test workflow\u2019": {
      "main": [
        [
          {
            "node": "Settings",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}

Credentials you'll need

Each integration node will prompt for credentials when you import. We strip credential IDs before publishing — you'll add your own.

Pro

For the full experience including quality scoring and batch install features for each workflow upgrade to Pro

About this workflow

This workflow automates the process of updating important Rank Math SEO fields (SEO Title, Description, and Canonical URL) directly via n8n.

Source: https://n8n.io/workflows/2836/ — original creator credit. Request a take-down →

More Content & Video workflows → · Browse all categories →

Related workflows

Workflows that share integrations, category, or trigger type with this one. All free to copy and import.

Content & Video

This workflow automates the update of Yoast SEO metadata for a specific post or product on a WordPress or WooCommerce site.

HTTP Request
Content & Video

Creating high-quality, SEO-friendly blog posts consistently can be time-consuming. This template helps content creators, bloggers, SEO specialists, and agencies fully automate their blogging workflow.

HTTP Request, Google Sheets
Content & Video

This workflow is for content teams, marketers, and solo site owners who draft posts in Google Sheets and want a reliable way to publish to WordPress automatically — including featured images and tags.

HTTP Request, Google Sheets
Content & Video

wordpress_fb. Uses googleSheets, httpRequest. Event-driven trigger; 28 nodes.

Google Sheets, HTTP Request
Content & Video

This workflow uses KlickTipp community nodes, available for self-hosted n8n instances only.

N8N Nodes Klicktipp, HTTP Request, WordPress