Pexels logoUnsplash logo

Online shops · Live on Apify

Pexels and Unsplash Scraper: Free Stock Photos and Videos

Enter keywords, links or photographer names. You get one row per photo or video from Pexels and Unsplash. Rows have author, size, tags, likes, license and file links. No login and no API key.

About $0.91 for 1,000 photos$0.0009 per photo + $0.005 per run. Apify bills you, not us.One photo in a run of its own: about $0.0059.Free to try: the Apify free plan gives you $5 of usage every month, no credit card needed.

Run it on Apify Opens apify.com, the website where our tools run. Sign up free with Google or email, no card needed.

Apify links on this page are affiliate links. We may earn a commission. You pay the same price. Affiliate disclosure

What you get, for example

mediaTypephoto
urlhttps://unsplash.com/photos/snow-capped-mountains-with-valley-and-fore…
titletravelyukon, Wet mountain valley

How to use it: 3 steps

  1. 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.
  2. Paste your input and press StartNo code needed: you fill in a form (the input). It already has a working example. For example: mountains in Search queries. Each start is one run.
  3. 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 forPriceWhen
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.005Charged 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
  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.
Use cases
TaskInputYou getKey fieldsNext step
Photos for an article or a postsearchQueries, orientationphoto rowpreviewUrl, downloadUrl, photographer, licenseCSV or Google Sheets
Stock video clips for editingmediaType: videos, minDurationvideo rowvideoFiles, duration, fps, width, heightExcel export, editing list
Credit authors correctlyanyphoto or video rowphotographer, photographerUrl, license, licenseUrlyour CMS
New photos for a keyword every weekonlyNew, stateNamenew photo rowid, url, createdAtschedule + Slack or Notion
A photographer or collection exportmode: byUser or byCollectionphoto or video rowid, title, likes, downloads, downloadUrlspreadsheet
What is popular in a nichesearchQueries, includeDetailsphoto row with statslikes, downloads, views, tagsspreadsheet 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 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 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.

one result · 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
}

Use it from code

Actor ID: cliqtomedia/stock-photos-scraper. You need your Apify API token from Apify Console → Settings → API & Integrations.

Python · apify-client
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
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"}'
LangChain · langchain-apify
# 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)
FieldTypeMeaning
idstringMedia id on the source (Pexels digits or Unsplash id).
sourcestringWhere the item is from.
mediaTypestringphoto or video.
urlstringPage of the item on Pexels or Unsplash.
titlestringTitle (Pexels); caption or alt text on Unsplash.
descriptionstringAuthor's description.
altstringAlt text describing the image.
widthnumberWidth of the original in px.
heightnumberHeight of the original in px.
aspectRationumberWidth divided by height.
orientationstringlandscape, portrait or square.
colorsarrayDominant colors as hex (Pexels: palette; Unsplash: main color).
mainColorstringAverage color as hex.
blurHashstringBlurHash placeholder string (Unsplash).
tagsarrayKeywords of the item (with details).
likesnumberLikes.
downloadsnumberDownloads (with details).
viewsnumberViews (with details).
photographerstringAuthor name.
photographerUsernamestringAuthor username.
photographerIdstringAuthor id.
photographerUrlstringAuthor profile page.
photographerLocationstringAuthor location as written in the profile.
photographerAvatarstringAuthor avatar image.
photographerInstagramstringAuthor Instagram handle, if public.
photographerTwitterstringAuthor X/Twitter handle, if public.
previewUrlstringMedium preview image URL.
downloadUrlstringFull-size file URL (largest video file for videos); null for Unsplash+ items.
imageUrlsobjectImage sizes: original, large, medium, small, thumb.
videoFilesarrayVideo files, largest first: quality, width, height, fps, fileType, link.
durationnumberVideo length in seconds.
fpsnumberVideo frames per second.
videoPreviewUrlstringShort preview clip of the video.
licensestringLicense name: Pexels License, Unsplash License or Unsplash+ License.
licenseUrlstringLicense text.
isPremiumbooleantrue for paid Unsplash+ items.
createdAtstringPublication date (ISO 8601).
camerastringCamera make and model.
exifobjectEXIF: make, model, aperture, focalLength, iso, exposureTime.
locationobjectWhere 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.

SettingName in the APITypeExample value
Search queriessearchQueriesarray["mountains"]
What to collectmodestring"search"
Sourcessourcesarray["pexels", "unsplash"]
Media typemediaTypestring"photos"
Pexels or Unsplash linksstartUrlsarray
Photo / video IDs or linksmediaIdsarray
Collectionscollectionsarray
Photographersusernamesarray
Unsplash topicstopicsarray
Orientationorientationstring"any"
Colorcolorstring
Size (Pexels)sizestring"any"
People in photo (Pexels)peopleCountstring"any"
People age (Pexels)peopleAgestring"any"
Minimum width (px)minWidthinteger
Minimum height (px)minHeightinteger
Maximum width (px)maxWidthinteger
Maximum height (px)maxHeightinteger
Minimum video length (s)minDurationinteger
Maximum video length (s)maxDurationinteger
Minimum video fpsminFpsinteger
Order (Unsplash)orderBystring"relevant"
Include Unsplash+ (paid) photosincludePremiumbooleanfalse
Safe search (Unsplash)contentFilterstring"low"
Search language (Pexels)localestring"en-US"

Start on Apify

Make a free Apify account: you get $5 of free usage every month. Missing a tool? Suggest it. We read every idea, but we do not promise to build it.

Apify links on this page are affiliate links. We may earn a commission. You pay the same price. Affiliate disclosure