collection_media
Pack: pexels · Endpoint: https://gateway.pipeworx.io/pexels/mcp
Fetch all photos and videos inside a specific Pexels collection by string id; returns paginated mixed media objects with URLs and metadata.
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | string | yes |
Example call
Arguments
{
"id": "travel-photography"
}
curl
curl -X POST https://gateway.pipeworx.io/pexels/mcp \
-H 'Content-Type: application/json' \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"collection_media","arguments":{"id":"travel-photography"}}}'
TypeScript (@pipeworx/sdk)
import { Pipeworx } from '@pipeworx/sdk';
const pipeworx = new Pipeworx();
const result = await pipeworx.call('collection_media', {
"id": "travel-photography"
});
More examples
{
"id": "wildlife"
}
Response shape
| Field | Type | Description |
|---|---|---|
id | string | Collection ID |
title | string | Collection title |
description | string | Collection description |
private | boolean | Whether collection is private |
media | array | Array of media objects in collection |
page | integer | Current page number |
per_page | integer | Number of results per page |
total_results | integer | Total number of results available |
next_page | string | URL for next page of results |
Full JSON Schema
{
"type": "object",
"properties": {
"id": {
"type": "string",
"description": "Collection ID"
},
"title": {
"type": "string",
"description": "Collection title"
},
"description": {
"type": "string",
"description": "Collection description"
},
"private": {
"type": "boolean",
"description": "Whether collection is private"
},
"media": {
"type": "array",
"description": "Array of media objects in collection",
"items": {
"type": "object",
"additionalProperties": true,
"description": "Photo or video media object"
}
},
"page": {
"type": "integer",
"description": "Current page number"
},
"per_page": {
"type": "integer",
"description": "Number of results per page"
},
"total_results": {
"type": "integer",
"description": "Total number of results available"
},
"next_page": {
"type": "string",
"description": "URL for next page of results"
}
}
}
Connect
Add this to your MCP client config, or use one-click install buttons:
{
"mcpServers": {
"pexels": {
"url": "https://gateway.pipeworx.io/pexels/mcp"
}
}
}
See Getting Started for client-specific install steps.