> ## 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.

# Pexels

> Free stock photos and videos: search, curated and popular feeds, single items with download URLs per size, and collections.

![](https://mintcdn.com/webrouter/T_A5Quwg50s_JK2y/logo/data-apis/pexels.webp?fit=max\&auto=format\&n=T_A5Quwg50s_JK2y\&q=85\&s=8c15c10a363cbf976a0ba6488aa4bc44)

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

Needs&#x20;

`PEXELS_API_KEY`

Endpoints

9

Auth

Key in header

[Vendor docs](https://www.pexels.com/api/documentation/) · Serves `pexels.com`

## Setup

| Variable | | What it is |
| - | - | - |
| `PEXELS_API_KEY` | required | A free Pexels API key (pexels.com/api). Sent as the raw Authorization header value, with no Bearer prefix. |

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

## Notes

* Default limits: 200 requests an hour and 20,000 a month; X-Ratelimit-Limit, X-Ratelimit-Remaining and X-Ratelimit-Reset come back on 2xx answers only.
* Terms: show a prominent link to Pexels wherever results are displayed, and credit the photographer when possible.
* Each photo carries src URLs per size (original, large2x, large, medium, small, portrait, landscape, tiny); each video carries video\_files with quality, width, height and link. Lists carry next\_page/prev\_page URLs only when that page exists.

## Endpoints

GET

Search photos

Stock photos matching a query.

[Open](#pexels-photos-search)

GET

List curated photos

Photos hand-picked by the Pexels team, with at least one new photo added each hour.

[Open](#pexels-photos-curated)

GET

Get a photo

One photo with its size-specific URLs and photographer.

[Open](#pexels-photos-get)

GET

Search videos

Stock videos matching a query.

[Open](#pexels-videos-search)

GET

List popular videos

Currently popular videos, optionally filtered by size and duration.

[Open](#pexels-videos-popular)

GET

Get a video

One video with its files and preview pictures.

[Open](#pexels-videos-get)

GET

List featured collections

Collections curated by Pexels.

[Open](#pexels-collections-featured)

GET

List the user's collections

Collections owned by the key's account.

[Open](#pexels-collections-mine)

GET

List a collection's media

Photos and videos in one collection.

[Open](#pexels-collections-media)

### Search photos

GET

`/search`

`pexels.photos.search`

Stock photos 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. Example `ocean`</td></tr>
    <tr><td>`orientation`</td><td>string</td><td>query</td><td>Orientation. One of `landscape`, `portrait`, `square`</td></tr>
    <tr><td>`size`</td><td>string</td><td>query</td><td>Minimum size: large 24MP, medium 12MP, small 4MP. One of `large`, `medium`, `small`</td></tr>

    <tr>
      <td>
        `color`
      </td>

      <td>
        string
      </td>

      <td>
        query
      </td>

      <td>
        red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white, or a hex code such as #ffffff.
      </td>
    </tr>

    <tr><td>`locale`</td><td>string</td><td>query</td><td>Locale of the query. One of `en-US`, `pt-BR`, `es-ES`, `ca-ES`, `de-DE`, `it-IT`, `fr-FR`, `sv-SE`, `id-ID`, `pl-PL`, `ja-JP`, `zh-TW`, `zh-CN`, `ko-KR`, `th-TH`, `nl-NL`, `hu-HU`, `vi-VN`, `cs-CZ`, `da-DK`, `fi-FI`, `uk-UA`, `el-GR`, `ro-RO`, `nb-NO`, `sk-SK`, `tr-TR`, `ru-RU`</td></tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

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

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 15, max 80.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.pexels.com/api/documentation/#photos-search) · 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), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-search)

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

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

### List curated photos

GET

`/curated`

`pexels.photos.curated`

Photos hand-picked by the Pexels team, with at least one new photo added each hour.

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 number, default 1.
      </td>
    </tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 15, max 80.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.pexels.com/api/documentation/#photos-curated) · 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), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-search)

```python Python theme={null}
router.call_data_api("pexels.photos.curated")
```

```text MCP theme={null}
call_data_api(endpoint="pexels.photos.curated")
```

### Get a photo

GET

`/photos/{id}`

`pexels.photos.get`

One photo with its size-specific URLs and photographer.

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>
        integer
      </td>

      <td>
        path
      </td>

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

[Vendor docs](https://www.pexels.com/api/documentation/#photos-show) · 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), [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), [Unsplash](https://docs.webrouter.net/data-apis/unsplash.md#unsplash-photos-get)

### Search videos

GET

`/videos/search`

`pexels.videos.search`

Stock videos 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. Example `nature`</td></tr>
    <tr><td>`orientation`</td><td>string</td><td>query</td><td>Orientation. One of `landscape`, `portrait`, `square`</td></tr>
    <tr><td>`size`</td><td>string</td><td>query</td><td>Minimum size: large 4K, medium Full HD, small HD. One of `large`, `medium`, `small`</td></tr>
    <tr><td>`locale`</td><td>string</td><td>query</td><td>Locale of the query. One of `en-US`, `pt-BR`, `es-ES`, `ca-ES`, `de-DE`, `it-IT`, `fr-FR`, `sv-SE`, `id-ID`, `pl-PL`, `ja-JP`, `zh-TW`, `zh-CN`, `ko-KR`, `th-TH`, `nl-NL`, `hu-HU`, `vi-VN`, `cs-CZ`, `da-DK`, `fi-FI`, `uk-UA`, `el-GR`, `ro-RO`, `nb-NO`, `sk-SK`, `tr-TR`, `ru-RU`</td></tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

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

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 15, max 80.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.pexels.com/api/documentation/#videos-search) · 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), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-search)

```python Python theme={null}
router.call_data_api("pexels.videos.search", {'query': 'nature'})
```

```text MCP theme={null}
call_data_api(endpoint="pexels.videos.search", params={"query": "nature"})
```

### List popular videos

GET

`/videos/popular`

`pexels.videos.popular`

Currently popular videos, optionally filtered by size and duration.

Input

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

      <th>
        Type
      </th>

      <th>
        In
      </th>

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

  <tbody>
    <tr>
      <td>
        `min_width`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum width in pixels.
      </td>
    </tr>

    <tr>
      <td>
        `min_height`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum height in pixels.
      </td>
    </tr>

    <tr>
      <td>
        `min_duration`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Minimum duration in seconds.
      </td>
    </tr>

    <tr>
      <td>
        `max_duration`
      </td>

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Maximum duration in seconds.
      </td>
    </tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

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

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 15, max 80.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.pexels.com/api/documentation/#videos-popular) · 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), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-search)

```python Python theme={null}
router.call_data_api("pexels.videos.popular")
```

```text MCP theme={null}
call_data_api(endpoint="pexels.videos.popular")
```

### Get a video

GET

`/videos/videos/{id}`

`pexels.videos.get`

One video with its files and preview pictures.

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>
        integer
      </td>

      <td>
        path
      </td>

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

[Vendor docs](https://www.pexels.com/api/documentation/#videos-show) · 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), [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), [Unsplash](https://docs.webrouter.net/data-apis/unsplash.md#unsplash-photos-get)

> [!NOTE]
>
> * The documented path really repeats videos: /v1/videos/videos/\{id}.

### List featured collections

GET

`/collections/featured`

`pexels.collections.featured`

Collections curated by Pexels.

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 number, default 1.
      </td>
    </tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 15, max 80.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.pexels.com/api/documentation/#collections-featured) · 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), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-search)

```python Python theme={null}
router.call_data_api("pexels.collections.featured")
```

```text MCP theme={null}
call_data_api(endpoint="pexels.collections.featured")
```

### List the user's collections

GET

`/collections`

`pexels.collections.mine`

Collections owned by the key's account.

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 number, default 1.
      </td>
    </tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 15, max 80.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.pexels.com/api/documentation/#collections-all) · 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), [Poly Haven](https://docs.webrouter.net/data-apis/polyhaven.md#polyhaven-assets-list), [Sketchfab](https://docs.webrouter.net/data-apis/sketchfab.md#sketchfab-models-search)

```python Python theme={null}
router.call_data_api("pexels.collections.mine")
```

```text MCP theme={null}
call_data_api(endpoint="pexels.collections.mine")
```

### List a collection's media

GET

`/collections/{id}`

`pexels.collections.media`

Photos and videos in one collection.

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>
        Collection id.
      </td>
    </tr>

    <tr><td>`type`</td><td>string</td><td>query</td><td>Only photos or only videos; all media when omitted. One of `photos`, `videos`</td></tr>
    <tr><td>`sort`</td><td>string</td><td>query</td><td>Order, default asc. One of `asc`, `desc`</td></tr>

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

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

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

      <td>
        integer
      </td>

      <td>
        query
      </td>

      <td>
        Results per page, default 15, max 80.
      </td>
    </tr>
  </tbody>
</table>

[Vendor docs](https://www.pexels.com/api/documentation/#collections-media) · 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), [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), [Unsplash](https://docs.webrouter.net/data-apis/unsplash.md#unsplash-photos-get)


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