Hello,
I’m sorry to hear that you are facing the "API Error: HTTP 400 error" while trying to analyze the SEO of your website. This error typically occurs when the server is unable to process the API request due to a client error.
The HTTP 400 Bad Request response status can be caused by various reasons, such as malformed request syntax, invalid request message framing, or deceptive request routing. In the context of Rank Math, this error could be due to reasons like website maintenance, website status issues, API timeout, API requests blocked by a firewall, or hosting the website locally.
To resolve this issue, you can check the following:
-
Website Under Maintenance: Ensure that your website is not under maintenance. If it is, switch it back to normal mode.
-
Check Website Status: Verify that your website is returning a 200 status code. You can use tools like httpstatus.io to check your website status.
-
API Timeout: If your website takes more than 30 seconds to load, it can lead to this error.
-
API Requests Blocked by Firewall: Check if your server’s security or firewall is blocking API requests. You may need to whitelist the IP 46.30.211.100 and the user-agent RankMathApi/2.0.2; https://rankmath.com.
-
Locally Hosted Website: If your site is hosted locally, the SEO Analyzer module of Rank Math will not work. It requires a live site with a 200 OK status when crawled from an external site.
If after checking these points you still face issues or have further queries, please feel free to contact our support team, and we’ll be happy to assist you further.
I hope this helps in resolving the API error you are experiencing. If you need more assistance, please let us know!
Sources:
Why Am I Getting "API Error: HTTP 400" Error » Rank Math
How to Fix 429 Error with IndexNow API » Rank Math
Hello,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We tested your website in our external SEO Analyzer tool and we see that your site might still be blocking our crawler.
Please get in touch with your host and ask them to whitelist the IP 193.138.6.5 and the user-agent RankMathApi/2.0.2; https://rankmath.com and see if that works for you.
For more details on this issue, please check this URL: https://rankmath.com/kb/api-http-400-error/
Let us know how it goes. Looking forward to helping you.
Thank 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.