I don't know how to retrieve private articles using the wordpress REST API.

Although you can get published articles by specifying the following URL, the obtained json did not contain any unpublished articles.

https: // HP URL/wp-json/wp/v2/posts

I want to know
I want to check the description for getting a private article.

  • Answer # 1

    I don't know how it was executed, but is API access authorized by a user who can view private articles?

    Authentication-WP REST API

Related articles