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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"collection_id": "<collection_id>"
},
"name": "pexels_get_collection_media"
}
}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 |