Pexels

Learn how to use Pexels with Composio

Overview

Enum

PEXELS

Description

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.

Authentication Details

generic_api_key
stringRequired

Actions

Tool to get all media within a collection by its id. use when you need to fetch paginated media from a specific collection.

Action Parameters

id
stringRequired
page
integerDefaults to 1
per_page
integerDefaults to 15

Action Response

data
object
error
string
successful
boolean
Tool to get real-time curated photos. use when you need to fetch curated photos with pagination support.

Action Parameters

page
integer
per_page
integer

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

id
integerRequired

Action Response

data
object
error
string
successful
boolean
Tool to get all of the user's collections on pexels. use when you need to list a user's collections with pagination support.

Action Parameters

page
integerDefaults to 1
per_page
integerDefaults to 15

Action Response

data
object
error
string
successful
boolean
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.

Action Parameters

color
string
locale
string
orientation
string
page
integerDefaults to 1
per_page
integerDefaults to 15
query
stringRequired
size
string

Action Response

data
object
error
string
successful
boolean
Tool to search for videos on pexels by query and optional filters. use when you need to find relevant video assets.

Action Parameters

orientation
string
page
integerDefaults to 1
per_page
integerDefaults to 15
query
stringRequired
size
string

Action Response

data
object
error
string
successful
boolean