Overview
The Pages API endpoint provides access to all published pages in the Wagtail CMS. You can retrieve page listings, individual pages, and filter by type or fields.Endpoint
List All Pages
Retrieve a list of all published pages:Response
Get Single Page
Retrieve a specific page by ID:Response
Query Parameters
Filter pages by type (e.g.,
blog.BlogPage, home.HomePage)Return only pages that are children of the specified page ID
Return only pages that are descendants of the specified page ID
Comma-separated list of fields to include. Use
* for all fields.Number of results per page (max 100)
Number of results to skip
Field to order by. Prefix with
- for descending (e.g., -first_published_at)Search query to filter pages by title and content
Response Fields
Default Fields
By default, the API returns minimal fields:Unique identifier for the page
The page title
All Fields
Request all fields using?fields=*:
Filtering Examples
Filter by Page Type
Get only blog pages:Get Child Pages
Get all direct children of a page:Get All Descendants
Get all descendants of a page (children, grandchildren, etc.):Search Pages
Search for pages containing specific text:Combine Filters
Combine multiple filters and parameters:Common Page Types
The Wagtail Bakery Demo includes these page types:| Type | Description |
|---|---|
home.HomePage | Homepage with hero sections |
blog.BlogIndexPage | Blog listing page |
blog.BlogPage | Individual blog post |
breads.BreadIndexPage | Bread catalog listing |
breads.BreadPage | Individual bread product |
locations.LocationsIndexPage | Locations listing |
locations.LocationPage | Individual location |
Best Practices
Always use the
fields parameter to request only the data you need. This improves performance and reduces bandwidth.Request Specific Fields
Instead of requesting all fields with*, specify only what you need:
Use Pagination
For large datasets, use pagination to avoid timeouts:Cache Responses
Consider caching API responses on the client side to reduce server load and improve performance.Next Steps
- Learn about Images API for accessing image assets
- Explore Documents API for file downloads
- Review API Overview for authentication and rate limiting

