Overview
The Images API endpoint provides access to all images uploaded to the Wagtail CMS. You can retrieve image metadata, original files, and generate custom renditions.Endpoint
List All Images
Retrieve a list of all images:Response
Get Single Image
Retrieve a specific image by ID:Response
Query Parameters
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., -created_at)Search query to filter images by title and tags
Response Fields
Default Fields
Unique identifier for the image
The image title
Original image width in pixels
Original image height in pixels
All Fields
Request all fields using?fields=*:
Additional Fields with *
ISO 8601 timestamp when the image was uploaded
Relative path to the original image file
File size in bytes
Hash of the image file for duplicate detection
Full URL to download the original image
Image Renditions
Wagtail can generate custom image renditions (resized/cropped versions) on the fly. Request renditions using the filter specification.Rendition Filter Syntax
Rendition filters use Wagtail’s image filter syntax:| Filter | Description | Example |
|---|---|---|
width-<n> | Resize to width | width-400 |
height-<n> | Resize to height | height-300 |
max-<w>x<h> | Fit within dimensions | max-800x600 |
min-<w>x<h> | Cover dimensions | min-800x600 |
fill-<w>x<h> | Crop to exact size | fill-400x300 |
original | Original image | original |
Request Renditions
Include the rendition filter in thefields parameter:
Response with Rendition
Multiple Renditions
Request multiple renditions in a single call:Response
Common Use Cases
Responsive Images
Generate multiple sizes for responsive images:Thumbnail Grid
Generate square thumbnails for a grid layout:Hero Images
Get large, optimized hero images:Search and Filter
Search by Title
Find images by title:Order by Date
Get most recent images:Best Practices
Renditions are generated on first request and cached. The first request for a new rendition may be slower than subsequent requests.
Request Only Needed Renditions
Only request the renditions you’ll actually use:Use Appropriate Formats
Choose the right rendition filter for your use case:max-: Maintain aspect ratio, fit within boundsfill-: Exact dimensions, cropped to fitwidth-/height-: Scale to one dimension
Cache Rendition URLs
Rendition URLs are stable and can be cached client-side.Next Steps
- Learn about Pages API for accessing page content
- Explore Documents API for file downloads
- Review API Overview for common patterns

