Hello,
I apologize for the inconvenience you’re facing while trying to add a function for automation. To build your HTTP request to retrieve focus keywords using Rank Math’s REST API, you can follow this example:
ENDPOINT URL: `https://your-domain.com/wp-json/rankmath/v1/getHead?url=https://your-domain.com/blog/
HEADER:
authorization: exemple12346
BODY:
Make sure to replace your-domain.com
with your actual website domain and hello-world
with the specific URL you want to retrieve focus keywords for.
If you encounter any issues or need further assistance, please feel free to ask. Thank you for reaching out!
Sources:
How to Enable Headless CMS Support in Rank Math? » Rank Math
How to Automate the Insertion of Focus Keyword » Rank Math
How to Enable Headless CMS Support in Rank Math? » Rank Math
How to Automate the Insertion of Focus Keyword » Rank Math
Score 100/100 With Rank Math Post Tests » Rank Math
This is an automated reply from Rank Math Support Bot. Your ticket has been assigned to a human agent and we will get back to you shortly.
Hello,
Thank you for contacting Rank Math support, and sorry for the unexpected delays and any inconvenience that might have been caused due to that.
The endpoint you mentioned is correct and will simply just fetch the head elements our plugin generated by querying the URL of the actual post/page. There’s no other functionality such as passing body content and keywords that you have entered in our plugin will automatically included in the head.
If it seems we are missing something, please explain your goal in detail so we can assist you accordingly.
Looking forward to helping you.