Hello,
We apologize for the issue you are facing with the API error in Rank Math. The error message "cURL error 28: Operation timed out after 30002 milliseconds with 0 bytes received" typically indicates that the request to the API is timing out, which can happen for several reasons. Here are a few suggestions to help you troubleshoot this issue:
-
Check Website Status: Ensure that your website is returning a 200 status code. You can check the status of your website using this tool: Check Website Status. Enter your URL and click Check Status.

-
API Timeout: If your website takes longer than 30 seconds to load, it may cause a timeout. You might want to check your server performance and optimize it if necessary.
-
Firewall Settings: Since you mentioned turning off the Wordfence firewall, ensure that there are no other security settings or firewalls (including server-level firewalls) blocking the API requests. You may need to whitelist the IP 46.30.211.100
and the user-agent RankMathApi/2.0.2; https://rankmath.com
in your firewall settings.
-
Contact Hosting Provider: Since you are hosted by Dreamscape, it might be helpful to reach out to them to see if there are any server-side issues or configurations that could be affecting the API requests.
-
Locally Hosted Website: If your site is hosted locally or in a restricted environment, the SEO Analyzer module will not work properly and may return an API error.
If you continue to experience issues after trying these steps, please reply to this ticket with your site URL so that a human agent from our support team can assist you further. Thank you for raising this concern, and we hope to resolve it quickly for you!
Sources:
Why Am I Getting "API Error: HTTP 400" Error » Rank Math
Why Am I Getting "API Error: HTTP 400" Error » Rank Math
Hello,
I have updated the sensitive data as requested. Can you please check further?
Thank you.
Hello,
Please follow this guide to see if this fixes the issue for you:
https://www.wpbeginner.com/wp-tutorials/how-to-fix-curl-error-28-connection-timed-out-after-x-milliseconds/
If the issue persists, please edit the following plugin file:
wp-content/plugins/seo-by-rank-math/includes/modules/seo-analysis/class-seo-analyzer.php
Then, change the following line (line number 405):
$request = wp_remote_get( $api_url, [ 'timeout' => 30 ] );
to increase the timeout value to 60:
$request = wp_remote_get( $api_url, [ 'timeout' => 60 ] );
`
Looking forward to helping 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.