WordPress - Get Pages
Description
Section titled “Description”This module allows querying and searching static pages from a WordPress site. Supports filters by publication status and text search.
Configuration
Section titled “Configuration”Credentials
Section titled “Credentials”| Field | Description | Example |
|---|---|---|
url | WordPress site base URL | https://my-site.com |
username | WordPress username | admin |
application_password | Application password generated in WordPress | xxxx xxxx xxxx xxxx |
Parameters
Section titled “Parameters”| Field | Type | Required | Description |
|---|---|---|---|
| credentials_id | credentials | Yes | WordPress credential |
| page_id | text | No | Specific ID. If empty, lists all |
| search | text | No | Search term |
| status | select | No | Filter: publish, draft, any |
| per_page | number | No | Pages per query (1-100). Default: 10 |
Output
Section titled “Output”{ "success": true, "pages": [ { "id": 456, "title": { "rendered": "About Us" }, "content": { "rendered": "<p>Content...</p>" }, "status": "publish", "link": "https://misitio.com/sobre-nosotros/" } ], "total": 12}Usage Example
Section titled “Usage Example”List published pages
Section titled “List published pages”{ "status": "publish", "per_page": 50}Search page by text
Section titled “Search page by text”{ "search": "contact"}Get specific page
Section titled “Get specific page”{ "page_id": "456"}API Used
Section titled “API Used”- Endpoint:
GET /wp-json/wp/v2/pages - Documentation: WordPress REST API - Pages
- Pages include content rendered in HTML
- The link field contains the public page URL
- Can be filtered by status: publish, draft, or any (all)
Related Nodes
Section titled “Related Nodes”- WordpressCreatePage - Create a new page
- WordpressUpdatePost - Update page content
- WordpressGetMedia - Get images associated with pages