Collection Media
collection_mediaFetch all photos and videos inside a specific Pexels collection by string id; returns paginated mixed media objects with URLs and metadata.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"id": "travel-photography"
},
"name": "collection_media"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| id | No | Collection ID | |
| page | No | Current page number | |
| media | No | Array of media objects in collection | |
| title | No | Collection title | |
| private | No | Whether collection is private | |
| per_page | No | Number of results per page | |
| next_page | No | URL for next page of results | |
| description | No | Collection description | |
| total_results | No | Total number of results available |