Hello,
We apologize for the issue you are facing with the "API Error: HTTP 400". Since you’ve already added the IP address and checked your website status, here are a few additional steps you can take to troubleshoot this error:
-
Check for Website Under Maintenance: Ensure that your website is not in maintenance mode. If it is, switch it back to normal mode.
-
API Timeout: If your website takes more than 30 seconds to load, it may result in a timeout error. Make sure your site is loading quickly.
-
Firewall Settings: Double-check your firewall settings to ensure that API requests from Rank Math are not being blocked. You may need to whitelist the user-agent RankMathApi/2.0.2; https://rankmath.com
if you haven’t done so already.
-
Locally Hosted Website: If your site is hosted locally, the SEO Analyzer will not work and will return an API error. Ensure that your site is live and accessible from the internet.
If you have checked all these points and the issue still persists, please reply to this ticket with your website URL so we can assist you further. A human agent from our support team will take over and help resolve the issue.
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
The problem persists: https://grunvec.com/
Hi I just bought the AI writer and already have the SEO plugin. But the AI writing after I paid for it doesn’t show up in my website rankmath system. Do I need to download it or something. I would like to have it activated in my website please
I have also turned on the Content AI switch in the dashboard but it is not working. I cant access the Content AI paige.
Hello @yoelmilerbc,
Thank you for contacting us and sorry for any inconvenience that might have been caused due to that.
We tested the website with our external SEO Analyser and the site is showing an invalid response from the server as shown below:

If this is the case, then you need to whitelist the below IP addresses and the user-agent RankMathApi/2.0.7; https://rankmath.com
.
46.30.212.200
46.30.212.201
46.30.212.202
46.30.212.203
Please get in touch with your host and ask them to whitelist the IP and the user-agent.
Note that these IPs are different from what was suggested by Rank Bot earlier.
For more details on this issue, please check this guide: https://rankmath.com/kb/api-http-400-error/
Hope this helps, and please do not hesitate to let us know if you need our assistance with anything else.
Thank you.
Hello @keith-6749,
Please open a support ticket so that we can investigate the issue for you.
You can open a new ticket here: https://support.rankmath.com/new-ticket/
Thank you.
I FOUND THE PROBLEM………..
All I did was DISCONNECT the site, then CONNECTED IT AGAIN, and Bam, it worked right away. So you might want to keep this in mind.
I already did that and the IP mentioned was added, but the problem persists.
Hello,
Please check with your host and share your server & site’s IP addresses so we can check if your site is getting blocked from our end.
We look forward to hearing from 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.