Update Rank Math SEO Metadata via n8n HTTP Request

This n8n workflow automates updating Rank Math SEO metadata on WooCommerce products via WordPress API calls. It eliminates manual SEO editing, saving time and improving accuracy for WooCommerce store managers.
manualTrigger
set
httpRequest
Workflow Identifier: 1552
NODES in Use: Manual Trigger, Set, HTTP Request

Press CTRL+F5 if the workflow didn't load.

Learn how to Build this Workflow with AI:

Visit through Desktop for Best experience

What This Workflow Does

This workflow updates SEO metadata for WooCommerce products using Rank Math SEO plugin automatically.
It stops the need to do manual work on titles, descriptions, and canonical URLs for each product.
The result is faster product updates and better search engine rankings.

The workflow takes your WooCommerce base URL, sends an API request to Rank Math to update SEO fields, and handles authentication securely.
It also notices if the update fails and tries again to make sure the changes go through.


Inputs, Processing Steps, and Output

Inputs

  • WooCommerce base URL: Used to target the API correctly.
  • Product post ID and SEO metadata: such as title, description, and canonical URL sent in API request.
  • WordPress API credentials: for WordPress and WooCommerce authentication.

Processing Steps

  • The workflow starts with the Manual Trigger node.
  • A Set node holds the WooCommerce base URL for dynamic use.
  • An HTTP Request node sends a POST request to Rank Math’s update-meta API endpoint.
  • The HTTP request includes SEO fields like post_id, rank_math_title, rank_math_description, and rank_math_canonical_url.
  • The HTTP request uses saved WordPress credentials for authentication.
  • If the request fails, retries happen automatically.

Output

Updated SEO metadata on the WooCommerce product page.
Immediate feedback on update success or failure.


Who Should Use This Workflow

This workflow suits WooCommerce store managers who spend lots of time changing SEO data manually.
Users who want to cut errors in SEO updates and launch new products faster will benefit.

Anyone using Rank Math SEO plugin for WordPress with WooCommerce can use this.
It also fits users familiar with n8n automations wanting to save time.


Tools and Services Used

  • WooCommerce API: Provides product post IDs and base URL.
  • Rank Math SEO API: Updates SEO metadata fields via REST API.
  • WordPress API with credentials: Handles authentication securely.
  • n8n Automation Platform: Runs the workflow nodes.
  • Rank Math Plugin: Installed with API enabled on WordPress site.

Beginner Step-by-Step: How to Use This Workflow in n8n

Step 1: Download and Import Workflow

  1. Download the workflow file using the Download button on this page.
  2. Open the n8n editor where you want to use the workflow.
  3. Click on menu → choose “Import from File”.
  4. Select the downloaded workflow file.

Step 2: Configure Credentials and Settings

  1. Add your WooCommerce API credentials and WordPress API credentials in n8n under the Credentials section.
  2. Edit the Set node called “Settings” and put your WooCommerce site’s base URL exactly, for example, https://yourstore.com/.
  3. Change the post_id in the HTTP Request node body parameters if needed to match the product you want to update.
  4. Update SEO text fields like rank_math_title, rank_math_description, and rank_math_canonical_url to the new values you want.

Step 3: Test the Workflow

  1. Click on the first Manual Trigger node.
  2. Press the “Execute Workflow” button.
  3. Wait to see the HTTP request succeed and confirm changes on your WooCommerce product SEO.

Step 4: Activate for Production Use

  1. Switch the workflow from draft to active mode in n8n.
  2. Optionally, replace Manual Trigger with a Cron node for scheduled updates.
  3. Monitor the workflow’s execution in n8n UI regularly.

If using self-host n8n, see self-host n8n for tips.


Customization Ideas

  • Make post_id dynamic by linking a WooCommerce node to fetch multiple products and pass their IDs to the HTTP request.
  • Add social SEO fields like rank_math_facebook_title or rank_math_twitter_description in the HTTP request body for richer metadata.
  • Switch Manual Trigger node to Cron node for automatic routine updates of SEO data.
  • Add a Slack or Email node after the HTTP request node to notify the team if updates fail.

Troubleshooting Common Issues

  • Authentication Failed: Check WordPress API credentials and make sure the user has permission to update SEO.
  • 404 Not Found Response: Verify WooCommerce URL ends with slash and the API endpoint path is correct.
  • Metadata Update Fails Without Clear Error: Confirm that post_id exists and all required SEO fields are included.

Pre-Production Checklist

  • Confirm the WooCommerce site URL in the Set node is accurate.
  • Test WordPress API credentials for access rights.
  • Run a manual test from the Manual Trigger node and check the HTTP response.
  • Ensure SEO metadata updates correctly on WooCommerce product page.
  • Backup WordPress database before large scale runs.

Deployment Guide

Activate the workflow after testing by switching to active mode.
Schedule automatic workflows using a Cron node if wanted.
Keep checking logs in n8n UI to catch any fail alerts early.


Summary

✓ Saves hours by automating Rank Math SEO metadata updates
✓ Reduces human errors improving SEO ranking
✓ Works using WooCommerce and WordPress APIs with secure authentication
→ Provides easy manual or scheduled updating inside n8n
→ Lets users control SEO updates without editing each product page


Promoted by BULDRR AI

Related Workflows

Automate Viral UGC Video Creation Using n8n + Degaus (Beginner-Friendly Guide)

Learn how to automate viral UGC video creation using n8n, AI prompts, and Degaus. This beginner-friendly guide shows how to import, configure, and run the workflow without technical complexity.
Form Trigger
Google Sheets
Gmail
+37
Free

AI SEO Blog Writer Automation Workflows in n8n

A complete beginner guide to building an AI SEO blog writer automation using n8n.
AI Agent
Google Sheets
httpRequest
+5
Free

Automate CrowdStrike Alerts with VirusTotal, Jira & Slack

This workflow automates processing of CrowdStrike detections by enriching threat data via VirusTotal, creating Jira tickets for incident tracking, and notifying teams on Slack for quick response. Save hours daily by transforming complex threat data into actionable alerts effortlessly.
scheduleTrigger
httpRequest
jira
+5
Free

Automate Telegram Invoices to Notion with AI Summaries & Reports

Save hours on financial tracking by automating invoice extraction from Telegram photos to Notion using Google Gemini AI. This workflow extracts data, records transactions, and generates detailed spending reports with charts sent on schedule via Telegram.
lmChatGoogleGemini
telegramTrigger
notion
+9
Free

Automate Email Replies with n8n and AI-Powered Summarization

Save hours managing your inbox with this n8n workflow that uses IMAP email triggers, AI summarization, and vector search to draft concise replies requiring minimal review. Automate business email processing efficiently with AI guidance and Gmail integration.
emailReadImap
vectorStoreQdrant
emailSend
+12
Free

Automate Email Campaigns Using n8n with Gmail & Google Sheets

This n8n workflow automates personalized email outreach campaigns by integrating Gmail and Google Sheets, saving hours of manual follow-up work and reducing errors in email sequences. It ensures timely follow-ups based on previous email interactions, optimizing communication efficiency.
googleSheets
gmail
code
+5
Free