Hello, we apologize for the issue you are facing with the "API Error: HTTP 400". This error indicates that the server is unable to process your API request due to a client error. Here are some common reasons and potential solutions:
-
Website Under Maintenance: If your website is under maintenance, it cannot be accessed, leading to this error. Ensure your website is back to normal mode.

-
Check Website Status: If your website isn’t returning a 200 status code, you can check its status using this tool. Enter your website URL and click Check Status.

-
API Timeout: If your website takes more than 30 seconds to load, it may result in a timeout error.
-
API Requests Blocked by Firewall: Your server’s firewall might be blocking our 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: The SEO Analyzer module of Rank Math only works on live sites that return a 200 OK status when crawled from an external site. If your site is hosted locally, the SEO Analyzer will not function properly.

If you continue to experience this issue, please reply to this ticket with your website URL so we can assist you further.
Sources:
Why Am I Getting "API Error: HTTP 400" Error » Rank Math
Why Am I Getting "API Error: HTTP 400" Error » 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 us and sorry for any inconvenience that might have been caused due to that.
Please get in touch with your host and make sure the IP 46.30.211.100
and the user-agent RankMathApi/2.0.2;
https://rankmath.com
are whitelisted on your firewall.
Once done, please head over to your WordPress Dashboard > Rank Math > Status & Tools > Database Tools and click the Clear SEO Analysis
and Remove Transients
buttons to flush the SEO Analysis cache.

Please clear your website and any server-level caching on your site before doing the SEO analysis again.
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.