Hello,
We apologize for the issue you are facing. Currently, Rank Math does not provide a direct REST API endpoint specifically for updating SEO attributes like focus keywords, SEO titles, or meta descriptions. However, you can use the Rank Math REST API to retrieve meta tags and then implement your own logic to update these fields through your internal tool.
To get started, you can refer to our documentation on how to enable Headless CMS support in Rank Math, which includes information about the REST API:
While the API allows you to retrieve meta tags, you may need to create custom endpoints or use existing WordPress hooks and filters to update the SEO attributes programmatically. If you have specific requirements or need further assistance, please reply to this ticket, and a human agent from the Rank Math Support team will be able to assist you further.
Thank you for raising this concern!
Hello,
We save all our metadata in the post meta field.
Please note that we don’t have any routes in the REST API from WordPress to update these fields, so you would need to update them like you would for any other default post meta entry. The meta fields are:
rank_math_title
rank_math_description
rank_math_focus_keyword
So, you can create your own custom REST API functions to update Rank Math fields in the post meta table. You can refer to the following article as an introduction:
https://mklasen.com/updating-custom-post-meta-via-the-wordpress-rest-api/
Looking forward to helping you.
Hello,
We are glad to know that this issue has been resolved. Thank you for letting us know.
This ticket will be closed now, but you can always open a new one if you have any other questions or concerns. We are here to help you with anything related to Rank Math.
We appreciate your patience and cooperation throughout this process.
Thank you for choosing Rank Math.