WordPress Rank Math SEO Field Updater via API - n8n Workflow

Use this powerful n8n workflow to automatically update Rank Math SEO titles, descriptions, and canonical URLs on your WordPress or WooCommerce site via API using the n8n HTTP Request node.

Workflow Preview

Ready to automate?

Download this n8n workflow template and start using it instantly.

Who is this best for?

SEO Specialists managing large WordPress or WooCommerce sites.
E-commerce administrators needing to sync product SEO data from external sources.
Developers looking for reliable n8n templates for custom WordPress API integrations.
Users requiring automated batch processing of content metadata using an n8n node.

Overview

Manually updating SEO fields, especially when dealing with hundreds or thousands of pages, is time-consuming and prone to errors. This specialized n8n workflow provides a solution by utilizing the Rank Math custom API endpoint within WordPress. By configuring this n8n automation, you can send structured POST requests containing the target postid, rankmathtitle, rankmathdescription, and rankmathcanonicalurl. This capability is essential for businesses that rely on external data sources (like PIMs or ERPs) to manage their SEO strategy, allowing them to integrate these systems seamlessly using the flexibility of the n8n platform. This powerful n8n node setup streamlines content management significantly.

How it Works

The execution of this n8n workflow starts with the manual n8n trigger, ideal for testing or scheduled runs in a production environment.


  1. Configuration: The workflow immediately proceeds to the 'Settings' n8n node. This node defines the base URL for the WordPress/WooCommerce site (e.g., https://mydom.com/). Defining the URL here ensures easy maintenance and reuse across the entire n8n automation.

  2. API Call: The flow moves to the 'HTTP Request - Update Rank Math Meta' n8n node. It dynamically constructs the target URL by appending the Rank Math API path (wp-json/rank-math-api/v1/update-meta) to the base URL retrieved from the 'Settings' n8n node.

  3. Data Transmission: This n8n node executes a POST request. It includes the necessary parameters—such as a specific hardcoded post_id (246 in this example) and the desired SEO title, description, and canonical URL—in the request body.

  4. Authentication: The n8n HTTP Request node uses stored WordPress API credentials to securely authenticate the request, ensuring the update is authorized and executed successfully on the backend.

Installation Guide


  1. Import: Copy the provided n8n workflow JSON code and paste it into your n8n canvas via the 'New' -> 'Import from JSON' option.

  2. Credentials Setup:

* You must configure a 'WordPress API' credential. This typically requires an application password or API keys generated within your WordPress user settings, providing authorization for the HTTP Request n8n node to interact with the API.

  1. Customize 'Settings' Node: Open the 'Settings' n8n node and update the woocommerce url value to match your actual domain (e.g., https://your-domain.com/).

  2. Customize HTTP Request Node: Update the postid, rankmath_title, and other parameters within the 'HTTP Request - Update Rank Math Meta' n8n node to reflect the data you wish to automate.

  3. Test: Click the 'Test workflow' button on the n8n trigger node to ensure connectivity and successful data update.

Node Details

When clicking ‘Test workflow’ (Manual Trigger):
Function: Serves as the starting point, allowing manual execution of this n8n workflow for testing or immediate updates. This simple n8n trigger is highly effective for development.
Settings (Set Node):
Function: Defines global configuration variables, specifically the base URL for the WordPress installation. This adheres to core logic flow control principles in n8n templates.
Key Configuration: Defines woocommerce url as https://mydom.com/ (needs customization).
HTTP Request - Update Rank Math Meta (HTTP Request Node):
Function: Executes the core action: sending a secure POST request to the Rank Math API endpoint to update SEO fields.
Key Configuration:
URL: Uses expression linking to the 'Settings' n8n node's output.
Method: POST.
Authentication: WordPress API credentials required.
Body Parameters: Hardcoded example inputs include postid: 246, rankmathtitle: Demo SEO Title, and rankmath_description.

Related n8n Workflows

Free

Nodes: 3 Nodes
Updated: December 26 2025
View all
Created by

Accélérateur de Chiffre d'Affaires : Automatisez votre entreprise pour la rendre plus visible sur Google, pour trouver de nouveaux Clients, pour gagner du temps

Featured*