# Pexels Scraper (`automly/pexels-scraper`) Actor

Scrape Pexels photos and videos by keyword or link: title, size, tags, creator, image, video and download links, plus views, downloads, likes and camera details. No API key, no login.

- **URL**: https://apify.com/automly/pexels-scraper.md
- **Developed by:** [Automly](https://apify.com/automly) (community)
- **Categories:** Videos, Automation
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $0.27 / 1,000 photos

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

## Pexels Scraper - Photos & Videos with Links, Views & Downloads

### What is Pexels Scraper?

**Pexels Scraper** is a tool that lets you **scrape Pexels photos and videos by keyword or link**: title, description, size, orientation, tags, main color, creator, upload date, image and video links in every size, and on request each item's **views, downloads and likes** and the **camera, lens settings and file size** of photos. Type a keyword, click **Start**, and download the results as Excel, CSV or JSON. You get the data and the links, not the files.

- 🔎 **Keyword search:** photos, videos or both, up to about 470 results per keyword (all Pexels shows a visitor)
- 🎬 **Every video file:** each quality with its width, height, frame rate and link
- 📈 **Views, downloads and likes** for each photo or video, on request
- 📷 **Camera details:** camera, aperture, focal length, ISO, file size and date taken
- 🔓 **No API key and no login:** no Pexels account needed

### What can Pexels Scraper do?

- **Search Pexels photos and videos** for any keyword, in the order Pexels ranks them
- **Look up photos and videos** from their links or IDs, with views, downloads and likes
- **Find the most viewed and downloaded media** for a topic
- **Collect creator details:** name, profile link and location
- **Build image and video datasets** of links, sizes, tags and colors
- Export to Excel, CSV, JSON, HTML or XML, or send the data to Google Sheets, Make, Zapier and more

### What data can you extract from Pexels?

| | | |
|---|---|---|
| 🏷️ Title and description | 📐 Width, height, orientation | 🏷️ Tags |
| 🖼️ Image and thumbnail links | ⬇️ Download link | 🎬 Video files (every quality) |
| ⏱️ Video length and frame rate | 🎨 Main color | 👤 Creator name, profile and location |
| 👁️ Views | 📥 Downloads | ❤️ Likes |
| 📷 Camera, aperture, focal length, ISO | 💾 File size | 📅 Upload and taken dates |

### How to scrape Pexels

1. [Create a free Apify account](https://console.apify.com/sign-up) (no credit card needed).
2. Open **Pexels Scraper**.
3. Type one or more keywords, choose photos, videos or both, or paste photo and video links.
4. Click **Start**.
5. When the run finishes, download the results as Excel, CSV, JSON, HTML or XML.

### How much does it cost to scrape Pexels?

You pay per photo or video saved, plus $0.0005 when a run starts:

| Apify plan | Photos or videos per 1,000 |
|---|---|
| Free | $0.50 |
| Starter (Bronze) | $0.45 |
| Scale (Silver) | $0.35 |
| Business (Gold) and higher | $0.27 |

Views, downloads, likes and camera details are included at no extra cost. Platform usage is included in these prices, so you pay nothing else for the run.

Example: 1,000 photos cost $0.50 on the Free plan and $0.27 on Business.

Every Apify account gets **$5 of free usage each month**, enough for about 10,000 photos and videos.

### ⬇️ Input

| Setting | What it does |
|---|---|
| Keywords | What to search Pexels for, one search per line |
| Media type | Photos, videos, or both |
| Max results per keyword | How many results to save for each keyword and media type (up to about 470) |
| Include views, downloads and camera details | Opens each result's page for its views, downloads, likes and camera details (slower, same price) |
| Photo or video links | Pexels links or IDs; each gives one row with views, downloads, likes and camera details |

Example: up to 200 coffee photos and 200 coffee videos with their views and downloads, plus one photo by link:

```json
{
  "searchQueries": ["coffee"],
  "mediaType": "all",
  "maxItems": 200,
  "includeDetails": true,
  "mediaUrls": ["https://www.pexels.com/photo/selective-focus-photography-of-orange-tabby-cat-1170986/"]
}
```

### ⬆️ Output

Each photo or video is one row:

```json
{
  "type": "photo",
  "id": "1170986",
  "url": "https://www.pexels.com/photo/selective-focus-photography-of-orange-tabby-cat-1170986/",
  "title": "Selective Focus Photography of Orange Tabby Cat",
  "description": "A cute ginger tabby cat sits on a windowsill, basking in soft indoor light.",
  "width": 1771,
  "height": 2657,
  "orientation": "portrait",
  "durationSeconds": null,
  "fps": null,
  "tags": ["Orange Cat", "Cat Wallpaper 4k", "Cat Sitting", "Tabby Cat"],
  "mainColor": "#beae9e",
  "imageUrl": "https://images.pexels.com/photos/1170986/pexels-photo-1170986.jpeg?auto=compress&cs=tinysrgb&w=1440",
  "thumbnailUrl": "https://images.pexels.com/photos/1170986/pexels-photo-1170986.jpeg?auto=compress&cs=tinysrgb&w=750",
  "downloadUrl": "https://images.pexels.com/photos/1170986/pexels-photo-1170986.jpeg?cs=srgb&dl=pexels-kowalievska-1170986.jpg&fm=jpg",
  "videoUrl": null,
  "previewVideoUrl": null,
  "videoFiles": null,
  "creatorName": "EVG Kowalievska",
  "creatorId": "391109",
  "creatorUrl": "https://www.pexels.com/@kowalievska/",
  "creatorLocation": "Kharkiv, Kharkiv Oblast, Ukraine",
  "createdAt": "2018-06-18T19:24:05.000Z",
  "publishedAt": "2018-06-19T12:55:13.170Z",
  "license": "Pexels",
  "views": 43988087,
  "downloads": 269327,
  "likes": 1735,
  "camera": "Canon EOS 6D",
  "cameraMaker": "Canon",
  "aperture": "2.0",
  "focalLength": "85.0",
  "iso": 100,
  "shutterSpeed": null,
  "takenAt": "2018-03-10T09:41:04.000Z",
  "fileSizeBytes": 2103770,
  "location": null,
  "detailsIncluded": true,
  "rank": null,
  "source": "https://www.pexels.com/photo/selective-focus-photography-of-orange-tabby-cat-1170986/",
  "scrapedAt": "2026-11-15T15:06:49Z"
}
```

Videos add `durationSeconds`, `fps`, `videoUrl`, `previewVideoUrl` and every file in `videoFiles` (quality, width, height, frame rate and link). Without details, `views`, `downloads`, `likes` and the camera fields are empty. The **Overview** and **Files and links** tabs show the main fields as tables. Each run also saves a short report that lists any keyword with no result and any link that does not exist.

### How can I use Pexels data?

- **Content and design research:** find the most viewed and downloaded photos and videos for a topic
- **Image and video datasets:** links, sizes, tags and colors for catalogs and search tools
- **Creator research:** see which photographers and videographers lead a topic
- **Media planning:** pick free stock photos and videos by orientation, size, length and color

### Integrations and API

Run the scraper from your own code with the [Apify API](https://docs.apify.com/api/v2), or connect it to Make, Zapier, n8n, Google Sheets, Airtable, Slack and webhooks from the **Integrations** tab. AI agents can run it through the Apify MCP server at [mcp.apify.com](https://mcp.apify.com).

### ❓FAQ

#### How much does it cost to scrape Pexels?

$0.50 per 1,000 photos or videos on the Free plan down to $0.27 on Business, details included, plus $0.0005 per run.

#### How many results can I get for one keyword?

Pexels shows a visitor about 470 results per search (20 pages). Use several related keywords to cover more: an item found by two keywords is saved once.

#### Does it download the photos and videos?

No. You get the links Pexels publishes for each file, in every size. Use them as the Pexels license allows.

#### Do I need a Pexels API key?

No. The scraper reads what anyone can see on Pexels without an account or key.

#### What happens with a keyword that has no results or a link that does not exist?

It is listed in the run report as not found, and the run still succeeds with everything else. You are not charged for it.

#### Is it legal to scrape Pexels?

The scraper collects public information about free stock photos and videos that anyone can see. The photos and videos remain under the Pexels license and belong to their creators: you are responsible for how you use them. Pexels Scraper is not affiliated with or endorsed by Pexels.

#### Something isn't working?

Open the **Issues** tab and tell us what you ran (the input) and what you expected. We usually answer within a day.

### ⭐ Your feedback

Have an idea or found a problem? Tell us in the **Issues** tab. If Pexels Scraper saved you time, a short review on the **Reviews** tab helps other people find it.

# Actor input Schema

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

What to search Pexels for, one search per line, e.g. coffee or city skyline.

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

Search photos, videos or both (each keyword is then searched twice).

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

How many photos or videos to save for each keyword and media type, e.g. 200. Pexels shows up to about 470 per search.

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

Open each result's page for its views, downloads and likes, and for photos the camera, lens settings, file size and date taken. Slower; the price stays the same.

## `mediaUrls` (type: `array`):

Pexels photo or video links or IDs, one per line, e.g. https://www.pexels.com/photo/selective-focus-photography-of-orange-tabby-cat-1170986/ or 1170986. Each gives one row with views, downloads, likes and camera details.

## Actor input object example

```json
{
  "searchQueries": [
    "coffee"
  ],
  "mediaType": "photos",
  "maxItems": 30,
  "includeDetails": false
}
```

# Actor output Schema

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

No description

## `files` (type: `string`):

No description

## `results` (type: `string`):

No description

## `report` (type: `string`):

No description

# 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": [
        "coffee"
    ],
    "mediaType": "photos",
    "maxItems": 30
};

// Run the Actor and wait for it to finish
const run = await client.actor("automly/pexels-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": ["coffee"],
    "mediaType": "photos",
    "maxItems": 30,
}

# Run the Actor and wait for it to finish
run = client.actor("automly/pexels-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": [
    "coffee"
  ],
  "mediaType": "photos",
  "maxItems": 30
}' |
apify call automly/pexels-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,automly/pexels-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/QSGWL7lPJw8ZTv164/builds/OQRz7zzkVAtBCN5OA/openapi.json
