need help in API for rankmath

#977534
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hello,

    We apologize for the issue you are facing with the Rank Math API. It seems like you are able to access your URLs directly, but the API is not returning the expected data.

    Here are a few steps you can take to troubleshoot the issue:

    1. Enable Headless CMS Support: Ensure that you have enabled the Headless CMS support in Rank Math. You can do this by navigating to Rank Math SEO → Dashboard → Others and enabling the Headless CMS support option.

    2. Check Firewall Settings: If your website uses a security plugin or firewall, it might be blocking access to the Rank Math API endpoint. Make sure to whitelist the following endpoint in your firewall:

      https://your-domain.com/wp-json/rankmath/v1/getHead?url=https://your-domain.com/hello-world
    3. Check for Errors: If you are still encountering issues, please check if there are any error messages being returned by the API. Common errors include:

      • No Route Was Found Matching the URL and Request Method: This indicates that Headless CMS support is not enabled.
      • Invalid Parameter(s) URL: This occurs if the URL parameter is incomplete or empty.
      • Missing Parameter(s) URL: This happens when the URL parameter is not included in your request.
    4. API Timeout: Ensure that your website is not taking too long to respond (more than 30 seconds), as this could lead to a timeout error.

    If you continue to experience problems, please reply to this ticket with any error messages you are receiving, and a human agent from our support team will assist you further. Thank you for raising this concern!

    Sources:
    How to Enable Headless CMS Support in Rank Math? » Rank Math
    Why Am I Getting "API Error: HTTP 400" Error » Rank Math

    Hello,

    Thank you for your query and we are so sorry about the trouble this must have caused.

    The data is lacking here because the page is not existent and simply just redirects to your homepage.

    If the issue is still happening, please share a different published page URL here with us so we can check.

    Looking forward to helping you.

    Hello,

    Since we did not hear back from you for 15 days, we are assuming that you found the solution. We are closing this support ticket.

    If you still need assistance or any other help, please feel free to open a new support ticket, and we will be more than happy to assist.

    Thank you.

Viewing 2 replies - 1 through 2 (of 2 total)

The ticket ‘need help in API for rankmath’ is closed to new replies.