Get Pexels Collection Contents
pexels_get_collection_mediaRetrieve photos and videos from a Pexels collection by providing its collection ID. Filter results by media type, dimensions, aspect ratio, and sort order.
Instructions
Read the photos + videos inside a Pexels collection.
USE WHEN you have a collection id (pexels.com/collections/<id>).
Filter to one type with `type` ('photos' or 'videos').
Post-hoc filters (aspect_ratio, min_width, min_height) apply to both.
DO NOT USE for discovery — no public list-all-collections endpoint.
Per-item shape matches the search tools.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| page | No | ||
| sort | No | ||
| type | No | ||
| per_page | No | ||
| min_width | No | ||
| min_height | No | ||
| aspect_ratio | No | ||
| collection_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes | ||
| page | Yes | ||
| count | Yes | ||
| photos | Yes | ||
| videos | Yes | ||
| has_more | Yes | ||
| per_page | Yes | ||
| next_page | No | ||
| total_results | No | ||
| filter_diagnostics | No |