Actions17
Page → Get
AI-generatedSummary
Retrieve a WordPress page by its ID, optionally with password and context options.
Inputs
- pageId (required) — Unique identifier for the page
- options — Optional settings such as password and context for the request
Output shape
a single page record
The response includes page fields; context determines which subset of fields are returned and a password can be supplied if the page is protected.
Examples
Example 1: Get a page with ID 123 and view context
pageId: 123, options: { context: "view" }
Example 2: Get a password-protected page
pageId: 456, options: { password: "secret" }
Example 3: Retrieve a page with only view fields
pageId: 789, options: { context: "view" }