> ## Documentation Index
> Fetch the complete documentation index at: https://docs.webrouter.net/llms.txt
> Use this file to discover all available pages before exploring further.

# Unsplash

> Search and fetch free high-resolution stock photos, collections and photographers' work.

![](https://mintcdn.com/webrouter/8QP9EZc8V07Kl-0I/logo/data-apis/unsplash.webp?fit=max\&auto=format\&n=8QP9EZc8V07Kl-0I\&q=85\&s=60c7b0e5b6ad158e7ee9110cd5fdf8a0)

[Web Catalog · Media](https://docs.webrouter.net/data-apis.md?category=media)

Needs&#x20;

`UNSPLASH_ACCESS_KEY`

Endpoints

7

Auth

Key in header

[Vendor docs](https://unsplash.com/documentation) · Serves `unsplash.com`

## Setup

| Variable | | What it is |
| - | - | - |
| `UNSPLASH_ACCESS_KEY` | required | The Access Key of an Unsplash developer application (unsplash.com/oauth/applications). Sent as 'Authorization: Client-ID \<key>'. |

Put them in your environment or `.env`; [Data APIs](https://docs.webrouter.net/vendors.md) covers the other ways.

## Notes

* Rate limit: 50 requests per hour for a demo application, 1000 per hour once approved for production. Image files on images.unsplash.com do not count.
* Paging: page defaults to 1, per\_page to 10, max 30.
* API guidelines: hotlink the returned image URLs (keep the ixid parameter on any resized URL), credit the photographer and Unsplash, and call photos.download\_track whenever your app downloads a photo.

## Endpoints

GET

Search photos

Photos matching a query, filterable by color, orientation and collection.

[Open](#unsplash-photos-search)

GET

Get a photo

One photo with its URLs at every size, photographer, EXIF, location and stats.

[Open](#unsplash-photos-get)

GET

List editorial photos

The Editorial feed of photos.

[Open](#unsplash-photos-list)

GET

Get random photos

One or more random photos, optionally from a query, user, collection or topic.

[Open](#unsplash-photos-random)

GET

Record a photo download

Tells Unsplash a photo was downloaded; returns the download url.

[Open](#unsplash-photos-download-track)

GET

Search collections

Curated photo collections matching a query.

[Open](#unsplash-collections-search)

GET

List a user's photos

Photos uploaded by one photographer.

[Open](#unsplash-users-photos)

### Search photos

GET

`/search/photos`

`unsplash.photos.search`

Photos matching a query, filterable by color, orientation and collection.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr><td>`query` required</td><td>string</td><td>query</td><td>Search terms. Example `mountain lake`</td></tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 30.
      </td>
    </tr>

    <tr><td>`order_by`</td><td>string</td><td>query</td><td>Default relevant. One of `relevant`, `latest`</td></tr>

    <tr>
      <td>
        `collections`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Collection ids, comma-separated.
      </td>
    </tr>

    <tr><td>`content_filter`</td><td>string</td><td>query</td><td>Safety filter, default low. One of `low`, `high`</td></tr>
    <tr><td>`color`</td><td>string</td><td>query</td><td>Color filter. One of `black_and_white`, `black`, `white`, `yellow`, `orange`, `red`, `purple`, `magenta`, `green`, `teal`, `blue`</td></tr>
    <tr><td>`orientation`</td><td>string</td><td>query</td><td>Orientation filter. One of `landscape`, `portrait`, `squarish`</td></tr>
  </tbody>
</table>

[Vendor docs](https://unsplash.com/documentation#search-photos) · Same job: [ambientCG](https://docs.webrouter.net/data-apis/ambientcg.md#ambientcg-assets-search), [ccMixter](https://docs.webrouter.net/data-apis/ccmixter.md#ccmixter-uploads-search), [NASA Image and Video Library](https://docs.webrouter.net/data-apis/nasa-images.md#nasa-images-search), [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-search), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-search), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list)

```python Python theme={null}
router.call_data_api("unsplash.photos.search", {'query': 'mountain lake'})
```

```text MCP theme={null}
call_data_api(endpoint="unsplash.photos.search", params={"query": "mountain lake"})
```

### Get a photo

GET

`/photos/{id}`

`unsplash.photos.get`

One photo with its URLs at every size, photographer, EXIF, location and stats.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Photo id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://unsplash.com/documentation#get-a-photo) · Same job: [NASA Image and Video Library](https://docs.webrouter.net/data-apis/nasa-images.md#nasa-images-asset), [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-get), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-get), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-get), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-get)

### List editorial photos

GET

`/photos`

`unsplash.photos.list`

The Editorial feed of photos.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 30.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://unsplash.com/documentation#list-photos) · Same job: [ambientCG](https://docs.webrouter.net/data-apis/ambientcg.md#ambientcg-assets-search), [ccMixter](https://docs.webrouter.net/data-apis/ccmixter.md#ccmixter-uploads-search), [NASA Image and Video Library](https://docs.webrouter.net/data-apis/nasa-images.md#nasa-images-search), [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-search), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-search), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list)

```python Python theme={null}
router.call_data_api("unsplash.photos.list")
```

```text MCP theme={null}
call_data_api(endpoint="unsplash.photos.list")
```

### Get random photos

GET

`/photos/random`

`unsplash.photos.random`

One or more random photos, optionally from a query, user, collection or topic.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `query`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Limit to photos matching this query.
      </td>
    </tr>

    <tr>
      <td>
        `username`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Limit to this user's photos.
      </td>
    </tr>

    <tr>
      <td>
        `collections`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Collection ids, comma-separated; not with query.
      </td>
    </tr>

    <tr>
      <td>
        `topics`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Topic ids, comma-separated; not with query.
      </td>
    </tr>

    <tr><td>`orientation`</td><td>string</td><td>query</td><td>Orientation filter. One of `landscape`, `portrait`, `squarish`</td></tr>
    <tr><td>`content_filter`</td><td>string</td><td>query</td><td>Safety filter, default low. One of `low`, `high`</td></tr>

    <tr>
      <td>
        `count`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        How many photos, default 1, max 30.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://unsplash.com/documentation#get-a-random-photo) · Same job: [ambientCG](https://docs.webrouter.net/data-apis/ambientcg.md#ambientcg-assets-search), [ccMixter](https://docs.webrouter.net/data-apis/ccmixter.md#ccmixter-uploads-search), [NASA Image and Video Library](https://docs.webrouter.net/data-apis/nasa-images.md#nasa-images-search), [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-search), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-search), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list)

```python Python theme={null}
router.call_data_api("unsplash.photos.random")
```

```text MCP theme={null}
call_data_api(endpoint="unsplash.photos.random")
```

> [!NOTE]
>
> * With count the answer is an array; without it, a single photo object.

### Record a photo download

GET

`/photos/{id}/download`

`unsplash.photos.download_track`

Tells Unsplash a photo was downloaded; returns the download url.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `id`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        Photo id.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://unsplash.com/documentation#track-a-photo-download)

> [!NOTE]
>
> * Required by the API guidelines each time your app downloads a photo. It only increments the photo's download counter; it does not return the image itself.

### Search collections

GET

`/search/collections`

`unsplash.collections.search`

Curated photo collections matching a query.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `query`

        required
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        Search terms.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 30.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://unsplash.com/documentation#search-collections) · Same job: [ambientCG](https://docs.webrouter.net/data-apis/ambientcg.md#ambientcg-assets-search), [ccMixter](https://docs.webrouter.net/data-apis/ccmixter.md#ccmixter-uploads-search), [NASA Image and Video Library](https://docs.webrouter.net/data-apis/nasa-images.md#nasa-images-search), [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-search), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-search), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list)

### List a user's photos

GET

`/users/{username}/photos`

`unsplash.users.photos`

Photos uploaded by one photographer.

Input

<table>
  <thead>
    <tr>
      <th>
        Name
      </th>

      <th>
        Type
      </th>

      <th>
        In
      </th>

      <th>
        Notes
      </th>
    </tr>
  </thead>

  <tbody>
    <tr>
      <td>
        `username`

        required
      </td>

      <td>
        string
      </td>

      <td>
        path
      </td>

      <td>
        The user's username.
      </td>
    </tr>

    <tr>
      <td>
        `page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Page, default 1.
      </td>
    </tr>

    <tr>
      <td>
        `per_page`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Items per page, default 10, max 30.
      </td>
    </tr>

    <tr><td>`order_by`</td><td>string</td><td>query</td><td>Default latest. One of `latest`, `oldest`, `popular`, `views`, `downloads`</td></tr>

    <tr>
      <td>
        `stats`
      </td>

      <td>
        boolean
      </td>

      <td>
        query
      </td>

      <td>
        Include each photo's stats, default false.
      </td>
    </tr>

    <tr><td>`orientation`</td><td>string</td><td>query</td><td>Orientation filter. One of `landscape`, `portrait`, `squarish`</td></tr>
  </tbody>
</table>

[Vendor docs](https://unsplash.com/documentation#list-a-users-photos) · Same job: [ambientCG](https://docs.webrouter.net/data-apis/ambientcg.md#ambientcg-assets-search), [ccMixter](https://docs.webrouter.net/data-apis/ccmixter.md#ccmixter-uploads-search), [NASA Image and Video Library](https://docs.webrouter.net/data-apis/nasa-images.md#nasa-images-search), [Openverse](https://docs.webrouter.net/data-apis/openverse.md#openverse-images-search), [Pexels](https://docs.webrouter.net/data-apis/pexels.md#pexels-photos-search), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.