Hello,
I apologize for the issue you are facing with the HTTP 400 error while trying to connect to the Rank Math API. This error typically indicates that the server is unable to process your API request due to a client error. Here are some common reasons and solutions for this issue:
Possible Causes of HTTP 400 Error:
- Website Under Maintenance: Ensure your website is not in maintenance mode.
- Check Website Status: Verify that your website is returning a 200 status code. You can check the status of your website here.

- API Timeout: If your website takes more than 30 seconds to load, it may result in a timeout.
- API Requests Blocked by Firewall: If your server’s firewall is blocking API requests, you will need to whitelist the IP
193.138.6.5
and the user-agent RankMathApi/2.0.2; https://rankmath.com
. You can do this in your firewall settings or ask your web hosting provider for assistance.
- Locally Hosted Website: The SEO Analyzer module will only work on a live site that returns a 200 OK status when crawled from an external site.
If you suspect that the Web Application Firewall (WAF) or server-side restrictions are blocking the request, please ensure that the necessary IPs and user-agents are whitelisted as mentioned above.
If you continue to experience issues, please reply to this ticket with your website URL, and a human agent from our support team will assist you further. Thank you for raising this concern!
Sources:
Why Am I Getting "API Error: HTTP 400" Error » Rank Math
Why Am I Getting "API Error: HTTP 400" Error » Rank Math
Hello,
We apologize for the confusion; the IP shared by Rankbot is no longer valid. Please whitelist the following IP and user-agent in your server’s firewall: 46.30.211.100
and RankMathApi/2.0.7; https://rankmath.com
. https://rankmath.com/kb/api-http-400-error/#blocked-by-firewall
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.