How to use it: 3 steps
- Make a free Apify accountApify is the cloud platform where our tools run. The free plan gives you $5 of usage every month, no credit card needed. You pay Apify, not us.
- Paste your input and press StartNo code needed: you fill in a form (the input). It already has a working example. For example:
mountainsin Search queries. Each start is one run. - Download the resultsWhen the run ends, the results are in a table (the dataset). Open Output, press Export and pick Excel or CSV. JSON and the API are there too.
This tool is an Apify Actor: a small program that runs on Apify. You can also run it on a schedule, for example every Monday. New to it? Read how it works, step by step and the 8 words you need first.
What it does
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.
Good for
- 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.
Who uses it
Content creators
Find free photos for posts and slides, and keep author and license next to each file.
Designers
Compare what both sites have for the same keyword in one table.
Marketers
Export all photos of a photographer, a collection or a topic.
Price
Pay per event: you pay for each result the tool saves, plus a small start fee for each run. The price includes Apify platform costs. Apify bills you, not us. Prices below are for the Apify free plan.
| What you pay for | Price | When |
|---|---|---|
| Photo or video saved | $0.0009 (from $0.00063 on paid Apify plans) | One free photo or video from Pexels or Unsplash saved to the dataset, with author, size, tags, license and file links. |
| Start fee | $0.005 | Charged once per run. This tool uses 1 GB of memory or less by default; more memory costs more. |
Examples
- One photo: about $0.0059.
- 1,000 photos: about $0.91.
- Every day 100 photos, for 30 days: about $2.85 a month.
Free to try: the Apify free plan gives you $5 of usage every month, no credit card needed. That is enough for about 5,500 photos.
Prices checked on 27 November 2026. See the current price on Apify.
Questions
Do I need an API key?
No. Keys are optional. The tool reads public pages.
Does it download the files?
No. It saves links to the files. Follow each site's license and credit the author when you can.
Can I get videos from Unsplash?
No. Unsplash has no free videos here. Videos come from Pexels only.
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.
Details
Step by step on Apify
- Open the Input tab. Search queries already has
mountains(box 1 in the picture). Add more keywords, one per line, if you need them. - Keep Sources (Pexels and Unsplash) and Media type (Photos) for a first test (box 2). For videos, choose Videos: they come from Pexels.
- Keep Max results at the prefilled 20 (in the Output section). Without a value the Actor saves up to 100.
- Click Start.
- 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.
Use cases
| Task | Input | You get | Key fields | Next step |
|---|---|---|---|---|
| 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 |
Tips for better results
- Start with 20 results to check the table.
- Use orientation, color and size filters to get only photos that fit.
- Turn on only new items and run weekly to see fresh photos for a keyword.
Limits and good to know
- 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
includePremiumto add them (isPremium: true) - Without your Pexels key,
mode: curatedreads 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 and the Unsplash License when you use the media, and credit the author when you can
- Public pages only: no login, no uploads, no account data
For developers
Sample result
One result from a real test run, in JSON. Real values change from run to run. In Excel or CSV each field is a column.
{
"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
}Use it from code
Actor ID: cliqtomedia/stock-photos-scraper. You need your Apify API token from Apify Console → Settings → API & Integrations.
from apify_client import ApifyClient
client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("cliqtomedia/stock-photos-scraper").call(run_input={
"searchQueries": [
"mountains"
],
"mode": "search"
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
print(item)curl -X POST "https://api.apify.com/v2/acts/cliqtomedia~stock-photos-scraper/run-sync-get-dataset-items?token=YOUR_APIFY_TOKEN" \
-H "Content-Type: application/json" \
-d '{"searchQueries": ["mountains"], "mode": "search"}'# pip install langchain-apify
# set APIFY_TOKEN in your environment
from langchain_apify import ApifyActorsTool
tool = ApifyActorsTool("cliqtomedia/stock-photos-scraper")
result = tool.invoke({"run_input": {"searchQueries": ["mountains"], "mode": "search"}})
print(result)The cURL call waits for the results, up to 300 seconds. For longer runs, start a run (/runs) and get the results with a webhook or by checking the run. Apify API docs. LlamaIndex, MCP for AI agents and the JavaScript client: AI agents & MCP.
Data fields (40)
| Field | Type | Meaning |
|---|---|---|
id | string | Media id on the source (Pexels digits or Unsplash id). |
source | string | Where the item is from. |
mediaType | string | photo or video. |
url | string | Page of the item on Pexels or Unsplash. |
title | string | Title (Pexels); caption or alt text on Unsplash. |
description | string | Author's description. |
alt | string | Alt text describing the image. |
width | number | Width of the original in px. |
height | number | Height of the original in px. |
aspectRatio | number | Width divided by height. |
orientation | string | landscape, portrait or square. |
colors | array | Dominant colors as hex (Pexels: palette; Unsplash: main color). |
mainColor | string | Average color as hex. |
blurHash | string | BlurHash placeholder string (Unsplash). |
tags | array | Keywords of the item (with details). |
likes | number | Likes. |
downloads | number | Downloads (with details). |
views | number | Views (with details). |
photographer | string | Author name. |
photographerUsername | string | Author username. |
photographerId | string | Author id. |
photographerUrl | string | Author profile page. |
photographerLocation | string | Author location as written in the profile. |
photographerAvatar | string | Author avatar image. |
photographerInstagram | string | Author Instagram handle, if public. |
photographerTwitter | string | Author X/Twitter handle, if public. |
previewUrl | string | Medium preview image URL. |
downloadUrl | string | Full-size file URL (largest video file for videos); null for Unsplash+ items. |
imageUrls | object | Image sizes: original, large, medium, small, thumb. |
videoFiles | array | Video files, largest first: quality, width, height, fps, fileType, link. |
duration | number | Video length in seconds. |
fps | number | Video frames per second. |
videoPreviewUrl | string | Short preview clip of the video. |
license | string | License name: Pexels License, Unsplash License or Unsplash+ License. |
licenseUrl | string | License text. |
isPremium | boolean | true for paid Unsplash+ items. |
createdAt | string | Publication date (ISO 8601). |
camera | string | Camera make and model. |
exif | object | EXIF: make, model, aperture, focalLength, iso, exposureTime. |
location | object | Where the photo was taken: name, city, country, latitude, longitude. |
Input settings (25)
The main fields of the input form. With the API you send them as JSON.
| Setting | Name in the API | Type | Example value |
|---|---|---|---|
| Search queries | searchQueries | array | ["mountains"] |
| What to collect | mode | string | "search" |
| Sources | sources | array | ["pexels", "unsplash"] |
| Media type | mediaType | string | "photos" |
| Pexels or Unsplash links | startUrls | array | |
| Photo / video IDs or links | mediaIds | array | |
| Collections | collections | array | |
| Photographers | usernames | array | |
| Unsplash topics | topics | array | |
| Orientation | orientation | string | "any" |
| Color | color | string | |
| Size (Pexels) | size | string | "any" |
| People in photo (Pexels) | peopleCount | string | "any" |
| People age (Pexels) | peopleAge | string | "any" |
| Minimum width (px) | minWidth | integer | |
| Minimum height (px) | minHeight | integer | |
| Maximum width (px) | maxWidth | integer | |
| Maximum height (px) | maxHeight | integer | |
| Minimum video length (s) | minDuration | integer | |
| Maximum video length (s) | maxDuration | integer | |
| Minimum video fps | minFps | integer | |
| Order (Unsplash) | orderBy | string | "relevant" |
| Include Unsplash+ (paid) photos | includePremium | boolean | false |
| Safe search (Unsplash) | contentFilter | string | "low" |
| Search language (Pexels) | locale | string | "en-US" |

