Hello,
We apologize for the issue you are facing with connecting to Google services and the API Error: HTTP 400. This error typically indicates that the server is unable to process your API request due to various reasons.
Here are some steps you can take to troubleshoot the connection issue:
-
Test Connections: You can test Rank Math’s connection with your Google account by going to Rank Math SEO → General Settings → Analytics. Click the Test Connections option at the top right of the Analytics settings. A green signal indicates a valid connection, while a red signal indicates an issue.

-
Reconnect Your Google Account: If you see a red signal, try reconnecting with your Google account. You can do this by clicking on the reconnect option in the same settings area.

-
Check Website Status: Ensure that your website is returning a 200 status code. You can check this by using the HTTP Status Checker. If your website returns an error, you may need to fix it accordingly.

-
Firewall Settings: Sometimes, API requests may be blocked by your server’s firewall. Ensure that the IP 193.138.6.5 and the user-agent RankMathApi/2.0.2; https://rankmath.com are whitelisted in your firewall settings.
If you continue to experience issues after trying these steps, please reply to this ticket, and a human agent from the Rank Math Support team will assist you further.
Thank you for raising this concern, and we hope to resolve it for you soon!
Sources:
Resolving Rank Math Analytics Related Issues » Rank Math
Hello,
I downloaded Rank math on my WordPress website and unable to connect to google services. I have tried chrome nd Microsoft edge but still not connecting. Skipped the step and after installation SEO analyzer coming up as API Error : HTTP 400 error.
Please kindly give your support to connect.
Many thanks in advance
No test connection on the top right hand corner, only reconnect and disconnect available
Website status coming up as error
Problem not fixed
Thank you for your response, i have tried all your suggestions and still not connecting to google services. What will be the next action now, since i can’t connect rank math to google?
Hello,
Please verify using the URL prefix and ensure that you have verified the correct version of your website on the Google Search Console (HTTP or HTTPS, www or non-www).

You can follow our guide here to create the URL Prefix property:
https://rankmath.com/kb/google-site-verification/#num-1-1-open-google-search-console
The URL-prefix property also helps keep your sitemap in sync with Google Search Console as we submit it automatically for you. In addition, the domain property won’t work correctly on some sections of the Analytics module such as the IndexStatus.
Regarding the Analytics drop-down, could you please confirm if you have already created a GA4 property for your website?
If not yet, please visit this page (https://analytics.google.com/analytics/web/) and sign up for a Google Analytics account and property, then reconnect your Google Account so the new Analytics account will reflect in that section.
Hope that helps.
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.