LearningSpot@Wordpress icon

LearningSpot@Wordpress

Consume Wordpress API

Post → Get

AI-generated

Summary

Retrieve a single WordPress post by its unique Post ID, optionally providing a password for protected posts and specifying the context to determine response fields.

Inputs

  • Post ID (required) — The unique identifier of the WordPress post to retrieve.
  • Options — Additional optional parameters including 'Password' for password-protected posts and 'Context' to define the scope under which the request is made (view, embed, or edit).

Output shape

a single JSON object representing the requested post

The returned post object fields vary depending on the 'Context' option. If the post is password protected, providing the correct password is necessary to retrieve its content.

Links

Discussion