List All Pages/Post
Clean WordPress REST API endpoints for listing posts and pages for n8n/RAG ingestion workflows.
Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/jcjason12108-alt/ll706-content-api/archive/refs/heads/main.zipClean WordPress REST API endpoints for listing published posts and pages in JSON for n8n/RAG ingestion workflows.
Description
List All Pages/Post adds custom REST API endpoints under /wp-json/ll706/v1/ for content ingestion. By default, only published content is exposed. Draft, private, pending, future, and any status requests require a logged-in user with the edit_posts capability.
No Composer dependencies are required.
The plugin includes a settings page at Settings > List All Pages/Post. The settings page lets administrators configure default API values, open endpoint links, and optionally restrict access.
For Firecrawl, use the HTML start URLs shown on the settings page:
/ll706-firecrawl/posts//ll706-firecrawl/pages/
These pages list normal crawlable links to published content only.
By default, JSON endpoints include cleaned content for both posts and pages. You can disable that default in settings or override each request with include_content=false.
Endpoints
/wp-json/ll706/v1/posts/wp-json/ll706/v1/pages/wp-json/ll706/v1/posts/summary/wp-json/ll706/v1/pages/summary/ll706-firecrawl/posts//ll706-firecrawl/pages/
Query Parameters
Posts and pages:
include_content=true|falselimit=numberdefault500, maximum2000status=publish|draft|pending|private|future|anymodified_after=YYYY-MM-DDauthor=IDorderby=date|modified|title|idorder=asc|desc
Posts only:
category=slugtag=slug
Response Fields
Each item includes:
idtypetitleslugurlnormalized_urlexcerptcontentwheninclude_content=truedatemodifiedstatusauthor_idcontent_hash
Posts also include categories and tags.
Pages also include parent_id and menu_order.
Shortcodes
The plugin includes simple endpoint-link shortcodes:
[ll706_posts_endpoint][ll706_pages_endpoint][ll706_content_api_endpoint type="posts" summary="false" label="Posts JSON"][ll706_content_api_endpoint type="pages" summary="true" label="Pages Summary"]
Installation
- Upload the
ll706-content-apifolder to/wp-content/plugins/. - Activate "List All Pages/Post" in WordPress.
- Visit
/wp-json/ll706/v1/posts/summaryor/wp-json/ll706/v1/pages/summary. - Optional: configure defaults at Settings > List All Pages/Post.
GitHub Updates
Automatic updates are powered by Plugin Update Checker and use the GitHub repository at https://github.com/jcjason12108-alt/ll706-content-api.
If the repository is private, add a GitHub token with read access to the repository in wp-config.php:
define( 'LL706_CONTENT_API_UPDATE_GITHUB_TOKEN', 'your-github-token' );
You can also use the generic PLUGIN_UPDATE_GITHUB_TOKEN constant or environment variable.
Security
Requests for anything other than status=publish require an authenticated user with the edit_posts capability. Unauthenticated users can never retrieve draft, private, pending, or future content through these endpoints.
Administrators can also enable "Restrict links" in Settings > List All Pages/Post. When enabled, published JSON endpoints, summary endpoints, and Firecrawl start URLs require a logged-in user with the edit_posts capability.
Changelog
1.0.6
- Updated plugin compatibility metadata and confirmed WordPress 7.0 compatibility without behavior changes.
1.0.5
- Enabled branch-only GitHub update checks to avoid release endpoint errors when using main-branch updates.
- Updated the plugin URI to the GitHub repository.
- Added support for the generic
PLUGIN_UPDATE_GITHUB_TOKENtoken constant and environment variable.
1.0.4
- Added GitHub update support with Plugin Update Checker.
- Added optional private repository token support.
- Updated WordPress compatibility metadata.
1.0.3
- Content is included by default for both posts and pages.
- Added a Restrict links setting for JSON API and Firecrawl URLs.
- Settings page JSON links now explicitly include content.
1.0.2
- Added Firecrawl-friendly HTML start URLs for posts and pages.
- Added Firecrawl links to the settings page.
1.0.1
- Added Settings > List All Pages/Post admin page with direct endpoint links.
- Added configurable defaults for limit, include content, order by, and order.
1.0.0
- Initial release.