I have an externally hosted WP 6.0.1 site that has no plugins installed. I’m trying to ultimately connect to the REST API. Every URL/endpoint I can find on the Web returns a 404 error, so I’m assuming the API plugin needs to be installed.
How do I install it? I searched the Plugins, and there is nothing called a REST API, WP API, or WP REST API. There is a Swagger plugin, which I’ve installed, but the base path says “wp/v2” which doesn’t work, and it has a Docs URL link which also goes to a 404.
So how do I install this REST API plugin? What is the exact name I should be searching for in the plugins? This screenshot is the first page of results that comes up when I search for “API”. What am I looking for?
I’m on the verge of just writing my own API for it since I can’t find one that works.
[ad_2]
You don’t need a plugin to use the WordPress REST API. Today it is part of the core WordPress install. This is a good read about how to get started: https://www.codeinwp.com/blog/wordpress-rest-api/