List a user's Pexels collections and retrieve the media (photos and videos) inside a specific collection
domain: api.pexels.com · 5 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗
Steps
Authenticate requests with the 'Authorization: YOUR_API_KEY' header
Call GET https://api.pexels.com/v1/collections/featured to list Pexels-curated public collections, or GET https://api.pexels.com/v1/collections to list the authenticated key owner's own collections
Use per_page to page through collections; the response includes id, title, media_count, photos_count, and videos_count for each
Call GET https://api.pexels.com/v1/collections/:id with the collection's id to retrieve its media items, optionally passing type=photos or type=videos to filter by media kind and sort=asc/desc
Paginate collection media the same way as search results, via next_page/prev_page in the JSON body
Known gotchas
A collection's media list can mix photos and videos in one response; code that assumes a single media type will mis-render results unless it checks each item's type
Private collections only appear under /v1/collections for the authenticated key's own account, not under /v1/collections/featured
media_count on a collection includes both photos_count and videos_count combined, so it is not directly usable as a page-size divisor
Give your agent this knowledge — and 15,500+ more routes
One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus:
claude mcp add --transport http waymark https://mcp.waymark.network/mcp
Need this verified for your stack — or a route we don't have yet?