Hello @neo2k23
Thanks for using the Yoast SEO plugin. /wp-json/wp/v2/ is a WordPress native REST API. It cannot be controlled (ON/OFF) from Yoast SEO Rest API settings. On the other hand, Yoast SEO has its own REST API endpoint, which can be accessed as wp-json/yoast/v1/get_head?url=" " . So turning OFF the REST API settings actually turns off the Yoast REST API endpoint only. But not the WordPress native REST API.
Also, turning ON the REST API settings in our plugin append two additional fields to these responses: yoast_head and yoast_head_json that returns SEO metadata for the URL. You can learn more here.
It’s unclear why you could be receiving the 404 error but often, we see problems occur in combination with another plugin or theme. The fastest way to rule out any conflict is to deactivate all non-Yoast plugins and switch to a standard theme like Twenty Twenty-Two.
Please test this on your development or staging site if you have one. If not, we recommend using the Health Check & Troubleshooting plugin. This plugin has a troubleshooting mode, which does not affect normal visitors to your site.
If you’re unfamiliar with checking for conflicts, we’d like to point you to a step-by-step guide that will walk you through the process: How to check for plugin conflicts
If you feel uncomfortable doing this yourself or if this does not solve your issue, our Yoast SEO Premium plugin comes with one year of (technical) support.
Please close it was a combo between wpseo and another plugin. Thank you