WordPress REST API problems can be caused by permalink settings, security restrictions, plugin conflicts, or incorrect server rewrite rules.
Try the following:
- Open
https://yourdomain.com/wp-json/ and check the response.
- Go to Settings → Permalinks and click Save Changes.
- Temporarily deactivate security plugins.
- Check whether ModSecurity is blocking API requests.
- Review your
.htaccess file.
- Check browser Developer Console errors.
- Review server error logs for HTTP 401, 403, or 500 responses.
If the issue continues, contact your hosting provider to investigate possible server-level restrictions.