Get Pexels Collection Media
pexels_get_collection_mediaRetrieve photos and videos from a Pexels collection by ID. Supports pagination, sorting, and filtering by media type, returning compact media objects with ready-to-use URLs.
Instructions
Get the photos and/or videos inside a Pexels collection by its ID (paginated, optionally filtered to just photos or just videos). Each item is returned in the same compact shape its own domain tool would use, tagged with media_type. Read-only. Each photo includes several pre-sized URLs in src (original/large2x/large/medium/small/portrait/landscape/tiny) — pick the closest fit rather than always using original. video_files is trimmed to the highest-resolution renditions (see video_files_count for the full count) — call pexels_get_video for the complete rendition list on one video.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | The Pexels collection ID. | |
| page | No | Page number, 1-based. | |
| sort | No | Sort order. | |
| type | No | Filter media by type. Omit to return both photos and videos. | |
| per_page | No | Items per page (clamped to a max of 80). |