# Unsplash

```json
{
  "name": "Unsplash",
  "slug": "unsplash",
  "url": "https://composio.dev/toolkits/unsplash",
  "markdown_url": "https://composio.dev/toolkits/unsplash.md",
  "logo_url": "https://logos.composio.dev/api/unsplash",
  "categories": [
    "design & creative tools"
  ],
  "is_composio_managed": false,
  "updated_at": "2026-11-20T05:41:30.000Z"
}
```

![Unsplash logo](https://logos.composio.dev/api/unsplash)

## Description

Securely connect your AI agents and chatbots (Claude, ChatGPT, Cursor, etc) with Unsplash MCP or direct API to search photos, find users, browse collections, and explore topics through natural language.

## Summary

Unsplash is a photo library with millions of high-quality images from photographers worldwide.
It helps you quickly discover and use striking visuals for creative projects.

## Categories

- design & creative tools

## Toolkit Details

- Tools: 29

## Images

- Logo: https://logos.composio.dev/api/unsplash

## Authentication

- **Oauth2**
  - Type: `oauth2`
  - Description: Oauth2 authentication for Unsplash.
  - Setup:
    - Configure Oauth2 credentials for Unsplash.
    - Use the credentials when creating an auth config in Composio.
- **Api Key**
  - Type: `api_key`
  - Description: Api Key authentication for Unsplash.
  - Setup:
    - Configure Api Key credentials for Unsplash.
    - Use the credentials when creating an auth config in Composio.

## Suggested Prompts

- Search Unsplash photos for a campaign
- Find Unsplash portrait images by a photographer
- List popular Unsplash photos from this week

## Supported Tools

| Tool slug | Name | Description |
|---|---|---|
| `UNSPLASH_ADD_PHOTO_TO_COLLECTION` | Add Photo to Collection | Add a photo to a collection owned by the authenticated user; adding an existing member is a no-op. The response includes the photo: hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_CREATE_COLLECTION` | Create Collection | Create a public or private collection for the authenticated Unsplash user. If nested cover or preview photos are returned, hotlink photo.urls fields directly, preserve ixid, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_DELETE_COLLECTION` | Delete Collection | Permanently delete a collection owned by the authenticated Unsplash user. Returns the exact deleted collection ID after Unsplash confirms deletion. |
| `UNSPLASH_GET_COLLECTION` | Get Collection | Return full details for one Unsplash collection. For its cover and preview photos, hotlink photo.urls.* directly, preserve ixid, do not rehost images, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_GET_CURRENT_USER` | Get Current User | Return the authenticated Unsplash user's full profile and private account fields. |
| `UNSPLASH_GET_MONTH_STATS` | Get Month Stats | Return aggregate Unsplash activity statistics for the past 30 days. |
| `UNSPLASH_GET_PHOTO` | Get Photo | Return full details for one Unsplash photo. Hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_GET_PHOTO_STATISTICS` | Get Photo Statistics | Return download and view statistics for one Unsplash photo. |
| `UNSPLASH_GET_RANDOM_PHOTO` | Get Random Photo | Return one or more random Unsplash photos matching optional filters. Hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_GET_TOPIC` | Get Topic | Return full details for an Unsplash topic by ID or slug. For cover, preview, and contributed photos, hotlink photo.urls.* directly, preserve ixid, do not rehost images, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_GET_TOTAL_STATS` | Get Total Stats | Return all-time aggregate counts and rates for the Unsplash platform. |
| `UNSPLASH_GET_USER_PROFILE` | Get User Profile | Return an Unsplash user's complete public profile by username. |
| `UNSPLASH_GET_USER_STATISTICS` | Get User Statistics | Return consolidated download and view statistics for all photos uploaded by an Unsplash user. |
| `UNSPLASH_LIST_COLLECTION_PHOTOS` | List Collection Photos | Return one page of photos in an Unsplash collection. Hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_LIST_COLLECTIONS` | List Collections | Return one page of public Unsplash collections. For nested cover and preview photos, hotlink photo.urls fields directly, preserve ixid, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_LIST_PHOTOS` | List Photos | Return one page from the Unsplash Editorial feed. Hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_LIST_RELATED_COLLECTIONS` | List Related Collections | Return the complete fixed array of collections related to one Unsplash collection. For nested cover and preview photos, hotlink photo.urls fields directly, preserve ixid when transforming URLs, do not rehost images, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_LIST_TOPIC_PHOTOS` | List Topic Photos | Return one page of photos in an Unsplash topic. Hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_LIST_TOPICS` | List Topics | Return one page of Unsplash topics, optionally limited to exact topic IDs or case-preserving slugs. For nested cover, preview, and contribution photos, hotlink photo.urls.* directly, preserve ixid, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for download-like events. |
| `UNSPLASH_LIST_USER_COLLECTIONS` | List User Collections | Return one page of collections created by an Unsplash user. For nested cover and preview photos, hotlink photo.urls fields directly, preserve ixid, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for download-like events. |
| `UNSPLASH_LIST_USER_PHOTOS` | List User Photos | Return one page of photos uploaded by an Unsplash user. Hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_REMOVE_PHOTO_FROM_COLLECTION` | Remove Photo from Collection | Remove a photo from a collection owned by the authenticated Unsplash user. The response includes the full photo and resulting collection state. Hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_SEARCH_COLLECTIONS` | Search Collections | Search public Unsplash collections and return one result page. For nested photos, hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_SEARCH_PHOTOS` | Search Photos | Search Unsplash photos with language, collection, safety, color, orientation, and ordering filters, returning one page at a time. Hotlink photo.urls.* directly, preserve ixid when transforming URLs, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for every download-like event. |
| `UNSPLASH_SEARCH_USERS` | Search Users | Search public Unsplash users and return one result page. |
| `UNSPLASH_TRACK_PHOTO_DOWNLOAD` | Track Photo Download | Call this action for every download-like use of an Unsplash photo; it is mandatory and records download analytics. It returns {url}, not image bytes. For display or delivery, use the photo.urls.* hotlinks directly, preserve their ixid parameter, and attribute the photographer and Unsplash. |
| `UNSPLASH_UPDATE_COLLECTION` | Update Collection | Update the title, description, or privacy of a collection owned by the authenticated Unsplash user. Omitted fields remain unchanged. |
| `UNSPLASH_UPDATE_CURRENT_USER` | Update Current User | Update one or more profile fields for the authenticated Unsplash user; omitted fields remain unchanged. Use clear_fields to clear supported fields with empty strings; clearing wins over an update value for the same field. |
| `UNSPLASH_UPDATE_PHOTO` | Update Photo | Update metadata for a photo owned by the authenticated user, then return the full photo. Hotlink photo.urls.* directly, preserve ixid, attribute the photographer and Unsplash, and call UNSPLASH_TRACK_PHOTO_DOWNLOAD for download-like events. |

## Supported Triggers

None listed.

## Installation and MCP Setup

### Path 1: SDK Installation

#### Path 1, Step 1: Install Composio

Install the Composio SDK, the OpenAI provider, and the OpenAI SDK
```python
pip install composio composio_openai openai
```

```typescript
npm install @composio/core @composio/openai openai
```

#### Path 1, Step 2: Create a Composio session

Initialize Composio with the OpenAI Responses provider and create a session scoped to Unsplash
```python
import json
from openai import OpenAI
from composio import Composio
from composio_openai import OpenAIResponsesProvider

composio = Composio(provider=OpenAIResponsesProvider())
client = OpenAI()

session = composio.create(user_id="your-user-id", toolkits=["unsplash"])
tools = session.tools()
```

```typescript
import OpenAI from "openai";
import { Composio } from "@composio/core";
import { OpenAIResponsesProvider } from "@composio/openai";

const composio = new Composio({ provider: new OpenAIResponsesProvider() });
const client = new OpenAI();

const session = await composio.create("your-user-id", { toolkits: ["unsplash"] });
const tools = await session.tools();
```

#### Path 1, Step 3: Run Unsplash tools with your agent

Send a request, execute the Unsplash tool calls through the session, and print the final answer
```python
response = client.responses.create(
    model="gpt-5.6-sol",
    tools=tools,
    input=[{"role": "user", "content": "Search Unsplash for 10 high-resolution photos of Tokyo at night"}],
)

while True:
    tool_calls = [o for o in response.output if o.type == "function_call"]
    if not tool_calls:
        break
    results = composio.provider.handle_tool_calls(response=response, session=session)
    response = client.responses.create(
        model="gpt-5.6-sol",
        tools=tools,
        previous_response_id=response.id,
        input=[
            {"type": "function_call_output", "call_id": call.call_id, "output": json.dumps(results[i])}
            for i, call in enumerate(tool_calls)
        ],
    )

print(response.output_text)
```

```typescript
let response = await client.responses.create({
  model: "gpt-5.6-sol",
  tools,
  input: [{ role: "user", content: "Search Unsplash for 10 high-resolution photos of Tokyo at night" }],
});

while (response.output.some((o) => o.type === "function_call")) {
  const outputs = await composio.provider.handleToolCalls(session, response.output);
  response = await client.responses.create({
    model: "gpt-5.6-sol",
    tools,
    previous_response_id: response.id,
    input: outputs,
  });
}

console.log(response.output_text);
```

### Path 2: MCP Server Setup

#### Path 2, Step 1: Install Composio

Install the Composio SDK and your agent framework
```python
pip install composio claude-agent-sdk
```

```typescript
npm install @composio/core ai @ai-sdk/mcp @ai-sdk/openai
```

#### Path 2, Step 2: Create a session with MCP enabled

Create a session scoped to Unsplash and read its MCP URL and headers
```python
from composio import Composio

composio = Composio()
session = composio.create(user_id="your-user-id", toolkits=["unsplash"], mcp=True)
```

```typescript
import { Composio } from "@composio/core";

const composio = new Composio();
const { mcp } = await composio.create("your-user-id", {
  toolkits: ["unsplash"],
  mcp: true,
});
```

#### Path 2, Step 3: Connect your agent to the MCP server

Pass the session's MCP URL and headers to your agent and run a Unsplash request
```python
import asyncio
from claude_agent_sdk import ClaudeSDKClient, ClaudeAgentOptions, AssistantMessage, TextBlock

options = ClaudeAgentOptions(
    mcp_servers={
        "composio": {
            "type": "http",
            "url": session.mcp.url,
            "headers": session.mcp.headers,
        }
    },
    system_prompt="You are a helpful assistant with access to Unsplash tools.",
    tools=[],
    allowed_tools=["mcp__composio__*"],
)

async def main():
    async with ClaudeSDKClient(options=options) as client:
        await client.query("Search Unsplash for 10 high-resolution photos of Tokyo at night")
        async for message in client.receive_response():
            if isinstance(message, AssistantMessage):
                for block in message.content:
                    if isinstance(block, TextBlock):
                        print(block.text)

asyncio.run(main())
```

```typescript
import { createMCPClient } from "@ai-sdk/mcp";
import { openai } from "@ai-sdk/openai";
import { generateText, stepCountIs } from "ai";

const client = await createMCPClient({
  transport: { type: "http", url: mcp.url, headers: mcp.headers },
});

const { text } = await generateText({
  model: openai("gpt-5.6-sol"),
  tools: await client.tools(),
  prompt: "Search Unsplash for 10 high-resolution photos of Tokyo at night",
  stopWhen: stepCountIs(10),
});

console.log(text);
await client.close();
```

## Why Use Composio?

### 1. AI Native Unsplash Integration

- Supports both Unsplash MCP and direct API based integrations
- Structured, LLM-friendly schemas for reliable photo searches and discovery
- Rich coverage for searching photos, users, collections, topics, and statistics

### 2. Flexible Auth

- Connect Unsplash using your own OAuth credentials or API key
- Central place to configure, scope, and revoke Unsplash access
- Use separate credentials for each user, project, and environment

### 3. Agent Optimized Design

- Tools are tuned using real error and success rates to improve reliability over time
- Clear input and output schemas help agents choose the right Unsplash operation
- Comprehensive execution logs show what ran, when, and on whose behalf

### 4. Enterprise Grade Security

- Fine-grained RBAC so you control which agents and users can access Unsplash
- Scoped access to Unsplash resources with least-privilege credentials
- Full audit trail of agent actions to support review and compliance

## Use Unsplash with any AI Agent Framework

Choose a framework you want to connect Unsplash with:

- [ChatGPT](https://composio.dev/toolkits/unsplash/framework/chatgpt)
- [Claude Cowork](https://composio.dev/toolkits/unsplash/framework/claude-cowork)

## Related Toolkits

- [Figma](https://composio.dev/toolkits/figma) - Figma is a collaborative interface design tool for teams and individuals. It streamlines design workflows with real-time collaboration and easy sharing.
- [Abyssale](https://composio.dev/toolkits/abyssale) - Abyssale is a creative automation platform for generating images, videos, GIFs, PDFs, and HTML5 content programmatically. It streamlines and scales visual content production for marketing, design, and operations teams.
- [Alttext ai](https://composio.dev/toolkits/alttext_ai) - AltText.ai is a service that generates alt text for images automatically. It helps boost accessibility and SEO for your visual content.
- [Are.na](https://composio.dev/toolkits/arena) - Are.na is a creative research platform for collecting images, links, notes, and ideas in channels. Use it to organize inspiration, build knowledge maps, and connect research across projects.
- [Bannerbear](https://composio.dev/toolkits/bannerbear) - Bannerbear is an API-driven platform for generating images and videos automatically at scale. It helps businesses create custom graphics, social visuals, and marketing assets using powerful templates.
- [Bannerbite](https://composio.dev/toolkits/bannerbite) - Bannerbite is a creative automation platform for generating images and videos from reusable projects and templates. It helps teams produce on-brand visual assets faster without rebuilding designs from scratch.
- [BeatAPI](https://composio.dev/toolkits/beatapi) - BeatAPI is an asynchronous API platform for AI image, video, and music workflows. It enables scalable generation, video analysis, uploads, and ecommerce video pipelines.
- [Builder.io](https://composio.dev/toolkits/builder_io) - Builder.io is a visual development platform for managing content, models, assets, and Space configuration. Use it to ship editable digital experiences faster without waiting on every code change.
- [Canva](https://composio.dev/toolkits/canva) - Canva is a drag-and-drop design suite for creating professional graphics, presentations, and marketing materials. It makes it easy for anyone to design with beautiful templates and a vast library of elements.
- [Canva MCP](https://composio.dev/toolkits/canva_mcp) - Canva MCP is Canva's remote MCP server for accessing designs and content. It centralizes design assets and enables programmatic design workflows.
- [Claid ai](https://composio.dev/toolkits/claid_ai) - Claid.ai delivers AI-driven image editing APIs for tasks like background removal, upscaling, and color correction. It helps automate and enhance image workflows with powerful, developer-friendly tools.
- [Cloudinary](https://composio.dev/toolkits/cloudinary) - Cloudinary is a cloud-based platform for managing, uploading, and transforming images and videos. It streamlines media workflows and delivers optimized assets globally.
- [Clueso MCP](https://composio.dev/toolkits/clueso_mcp) - Clueso is a product video and documentation platform for creating polished visual content. It brings video editing, voiceovers, captions, animations, and exports into one hosted workspace.
- [Contentdrips](https://composio.dev/toolkits/contentdrips) - Contentdrips is an asynchronous rendering API for branded graphics and carousels. It turns reusable templates into on-brand social visuals at scale.
- [Creatomate](https://composio.dev/toolkits/creatomate) - Creatomate is an API for generating automated videos, images, GIFs, and reusable media templates. Use it to turn structured data into polished visual content at scale.
- [Cults](https://composio.dev/toolkits/cults) - Cults is a digital marketplace for 3D printing models, connecting designers and makers. It lets creators share, sell, and discover a huge variety of printable designs easily.
- [DeepImage](https://composio.dev/toolkits/deepimage) - DeepImage is an AI-powered image enhancer and upscaler. Get higher-quality images with just a few clicks.
- [Dreamstudio](https://composio.dev/toolkits/dreamstudio) - DreamStudio is Stability AI’s platform for generating and editing images with AI. It lets you easily turn ideas into stunning visuals, fast.
- [Dribbble](https://composio.dev/toolkits/dribbble) - Dribbble is a design community and publishing platform for managing shots, projects, and attachments. Use it to showcase work, collect feedback, and organize creative designs.
- [Dynamic Mockups](https://composio.dev/toolkits/dynamic_mockups) - Dynamic Mockups is an API platform for generating product mockups, rendering templates, and managing visual asset catalogs. Use it to automate high-quality product visuals, AI images, and motion assets at scale.

## Frequently Asked Questions

### Do I need my own developer credentials to use Unsplash with Composio?

Yes, Unsplash requires you to configure your own OAuth credentials. Once set up, Composio handles token storage, refresh, and lifecycle management for you.

### Can I use multiple toolkits together?

Yes! Composio's Tool Router enables agents to use multiple toolkits. [Learn more](https://docs.composio.dev/tool-router/overview).

### Is Composio secure?

Composio is SOC 2 and ISO 27001 compliant with all data encrypted in transit and at rest. [Learn more](https://trust.composio.dev).

### What if the API changes?

Composio maintains and updates all toolkit integrations automatically, so your agents always work with the latest API versions.

---
[See all toolkits](https://composio.dev/toolkits) · [Composio docs](https://docs.composio.dev/llms.txt)
