How to access WP REST API for WordPress.com sites?

WordPress.com’s REST API apparently is shared among sites hosted there and you can access it here: https://public-api.wordpress.com/wp/v2/.

If you want access to the REST routes of a specific site in WordPress.com, use the /sites route:

https://public-api.wordpress.com/wp/v2/sites/{site-id or domain}/

WordPress.com REST API

Further reading:

Leave a Comment