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

NameTypeRequiredDescription
idstringyes

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

FieldTypeDescription
idstringCollection ID
titlestringCollection title
descriptionstringCollection description
privatebooleanWhether collection is private
mediaarrayArray of media objects in collection
pageintegerCurrent page number
per_pageintegerNumber of results per page
total_resultsintegerTotal number of results available
next_pagestringURL 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.

Regenerated from source · build July 9, 2026