# Pexels & Unsplash Free Stock Photos & Videos (`cliqtomedia/stock-photos-scraper`) Actor

Search free stock photos and videos on Pexels and Unsplash in one run. One table with author, size, tags, likes, downloads, license and file links. No login or API key needed.

- **URL**: https://apify.com/cliqtomedia/stock-photos-scraper.md
- **Developed by:** [Cliqto Media](https://apify.com/cliqtomedia) (community)
- **Categories:** For creators
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.63 / 1,000 photo or video saveds

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

This Actor searches Pexels and Unsplash by keyword and saves each free photo or video as a row: title, author,
size, colors, tags, likes, downloads, license and direct file links.

It is for designers, bloggers, video editors and content teams who need free stock media in one table. The smallest
run is one keyword, such as `mountains`, and gives 20 photos (10 from each site) in a few seconds.

[![Pexels and Unsplash stock photos: search words in, photos and videos from both sites out, in one table with author, size and file links](https://api.apify.com/v2/key-value-stores/K35j6zJekshVTTOno/records/readme-hero-20261118.png)](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)

### Table of contents

- [What it does](#what-it-does)
- [How it works](#how-it-works)
- [Quick start](#quick-start)
- [Use cases](#use-cases)
- [Input](#input)
- [Output](#output)
- [Pricing](#pricing)
- [Limits](#limits)
- [API, export and integrations](#api-export-and-integrations)
- [Troubleshooting](#troubleshooting)
- [FAQ](#faq)
- [Related Actors](#related-actors)
- [Support](#support)

### What it does

The Actor reads public search results and media pages of Pexels and Unsplash. For each photo or video it saves one
Dataset row: title and alt text, author and author links, width and height, orientation, colors, tags, likes,
downloads and views, camera and location when the author shared them, the license, and links to the preview and
the full-size file. Pexels videos also get every video file (quality, size, fps, link).

Besides keyword search, it reads Pexels curated photos, single photos or videos by ID or link, similar photos,
collections, all media of a photographer and Unsplash topics.

It does not log in, does not download the files themselves and does not save paid Unsplash+ photos unless you ask
for them. No API key is needed.

#### Good fit

- Find free photos for an article, a slide deck or a social post and keep author and license next to each file.
- Compare what Pexels and Unsplash have for the same keyword in one table.
- Export all photos of a photographer, a collection or an Unsplash topic.
- Watch a keyword every week and get only photos that were not in earlier runs.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### How it works

1. You give keywords, links or IDs and pick the sources (Pexels, Unsplash or both) and the media type.
2. The Actor reads the search pages of each source in turn, so both sites fill the table, applies your filters
   (orientation, color, size, video length) and removes duplicates.
3. With **Add tags, stats and camera data** on (default), it opens each item for tags, stats, camera and location.
4. It saves one row per photo or video in the Dataset. The run summary (`RUN_SUMMARY`) says how many items were
   saved from each source, which searches found nothing and why the run stopped.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Quick start

[![Input form: box 1 is the Search queries field with mountains, box 2 is Sources and Media type](https://api.apify.com/v2/key-value-stores/K35j6zJekshVTTOno/records/quick-start-form-20261118.png)](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)

1. Open the **Input** tab. **Search queries** already has `mountains` (box 1 in the picture). Add more keywords,
   one per line, if you need them.
2. Keep **Sources** (Pexels and Unsplash) and **Media type** (Photos) for a first test (box 2). For videos, choose
   **Videos**: they come from Pexels.
3. Keep **Max results** at the prefilled 20 (in the **Output** section). Without a value the Actor saves up to 100.
4. Click **Start**.
5. Open the **Output** tab and check the **Overview** table (box 5): preview, source, type, title, author, width and
   height. License and file links are further right; the **Videos** and **Authors** views show more.

   [![Output table: Overview view of a prefill run with preview, source, type, title, alt text, author, width and height columns](https://api.apify.com/v2/key-value-stores/K35j6zJekshVTTOno/records/output-table-20261118.png)](https://api.apify.com/v2/key-value-stores/K35j6zJekshVTTOno/records/output-table-20261118.png)

Expected result: 20 photos for “mountains”, 10 from Pexels and 10 from Unsplash, in about 5 seconds.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Use cases

| Buyer job                           | Input path                                  | Output entity        | Key fields                                                     | Next integration              |
| ----------------------------------- | ------------------------------------------- | -------------------- | -------------------------------------------------------------- | ----------------------------- |
| Photos for an article or a post     | `searchQueries`, `orientation`              | photo row            | `previewUrl`, `downloadUrl`, `photographer`, `license`         | CSV or Google Sheets          |
| Stock video clips for editing       | `mediaType: videos`, `minDuration`          | video row            | `videoFiles`, `duration`, `fps`, `width`, `height`             | Excel export, editing list    |
| Credit authors correctly            | any                                         | photo or video row   | `photographer`, `photographerUrl`, `license`, `licenseUrl`     | your CMS                      |
| New photos for a keyword every week | `onlyNew`, `stateName`                      | new photo row        | `id`, `url`, `createdAt`                                       | schedule + Slack or Notion    |
| A photographer or collection export | `mode: byUser` or `byCollection`            | photo or video row   | `id`, `title`, `likes`, `downloads`, `downloadUrl`             | spreadsheet                   |
| What is popular in a niche          | `searchQueries`, `includeDetails`           | photo row with stats | `likes`, `downloads`, `views`, `tags`                          | spreadsheet or BI tool        |

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Input

#### Input fields

| Field                                     | Plain name                          | Type             | Required | Default / prefill             | Allowed values                                                         | Effect                                                         | Example                                         | Recommendation                              |
| ----------------------------------------- | ----------------------------------- | ---------------- | -------- | ----------------------------- | ---------------------------------------------------------------------- | -------------------------------------------------------------- | ----------------------------------------------- | ------------------------------------------- |
| `searchQueries`                           | Search queries                      | array of strings | no\*      | prefill `["mountains"]`       | any text, up to 500                                                    | each keyword is searched on each source                        | `["beach", "office desk"]`                      | one idea per line                           |
| `mode`                                    | What to collect                     | string           | no       | `search`                      | `search`, `curated`, `byIds`, `similar`, `byCollection`, `byUser`, `byTopic` | which list below is read                                 | `"byUser"`                                      | keep `search` for keywords                  |
| `sources`                                 | Sources                             | array            | no       | `["pexels", "unsplash"]`      | `pexels`, `unsplash`                                                   | sites to search                                                | `["unsplash"]`                                  | both for more choice                        |
| `mediaType`                               | Media type                          | string           | no       | `photos`                      | `photos`, `videos`, `all`                                              | photos, videos or both                                         | `"videos"`                                      | videos come from Pexels only                |
| `startUrls`                               | Pexels or Unsplash links            | array of strings | no\*      | none                          | photo, video, search, collection, photographer or topic links          | always read, whatever the mode                                 | `["https://unsplash.com/t/nature"]`             | paste links from the sites                  |
| `mediaIds`                                | Photo / video IDs or links          | array of strings | no\*      | none                          | digits = Pexels, other IDs = Unsplash, or links                        | for modes `byIds` and `similar`                                | `["33999682", "Bkci_8qcdvQ"]`                   | —                                           |
| `collections`                             | Collections                         | array of strings | no\*      | none                          | links or `pexels:` / `unsplash:` + ID                                  | for mode `byCollection`                                        | `["unsplash:317099"]`                           | —                                           |
| `usernames`                               | Photographers                       | array of strings | no\*      | none                          | profile links or `pexels:` / `unsplash:` + username                    | for mode `byUser`                                              | `["unsplash:kalenemsley"]`                      | —                                           |
| `topics`                                  | Unsplash topics                     | array of strings | no\*      | none                          | topic slugs or links                                                   | for mode `byTopic`                                             | `["wallpapers", "travel"]`                      | —                                           |
| `orientation`                             | Orientation                         | string           | no       | `any`                         | `any`, `landscape`, `portrait`, `square`                               | only that shape                                                | `"landscape"`                                   | `landscape` for banners                     |
| `color`                                   | Color                               | string           | no       | any                           | color name or hex (`ff0000`, Pexels only)                              | main color of the photo                                        | `"blue"`                                        | —                                           |
| `size`                                    | Size (Pexels)                       | string           | no       | `any`                         | `any`, `large`, `medium`, `small`                                      | minimum size on Pexels                                         | `"large"`                                       | —                                           |
| `peopleCount` / `peopleAge`               | People in photo / People age        | string           | no       | `any`                         | `0`, `1`, `2` / `baby`, `child`, `teenager`, `adult`                    | Pexels people filters                                          | `"0"`                                           | `0` for photos without people               |
| `minWidth` / `minHeight` / `maxWidth` / `maxHeight` | Size limits (px)          | integer          | no       | none                          | 0–100000                                                               | skips items outside the size                                   | `3000`                                          | `minWidth` for print                        |
| `minDuration` / `maxDuration` / `minFps`  | Video length (s) and fps            | integer          | no       | none                          | 0–86400 / 0–240                                                        | skips videos outside the range                                 | `5` / `30` / `50`                               | —                                           |
| `orderBy`                                 | Order (Unsplash)                    | string           | no       | `relevant`                    | `relevant`, `latest`                                                   | Unsplash result order                                          | `"latest"`                                      | `latest` for monitoring                     |
| `includePremium`                          | Include Unsplash+ (paid) photos     | boolean          | no       | `false`                       | true/false                                                             | adds paid Unsplash+ photos, marked `isPremium: true`           | `true`                                          | keep off for free media                     |
| `contentFilter`                           | Safe search (Unsplash)              | string           | no       | `low`                         | `low`, `high`                                                          | `high` hides more sensitive photos                             | `"high"`                                        | —                                           |
| `locale`                                  | Search language (Pexels)            | string           | no       | `en-US`                       | e.g. `de-DE`, `es-ES`, `ja-JP`                                         | language of your keywords on Pexels                            | `"de-DE"`                                       | —                                           |
| `maxItems`                                | Max results                         | integer          | no       | default 100, prefill 20       | 1–10000                                                                | most items saved in the run                                    | `500`                                           | set it to control cost                      |
| `maxItemsPerQuery`                        | Max results per query               | integer          | no       | 0 = no limit                  | 0–10000                                                                | limit for each keyword and source                              | `50`                                            | spreads results over keywords               |
| `includeDetails`                          | Add tags, stats and camera data     | boolean          | no       | `true`                        | true/false                                                             | one extra request per item for tags, stats, camera, location   | `false`                                         | off for faster runs with basic fields       |
| `dedupe`                                  | Remove duplicates                   | boolean          | no       | `true`                        | true/false                                                             | an item found by two keywords is saved once                    | `true`                                          | —                                           |
| `onlyNew`                                 | Only new items                      | boolean          | no       | `false`                       | true/false                                                             | skips items saved by earlier runs with the same state name     | `true`                                          | use with a schedule                         |
| `stateName`                               | State name                          | string           | no       | `default`                     | letters, digits, `-`                                                   | separate memory for each watch list                            | `"mountains-weekly"`                            | one name per watch list                     |
| `deliveryConnector` / `deliveryTarget`    | Send results to / page or channel   | string           | no       | none                          | your Slack, Notion or other MCP connector                              | posts a short summary after the run                            | —                                               | see Send results to Slack or Notion         |
| `proxyConfiguration`                      | Proxy                               | object           | no       | none                          | Apify Proxy settings                                                   | sends requests through your proxy                              | —                                               | not needed usually                          |
| `pexelsApiKey`                            | Your Pexels API key (optional)      | string           | no       | none                          | free key from [Pexels API](https://www.pexels.com/api/)                | uses the official Pexels API (full curated feed)               | —                                               | not needed                                  |
| `unsplashAccessKey`                       | Your Unsplash access key (optional) | string           | no       | none                          | key from [Unsplash Developers](https://unsplash.com/developers)        | uses the official Unsplash API                                 | —                                               | a demo key allows 50 requests per hour      |

\* Give at least one of `searchQueries` or `startUrls`, or the list for the chosen `mode` (`mode: curated` needs
nothing else). Empty lines and repeated keywords are skipped. A bad entry in a list (a link to another site, a
broken id, a keyword over 200 characters) is skipped with a warning in `RUN_SUMMARY`; the run fails only when no
valid entry is left. A bad setting (a wrong number or option) stops the run at once with a message that names the
field and shows an example.

#### Interacting settings

| When                        | Input A           | Input B            | Effective behavior                                                                     | Example                                   | Cost/result effect                         |
| --------------------------- | ----------------- | ------------------ | -------------------------------------------------------------------------------------- | ----------------------------------------- | ------------------------------------------ |
| Keywords and sources        | `searchQueries`   | `sources`          | every keyword is searched on every source, sources take turns                          | 2 keywords × 2 sources = 4 searches       | results are split between sources          |
| Videos and Unsplash         | `mediaType`       | `sources`          | Unsplash has no free videos, so it is skipped for `videos` (the log says so)           | `videos` + both sources → Pexels only     | none                                       |
| Mode and lists              | `mode`            | `collections` etc. | only the list of the chosen mode is read; `startUrls` are always read                  | `byUser` + `topics` → topics ignored      | the log names ignored fields               |
| Run limit and query limit   | `maxItems`        | `maxItemsPerQuery` | each keyword stops at its own limit, the run stops at `maxItems`                       | 500 / 50                                  | `maxItems` caps the cost                   |
| Monitoring                  | `onlyNew`         | `stateName`        | each name keeps its own memory of saved items                                          | `mountains-weekly`                        | items seen before are not saved or charged |
| Details                     | `includeDetails`  | `maxItems`         | details add one request per item                                                       | `false` for 10000 items                   | faster run, same price                     |

#### Input examples

##### First test (prefill)

```json
{
  "searchQueries": ["mountains"],
  "maxItems": 20
}
```

Expected behavior: one search on Pexels and one on Unsplash.
Expected output: 20 photo rows, 10 from each site, with `photographer`, `width`, `height`, `license`, `downloadUrl`.
Limit or cost note: $0.023 on the Free plan.

##### Short landscape videos for a montage

```json
{
  "searchQueries": ["ocean waves"],
  "mediaType": "videos",
  "orientation": "landscape",
  "maxDuration": 20,
  "minFps": 50,
  "maxItems": 50
}
```

Expected behavior: Pexels video search; videos longer than 20 s or below 50 fps are skipped (a video without an fps
value is kept).
Expected output: video rows with `duration`, `fps` and a `videoFiles` list (quality, size, link).
Limit or cost note: up to $0.05 on the Free plan.

##### Weekly new photos for a keyword

```json
{
  "searchQueries": ["coffee shop"],
  "sources": ["unsplash"],
  "orderBy": "latest",
  "onlyNew": true,
  "stateName": "coffee-weekly",
  "maxItems": 200
}
```

Expected behavior: the first run saves up to 200 photos; later runs save only photos not saved before.
Expected output: photo rows; `RUN_SUMMARY` counts the skipped ones.
Limit or cost note: a run with nothing new pays only the start fee ($0.005).

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Output

#### Output fields

| Field                                                              | Meaning                                  | Type                          | Can be empty?        | Example / enum                                   | Source / notes                                   |
| ------------------------------------------------------------------ | ---------------------------------------- | ----------------------------- | -------------------- | ------------------------------------------------ | ------------------------------------------------ |
| `id`                                                               | ID on the site                           | string                        | no                   | `Bkci_8qcdvQ`, `33999682`                        | stable, used for `onlyNew`                       |
| `source` / `mediaType`                                             | site and type                            | string                        | no                   | `pexels`, `unsplash` / `photo`, `video`          | —                                                |
| `url`                                                              | page on the site                         | string                        | no                   | `https://unsplash.com/photos/…-Bkci_8qcdvQ`      | —                                                |
| `title` / `description` / `alt`                                   | title, caption, alt text                 | string                        | yes                  | `Wet mountain valley`                            | on Unsplash the title is the caption or alt text |
| `width` / `height` / `aspectRatio` / `orientation`                 | size and shape                           | integer / number / string     | rarely               | `5760` / `3840` / `1.5` / `landscape`            | full-size file in pixels                         |
| `colors` / `mainColor` / `blurHash`                                | colors                                   | array / string / string       | yes                  | `["#26260c"]`                                    | `blurHash` is Unsplash only                      |
| `tags` / `topics`                                                  | tags and Unsplash topics                 | array                         | can be `[]`          | `["mountains", "snow", "valley"]`                | with `includeDetails`                            |
| `likes` / `downloads` / `views`                                    | counts                                   | integer                       | yes                  | `7929` / `1952864` / `308735555`                 | downloads and views on Unsplash only             |
| `photographer` / `photographerUsername` / `photographerId` / `photographerUrl` | author                   | string                        | rarely               | `Kalen Emsley` / `kalenemsley`                   | —                                                |
| `photographerLocation` / `photographerAvatar`                      | author location and picture              | string                        | yes                  | —                                                | as written on the profile                        |
| `photographerInstagram` / `photographerTwitter`                    | author social names                      | string                        | yes                  | `kalenemsley`                                    | only when the author shared them                 |
| `previewUrl`                                                       | small preview image                      | string                        | no                   | —                                                | for tables and galleries                         |
| `downloadUrl`                                                      | full-size photo or best video file       | string                        | rarely               | —                                                | direct file link                                 |
| `imageUrls`                                                        | the same photo in several sizes          | object                        | yes                  | `{"original": "…", "large": "…"}`                | photos only                                      |
| `videoFiles`                                                       | all files of a video                     | array of objects              | can be `[]`          | `{"quality": "hd", "width": 1920, "link": "…"}`  | Pexels videos only                               |
| `duration` / `fps` / `videoPreviewUrl`                             | video length, frame rate, preview        | integer / number / string     | yes                  | `15` / `25`                                      | videos only                                      |
| `license` / `licenseUrl`                                           | license name and page                    | string                        | no                   | `Unsplash License`, `Pexels License`             | read the license before use                      |
| `isPremium`                                                        | paid Unsplash+ photo                     | boolean                       | no                   | `false`                                          | `true` only with `includePremium`                |
| `createdAt`                                                        | upload date                              | ISO date                      | yes                  | `2016-06-01T23:13:24Z`                           | —                                                |
| `camera` / `exif` / `location`                                     | camera, settings, place                  | string / object / object      | yes                  | `Canon, EOS 5D Mark III`                         | Unsplash, with `includeDetails`                  |
| `query` / `mode` / `rank`                                          | which search found the item and position | string / string / integer     | `query` yes          | `mountains` / `search` / `1`                     | —                                                |
| `detailsIncluded` / `scrapedAt`                                    | details read / time saved                | boolean / ISO date            | no                   | `true`                                           | —                                                |

#### Output entities and surfaces

| Situation                  | Dataset/API/KVS/live view                                                                                       | Result shape                       | User action                                  |
| -------------------------- | --------------------------------------------------------------------------------------------------------------- | ---------------------------------- | -------------------------------------------- |
| Normal item                | Dataset, views **Overview**, **Tags and stats**, **Videos**, **Authors**                                        | one row per photo or video         | open, export or use `downloadUrl`            |
| Domain-empty result        | Dataset empty; `RUN_SUMMARY` status `NOT_FOUND` (nothing exists) or `NO_RESULTS` (filters or `onlyNew` removed all) | summary only                   | change keywords, filters or `stateName`      |
| Partial result             | Dataset has the saved rows; `RUN_SUMMARY` status `PARTIAL` with reason `CHARGE_LIMIT`, `DEADLINE`, `ONE_SOURCE_FAILED` or `SCAN_LIMIT` | rows saved so far          | raise the spending limit or timeout, retry   |
| Technical failure or retry | run fails; `RUN_SUMMARY` status `ERROR` with the source error, such as `SOURCE_RATE_LIMITED` or `SOURCE_BLOCKED` | rows saved before the failure stay | retry later; report if it repeats          |
| Bad input                  | bad list entries are skipped with a warning; a bad setting fails at once with status `INVALID_INPUT`, the field name and an example | no rows, no item charges (failed run) | fix the field                                |

#### Output example

```json
{
  "id": "Bkci_8qcdvQ",
  "source": "unsplash",
  "mediaType": "photo",
  "url": "https://unsplash.com/photos/snow-capped-mountains-with-valley-and-forest-Bkci_8qcdvQ",
  "title": "travelyukon, Wet mountain valley",
  "alt": "snow capped mountains with valley and forest",
  "width": 5760,
  "height": 3840,
  "orientation": "landscape",
  "mainColor": "#26260c",
  "tags": ["forest", "mountains", "snow", "lake", "valley", "canada"],
  "likes": 7929,
  "downloads": 1952864,
  "views": 308735555,
  "photographer": "Kalen Emsley",
  "photographerUrl": "https://unsplash.com/@kalenemsley",
  "previewUrl": "https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?…&w=1080",
  "downloadUrl": "https://images.unsplash.com/photo-1464822759023-fed622ff2c3b?…&q=85",
  "license": "Unsplash License",
  "licenseUrl": "https://unsplash.com/license",
  "isPremium": false,
  "createdAt": "2016-06-01T23:13:24Z",
  "camera": "Canon, EOS 5D Mark III",
  "location": { "name": "Kluane National Park and Reserve of Canada, Canada", "country": "Canada" },
  "query": "mountains",
  "rank": 1
}
```

This example is trimmed and comes from the prefill run. `null` means the site does not give the value; it never
means zero.

#### Send results to Slack or Notion

Pick your connector in the optional `deliveryConnector` field. After the run saves its data, the Actor posts a short
summary (up to 25 items with author, size and link, plus a link to the full dataset) there. Put a Notion page link or
a Slack channel ID in `deliveryTarget`: in Notion every run is added on top of that one page, so your workspace does
not fill up with new pages. Without a page link, Notion delivery is skipped and the log says so. A delivery error
never fails the run and costs nothing extra. Connect a service once in Apify Console → MCP connectors.

#### Switching from another tool

The output is not a drop-in copy of other Pexels or Unsplash scrapers. Rename these fields in your pipeline:

| Other tools                                              | This Actor        |
| -------------------------------------------------------- | ----------------- |
| `type`                                                   | `mediaType`       |
| `reactions`                                              | `likes`           |
| `highestQualityUrl`, `videoSrc`                          | `downloadUrl`     |
| `imageOriginal`, `imageLarge`, `imageMedium`, `imageSmall` | `imageUrls.*`   |
| `preview`                                                | `previewUrl`      |
| `altDescription`                                         | `alt`             |
| `searchQuery`                                            | `query`           |

`id` is always a string, for both sites. Empty values are `null`, not `""`.

#### Use case → fields

| Buyer job              | Input path                        | Output entity | Key fields                                         | Next integration          |
| ---------------------- | --------------------------------- | ------------- | -------------------------------------------------- | ------------------------- |
| Photos with credits    | `searchQueries`                   | photo row     | `downloadUrl`, `photographer`, `license`           | CSV, Excel, Google Sheets |
| Video clips            | `mediaType: videos`               | video row     | `videoFiles`, `duration`, `fps`                    | editing list              |
| New photos alert       | `onlyNew`, `stateName`            | photo row     | `id`, `url`, `createdAt`                           | Slack or Notion summary   |

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Pricing

#### Pricing unit

You pay per saved photo or video, plus a small start fee for each run. Tags, stats and camera data
(`includeDetails`) cost nothing extra. Apify platform usage is included in the price.

| Event                                       |    Free |  Bronze |  Silver | Gold and higher |
| ------------------------------------------- | ------: | ------: | ------: | --------------: |
| Photo or video saved (per 1000)             |   $0.90 |   $0.81 |   $0.72 |           $0.63 |
| Run start (per GB of run memory, at least 1) |  $0.005 |  $0.005 |  $0.005 |          $0.005 |

A search that finds nothing, filters that match nothing and a monitoring run with nothing new save no rows: you pay
only the start fee ($0.005). A bad setting fails at once and pays only the start fee. When the run reaches your spending
limit, it stops and keeps what it saved (status `PARTIAL`, reason `CHARGE_LIMIT`).

#### Cost examples

| Scenario             | Input scope                      | Expected item/event count | Base charge | Optional charge | Stop/cap behavior              |
| -------------------- | -------------------------------- | ------------------------: | ----------: | --------------: | ------------------------------ |
| One photo            | `maxItems: 1`                    |                    1 item |     $0.0059 |            none | stops at `maxItems`            |
| First test (prefill) | `mountains`, `maxItems: 20`      |                  20 items |      $0.023 |            none | stops at `maxItems`            |
| Small export         | `maxItems: 100`                  |                 100 items |      $0.095 |            none | stops at `maxItems`            |
| Normal export        | `maxItems: 1000`                 |                1000 items |      $0.905 |            none | stops at `maxItems`            |
| Large export         | several keywords, `maxItems: 10000` |            10000 items |       $9.005 |            none | stops at `maxItems`            |
| Nothing found or new | no results or `onlyNew`          |                   0 items |      $0.005 |            none | status `NOT_FOUND` or `NO_RESULTS` |

Prices are for the Free plan; paid plans pay less per item. Runs over 4000 items use 512 MB memory, which still
counts as one start fee.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Limits

- Up to 10000 items per run. A run of 10000 items takes about 11–13 minutes; the default timeout is 1 hour.
- Videos come from Pexels only: Unsplash has no free videos.
- Paid Unsplash+ photos are skipped by default; turn on `includePremium` to add them (`isPremium: true`).
- Without your Pexels key, `mode: curated` reads only the newest page of the curated feed; with a free key from the
  Pexels API it reads the full feed.
- Pexels search is fuzzy: a rare or misspelled keyword can still return near matches.
- Downloads, views, camera, EXIF and location exist on Unsplash only; Pexels gives likes.
- The Actor saves links, not the files. Follow the [Pexels License](https://www.pexels.com/license/) and the
  [Unsplash License](https://unsplash.com/license) when you use the media, and credit the author when you can.
- Public pages only: no login, no uploads, no account data.
- Up to 500 entries in each list (keywords, links, ids) and 200 characters per keyword.
- Each request waits up to 20 s and is tried up to 3 times with growing pauses, plus one more try through Apify datacenter proxy when you set no
  proxy. A site that keeps answering HTTP 429
  or 403 stops with `SOURCE_RATE_LIMITED` or `SOURCE_BLOCKED`; the other site goes on.
- Strict filters and `onlyNew`: each keyword reads at most 10 pages more than `maxItems` needs and stops after 3
  pages in a row where everything was filtered out or seen before. The run reads at most 100 pages with nothing
  new before the first saved item (20 more per saved item); if it stops there, `RUN_SUMMARY` says `PARTIAL` with
  reason `SCAN_LIMIT` and lists the inputs it did not finish (up to 100 of them). Keywords that already gave items
  go on. Run the other inputs on their own or loosen the filters.
- `onlyNew` looks for new items in the first pages of each keyword: after 3 pages in a row with nothing new it
  stops, so new items deeper in the site's relevance order are not found in that run.
- The run stops 20 s before its timeout (75 s with Slack or Notion delivery) to save the summary.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### API, export and integrations

- **API:** start a run with the input above through the Apify API or client and read Dataset items; the file link is
  in `downloadUrl`, the page in `url`.
- **Export:** CSV, Excel, JSON, XML or HTML from the Dataset, views **Overview**, **Tags and stats**, **Videos** and
  **Authors**.
- **Scheduling:** add a schedule in Apify Console with `onlyNew: true` and a `stateName`; each run saves only new
  items.
- **Webhooks / no-code:** an Apify webhook on run success can pass the Dataset to Make, Zapier or n8n.
- **SDK / MCP / agent:** see below.

#### Use with AI agents (MCP)

- MCP server URL with only this Actor: `https://mcp.apify.com?tools=cliqtomedia/stock-photos-scraper`.
- Smallest useful input: `{"searchQueries": ["mountains"], "maxItems": 20}`.
- Key output fields: `previewUrl` (small image), `downloadUrl` (full file), `photographer` (author), `license`
  (license name), `url` (page on the site).
- A 20-item run takes about 5 seconds and costs $0.023 on the Free plan. Keep `maxItems` small, up to 10000.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Troubleshooting

#### The run saved 0 items

Symptom: empty Dataset, run succeeded.
Likely reason: no media for the keyword, or your filters or `onlyNew` removed everything.
Check: `RUN_SUMMARY` status: `NOT_FOUND` (the sites have nothing) or `NO_RESULTS` (filters or `onlyNew` removed all).
Action: shorten the keyword, loosen size, color or length filters, or use another `stateName`.

#### I asked for videos but got only Pexels rows

Symptom: no Unsplash rows with `mediaType: videos`.
Likely reason: Unsplash has no free videos.
Check: the log line “Unsplash has no free videos”.
Action: nothing to fix; use `photos` or `all` to get Unsplash photos too.

#### The run stopped early with status PARTIAL

Symptom: fewer items than `maxItems`.
Likely reason: your spending limit (`CHARGE_LIMIT`), the run timeout (`DEADLINE`), one site did not answer
(`ONE_SOURCE_FAILED`) or too many pages had nothing new for your filters (`SCAN_LIMIT`).
Check: `RUN_SUMMARY` reason and the list of searches that were not finished.
Action: raise the maximum cost per run or the timeout, or run again later. Saved rows stay in the Dataset.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### FAQ

#### Do I need a Pexels or Unsplash account or API key?

No. The Actor reads public pages without login or key. Your own key is optional: with a Pexels key, curated photos
come from the full feed.

#### Can I use the photos for free?

Pexels and Unsplash photos are free under their own licenses, which the Actor saves in `license` and `licenseUrl`.
Paid Unsplash+ photos are not free and are skipped unless you turn on `includePremium`.

#### Why are the counts from Pexels and Unsplash different?

The Actor takes results from the sources in turn, but one site can have fewer matches or fewer items left after
your filters. The run summary shows the count from each source.

#### Are the results always the same?

The sites change their search order and add new media every day, so results can change between runs. Use `onlyNew`
to get only what is new.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Related Actors

- [Google Images Scraper - Image URLs, Sizes & Source Pages](https://apify.com/cliqtomedia/google-images-scraper) —
  images from the whole web through Google Images, with sizes and source pages.
- [Pinterest Search Scraper: Pins & Boards, No Login](https://apify.com/cliqtomedia/pinterest-search-scraper) — pins
  and boards for a keyword, for visual ideas.
- [Social Video Downloader: TikTok, Instagram, X - No Login](https://apify.com/cliqtomedia/social-video-downloader) —
  video files from social posts.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

### Support

For a bug, question or feature request, open the Actor's **Issues** tab on Apify. Include the run ID, your input
(without private data) and the error text from the log. Never send tokens, API keys or billing data.

⭐ Found it useful? [Rate this Actor](https://apify.com/cliqtomedia/stock-photos-scraper/reviews).
Something wrong? [Report a problem](https://apify.com/cliqtomedia/stock-photos-scraper/issues) — we fix reported problems.

> **👉 [Try it now: open the input form](https://console.apify.com/actors/IgKppOcMjb0Fw03Ja/input)**

# Changelog

This Actor's version history is a separate document: https://apify.com/cliqtomedia/stock-photos-scraper/changelog.md

# Actor input Schema

## `searchQueries` (type: `array`):

Keywords to search on Pexels and Unsplash, one per line, e.g. mountains or ocean sunset. Each query runs on every selected source.

## `mode` (type: `string`):

Leave on Search for keyword search. Other modes read the matching list below. Links in Start URLs are always collected, whatever the mode.

## `sources` (type: `array`):

Pexels, Unsplash or both (default both). Unsplash has photos only.

## `mediaType` (type: `string`):

Videos come from Pexels only.

## `startUrls` (type: `array`):

Any pexels.com or unsplash.com page: a photo, video, search, collection, photographer or topic page. The Actor reads only the id from the link.

## `mediaIds` (type: `array`):

For modes By ID and Similar. Digits = Pexels id (33999682), other ids = Unsplash (Bkci_8qcdvQ), or full links.

## `collections` (type: `array`):

For mode Collections: collection links or ids. Add pexels: or unsplash: before a bare id, e.g. unsplash:317099.

## `usernames` (type: `array`):

For mode Photographers: profile links or usernames. Add pexels: or unsplash: before a bare username, e.g. unsplash:kalenemsley.

## `topics` (type: `array`):

For mode Topics: topic slugs or links, e.g. nature, wallpapers, travel.

## `orientation` (type: `string`):

Both sources filter by orientation.

## `color` (type: `string`):

A color name (black_and_white, black, white, yellow, orange, red, purple, magenta, green, teal, blue) or a hex color like ff0000 (hex works on Pexels only). Leave empty for any color.

## `size` (type: `string`):

Pexels size filter. For both sources use minimum width/height below.

## `peopleCount` (type: `string`):

Pexels search only.

## `peopleAge` (type: `string`):

Pexels search only.

## `minWidth` (type: `integer`):

Skip items narrower than this. 0 = no limit.

## `minHeight` (type: `integer`):

Skip items lower than this. 0 = no limit.

## `maxWidth` (type: `integer`):

0 = no limit.

## `maxHeight` (type: `integer`):

0 = no limit.

## `minDuration` (type: `integer`):

Videos only. 0 = no limit.

## `maxDuration` (type: `integer`):

Videos only. 0 = no limit.

## `minFps` (type: `integer`):

Videos only, e.g. 50 for smooth slow motion. 0 = no limit.

## `orderBy` (type: `string`):

Unsplash search order. Pexels always sorts by relevance.

## `includePremium` (type: `boolean`):

Off by default: only free photos. When on, Unsplash+ photos are listed with isPremium true, license Unsplash+ and no download link.

## `contentFilter` (type: `string`):

Unsplash content filter.

## `locale` (type: `string`):

Language of your queries for Pexels, e.g. de-DE, es-ES, ja-JP. Default en-US.

## `maxItems` (type: `integer`):

Total photos and videos to save in this run. Each saved item is charged. Default 100.

## `maxItemsPerQuery` (type: `integer`):

Limit for each query, link or user (per source). 0 = share Max results evenly.

## `includeDetails` (type: `boolean`):

Adds tags, likes, downloads, views, camera and EXIF, location with one extra request per item. Turn off for faster runs with basic fields.

## `dedupe` (type: `boolean`):

Save each photo or video once even if several queries find it.

## `onlyNew` (type: `boolean`):

Skip items saved by earlier runs with the same state name. Use with a schedule to get only new photos for a query.

## `stateName` (type: `string`):

Name of the memory for Only new items. Use different names for different watch lists.

## `deliveryConnector` (type: `string`):

Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors.

## `deliveryTarget` (type: `string`):

Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why.

## `proxyConfiguration` (type: `object`):

Not needed. By default the Actor goes direct and switches to Apify proxy only if a site blocks it.

## `pexelsApiKey` (type: `string`):

Not needed. With your free key from pexels.com/api, search, curated and collections use the official Pexels API (full curated feed).

## `unsplashAccessKey` (type: `string`):

Not needed. With your Unsplash developer access key, requests use the official Unsplash API (50 requests per hour on a demo key).

## Actor input object example

```json
{
  "searchQueries": [
    "mountains"
  ],
  "mode": "search",
  "sources": [
    "pexels",
    "unsplash"
  ],
  "mediaType": "photos",
  "orientation": "any",
  "size": "any",
  "peopleCount": "any",
  "peopleAge": "any",
  "orderBy": "relevant",
  "includePremium": false,
  "contentFilter": "low",
  "locale": "en-US",
  "maxItems": 20,
  "maxItemsPerQuery": 0,
  "includeDetails": true,
  "dedupe": true,
  "onlyNew": false,
  "stateName": "default"
}
```

# Actor output Schema

## `overview` (type: `string`):

All items with author, size, license and links.

## `details` (type: `string`):

Tags, likes, downloads, views, camera and location.

## `runSummary` (type: `string`):

Status, counts per source, warnings and request statistics.

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchQueries": [
        "mountains"
    ],
    "maxItems": 20
};

// Run the Actor and wait for it to finish
const run = await client.actor("cliqtomedia/stock-photos-scraper").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchQueries": ["mountains"],
    "maxItems": 20,
}

# Run the Actor and wait for it to finish
run = client.actor("cliqtomedia/stock-photos-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchQueries": [
    "mountains"
  ],
  "maxItems": 20
}' |
apify call cliqtomedia/stock-photos-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,cliqtomedia/stock-photos-scraper"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/IgKppOcMjb0Fw03Ja/builds/OIniOyigN15RmCOyt/openapi.json
