Technical SEO Overhaul via Python When the Plugin API Failed
Yoast blocked the API. Switched to RankMath and scripted everything.
A WooCommerce marketplace needed full SEO implementation across 48+ products and all category pages. Yoast's API blocked writes. Migrated to RankMath and scripted the entire SEO pass via the WordPress REST API.
The challenge
A multi-vendor WooCommerce marketplace needed meta titles, meta descriptions, and schema markup implemented across the full product catalog and all category pages. The existing Yoast SEO plugin blocked API write access, making automation impossible through that route. Manual entry via the WordPress admin was not feasible at scale.
Approach
- Diagnosed the Yoast API write restriction and evaluated alternatives
- Decided to migrate from Yoast to RankMath, which exposes a full REST API for meta data writes
- Migration executed cleanly: Yoast deactivated, RankMath installed and configured with matching settings
- Python script built to write SEO meta (titles, descriptions, schema fields) to all products via the RankMath REST API
- WooCommerce product schema verified active on all 48+ products via RankMath's WooCommerce module
- Category pages, homepage, and static pages all covered in the same script run
- Post-implementation audit run to verify all meta was correctly saved and visible in search previews
Results
- 48+ — products with full SEO meta configured via script
- 0 — manual meta entry in the WordPress admin
- 100% — category and product pages covered
- Full — schema markup active and verified
Tools used
Python, WordPress REST API, RankMath, WooCommerce, SEO Automation