Pexels

Pexels offers a free API that provides access to a vast library of high-quality photos and videos, enabling seamless integration into applications and websites.

Tools

This is a reference catalogue. Tools cannot be configured or run from this page.

  • Get Collection Media

    Retrieve a page of photos and videos from a Pexels collection by ID. The collection must be featured or belong to the authenticated user. Choose a page and page size, up to 80 items per page; the default is 15.

  • Get Curated Photos

    Tool to get real-time curated photos. Use when you need to fetch curated photos with pagination support.

  • Featured Collections

    Tool to get featured collections. Use when you need curated collections of photos and videos with pagination support.

  • Get Photo

    Tool to retrieve detailed information about a specific photo. Use when you have a valid photo ID to fetch metadata including dimensions, photographer details, and image URLs. Use after confirming the photo ID from search or curated endpoints.

  • Get Video by ID

    Retrieve details of a Pexels video by ID, including dimensions, duration, videographer information and available file versions. DEPRECATED: This action uses the older video endpoint, which Pexels says will be deprecated in the future; use the /v1/videos/videos/:id endpoint instead.

  • Get My Collections

    List the authenticated user's Pexels collections, including collection details and media counts. Choose a page and page size, up to 80 collections per page; the default is 15.

  • Get Popular Videos

    Retrieve a page of current popular Pexels videos for discovering trending content. Choose a page and page size, up to 80 videos per page; the default is 15.

  • Search Photos

    Tool to search for photos on Pexels. Use when you need to retrieve photos by a search term and optional filters. Call after confirming you have a valid Pexels API key. Response image URLs are nested under `photo.src.<size>` (e.g., `photo.src.original`, `photo.src.landscape`, `photo.src.medium`); the top-level `url` field is not sufficient for accessing specific image sizes.

  • Search Videos

    Search Pexels videos by query, optionally filtering by orientation and minimum size. Results are paginated, with 15 per page by default and a maximum of 80. DEPRECATED: This action uses the older video endpoint, which Pexels says will be deprecated in the future; use the /v1/videos/search endpoint instead.