{
  "openapi": "3.0.1",
  "info": {
    "title": "Pexels Scraper - Free Stock Photos & Videos (No API Key)",
    "description": "Scrape free stock photos & videos from Pexels — no API key or account needed. Direct download URLs at every size/quality, plus tags, colour palette, dimensions and the photographer's profile & socials. Search, by ID, by collection, or a photographer's whole portfolio",
    "version": "0.1",
    "x-build-id": "VQrbleRaJWrLgbJnf"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/memo23~pexels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-memo23-pexels-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/memo23~pexels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-memo23-pexels-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/memo23~pexels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-memo23-pexels-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "mode": {
            "title": "Mode (optional — auto-inferred when omitted)",
            "enum": [
              "search",
              "curated",
              "byPhotoId",
              "byCollection",
              "byUser",
              "similarPhotos"
            ],
            "type": "string",
            "description": "Optional. When omitted, automatically inferred from whichever inputs you supply (`queries`, `startUrls`, `mediaIds`/`photoIds`, `collections`, `usernames`, `similarTo`, `curated`), falling back to the curated feed if empty."
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Single keyword to search. Example: `nature`, `city skyline`, `coffee`."
          },
          "queries": {
            "title": "Search queries (batch)",
            "type": "array",
            "description": "Multiple keywords to search in one run. Example: `[\"coffee\", \"latte art\", \"espresso\"]`.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search queries (alias)",
            "type": "array",
            "description": "Alias for `queries` — batch multiple keywords in one run.",
            "items": {
              "type": "string"
            }
          },
          "keyword": {
            "title": "Keyword (alias)",
            "type": "string",
            "description": "Alias for `searchQuery` — single search keyword."
          },
          "startUrls": {
            "title": "Pexels URLs",
            "type": "array",
            "description": "Public Pexels URLs: search pages (`/search/coffee/?orientation=landscape`), video searches (`/search/videos/ocean/`), photo/video pages (`/photo/...-27860686/`, `/video/...-31264406/`), CDN links (`images.pexels.com`), collections (`/collections/<slug>/`), photographer profiles (`/@<handle>/`, `/@<handle>/popular/`), or discover/videos feeds.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "url": {
            "title": "Single Pexels URL (alias)",
            "type": "string",
            "description": "Single Pexels URL alias for `startUrls`."
          },
          "curated": {
            "title": "Curated / discover feed",
            "type": "boolean",
            "description": "Set true to fetch Pexels' latest curated discover feed without a search query."
          },
          "mediaType": {
            "title": "Media type",
            "enum": [
              "photos",
              "videos",
              "all"
            ],
            "type": "string",
            "description": "Which kind of media to return. `all` returns both photos and videos.",
            "default": "photos"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum total number of media records to return (each is one paid `result`). Default 30. Free-tier users are capped at 100.",
            "default": 30
          },
          "maxResults": {
            "title": "Max results (alias)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxItems`. Overrides the default `maxItems` when set."
          },
          "results_wanted": {
            "title": "Results wanted (alias)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxItems`. Overrides the default `maxItems` when set."
          },
          "maxResultsPerSearch": {
            "title": "Max results per query / source",
            "minimum": 1,
            "type": "integer",
            "description": "Cap emitted results per search query, URL, collection, creator, or seed photo while overall output remains bounded by `maxItems`."
          },
          "photoIds": {
            "title": "Photo / video IDs or URLs",
            "type": "array",
            "description": "Pexels media IDs or full page URLs. Looked up directly (or used as seeds in `similarPhotos` mode). Example: `27860686` or `https://www.pexels.com/photo/coffee-cup-27860686/`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "mediaIds": {
            "title": "Media IDs (alias)",
            "type": "array",
            "description": "Alias/extension of `photoIds` — accepts numeric photo/video IDs or full Pexels URLs.",
            "items": {
              "type": "string"
            }
          },
          "similarTo": {
            "title": "Similar to photo IDs / URLs",
            "type": "array",
            "description": "Seed photo IDs or URLs to find visually related photos for (triggers `similarPhotos` automatically when `mode` is omitted).",
            "items": {
              "type": "string"
            }
          },
          "collectionSlug": {
            "title": "Collection slug or URL",
            "type": "string",
            "description": "Single Pexels collection slug or full URL. Example: `aquatic-aesthetic-bw7dkse`."
          },
          "collections": {
            "title": "Collections (batch)",
            "type": "array",
            "description": "Batch multiple Pexels collection slugs or URLs in one run.",
            "items": {
              "type": "string"
            }
          },
          "username": {
            "title": "Photographer handle / URL",
            "type": "string",
            "description": "Single photographer handle, ID, or profile URL. Example: `@ffc-aarman-22995634`, `22995634`, or `https://www.pexels.com/@ffc-aarman-22995634/`."
          },
          "usernames": {
            "title": "Photographers (batch)",
            "type": "array",
            "description": "Batch multiple photographer handles, IDs, or profile URLs in one run.",
            "items": {
              "type": "string"
            }
          },
          "creatorSort": {
            "title": "Photographer portfolio order",
            "enum": [
              "recent",
              "popular"
            ],
            "type": "string",
            "description": "Sort order for photographer portfolios (`recent` = `/users/{id}/media`, `popular` = `/users/{id}/media/popular`).",
            "default": "recent"
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "all",
              "any",
              "landscape",
              "portrait",
              "square"
            ],
            "type": "string",
            "description": "Filter by image/video orientation (server-side on search, post-parse on other modes).",
            "default": "all"
          },
          "size": {
            "title": "Minimum size tier (search)",
            "enum": [
              "all",
              "any",
              "large",
              "medium",
              "small"
            ],
            "type": "string",
            "description": "Upstream Pexels search size filter: `large` (photos >= 24 MP / videos 4K), `medium` (photos >= 12 MP / videos Full HD), `small` (photos >= 4 MP / videos HD).",
            "default": "all"
          },
          "color": {
            "title": "Color (photo search)",
            "type": "string",
            "description": "Upstream Pexels photo search color filter — color name (`red`, `orange`, `yellow`, `green`, `turquoise`, `blue`, `violet`, `pink`, `brown`, `black`, `gray`, `white`) or hex (`#ff0000` / `ff0000`)."
          },
          "peopleCount": {
            "title": "Number of people (search)",
            "enum": [
              "all",
              "any",
              "0",
              "1",
              "2",
              "3_plus"
            ],
            "type": "string",
            "description": "Upstream Pexels search filter for how many people appear in photos or videos.",
            "default": "all"
          },
          "peopleAge": {
            "title": "Age of people (search)",
            "enum": [
              "all",
              "any",
              "baby",
              "child",
              "teenager",
              "adult",
              "senior_adult"
            ],
            "type": "string",
            "description": "Upstream Pexels search filter for the age group of people appearing in photos or videos.",
            "default": "all"
          },
          "minWidth": {
            "title": "Minimum width (px)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return media at least this wide (server-side on photo search, pre-billing post-parse everywhere). 0 disables.",
            "default": 0
          },
          "maxWidth": {
            "title": "Maximum width (px)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return media at most this wide (server-side on photo search, pre-billing post-parse everywhere). 0 disables.",
            "default": 0
          },
          "minHeight": {
            "title": "Minimum height (px)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return media at least this tall (server-side on photo search, pre-billing post-parse everywhere). 0 disables.",
            "default": 0
          },
          "maxHeight": {
            "title": "Maximum height (px)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return media at most this tall (server-side on photo search, pre-billing post-parse everywhere). 0 disables.",
            "default": 0
          },
          "minDuration": {
            "title": "Minimum video duration (s)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return videos at least this long (server-side on video search, pre-billing post-parse everywhere). 0 disables.",
            "default": 0
          },
          "maxDuration": {
            "title": "Maximum video duration (s)",
            "minimum": 0,
            "type": "integer",
            "description": "Only return videos at most this long (server-side on video search, pre-billing post-parse everywhere). 0 disables.",
            "default": 0
          },
          "frameRate": {
            "title": "Video frame rate (fps)",
            "enum": [
              "all",
              "any",
              "24",
              "25",
              "30",
              "50",
              "60_plus"
            ],
            "type": "string",
            "description": "Filter videos by frame rate bucket (server-side on video search, pre-billing post-parse on `fps` elsewhere).",
            "default": "all"
          },
          "minFps": {
            "title": "Minimum video FPS",
            "minimum": 0,
            "type": "number",
            "description": "Pre-billing post-parse filter requiring video `fps` to be at least this number. 0 disables.",
            "default": 0
          },
          "resolution": {
            "title": "Minimum video resolution",
            "enum": [
              "all",
              "any",
              "1080p",
              "4K",
              "8K"
            ],
            "type": "string",
            "description": "Pre-billing video resolution filter (orientation-agnostic on `width`/`height`; also applies upstream `size=large` hint for 4K/8K video searches).",
            "default": "all"
          },
          "publishedAfter": {
            "title": "Published after (ISO date)",
            "type": "string",
            "description": "Pre-billing filter keeping only media whose `publishedAt` (falling back to `createdAt`) is on or after this ISO date/timestamp. Example: `2025-01-01`."
          },
          "uploadedWithin": {
            "title": "Uploaded within",
            "enum": [
              "all",
              "any",
              "last_24_hours",
              "last_week",
              "last_month",
              "last_year"
            ],
            "type": "string",
            "description": "Pre-billing freshness filter checked against `publishedAt` (falling back to `createdAt`).",
            "default": "all"
          },
          "includeKeywords": {
            "title": "Include keywords (post-filter)",
            "type": "array",
            "description": "Pre-billing filter: keep only items where `title`, `description`, `alt`, `slug`, `tags`, or `photographer` contains at least one of these terms (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords (post-filter)",
            "type": "array",
            "description": "Pre-billing filter: drop any item where `title`, `description`, `alt`, `slug`, `tags`, or `photographer` contains any of these terms (case-insensitive).",
            "items": {
              "type": "string"
            }
          },
          "monitorMode": {
            "title": "Monitor mode (only new items)",
            "type": "boolean",
            "description": "Persist seen media IDs in a named Apify Key-Value Store across runs and skip previously emitted items BEFORE billing.",
            "default": false
          },
          "onlyNewItems": {
            "title": "Only new items (alias)",
            "type": "boolean",
            "description": "Alias for `monitorMode` — skip media IDs seen in prior runs before billing."
          },
          "monitorStoreName": {
            "title": "Monitor Key-Value Store name",
            "type": "string",
            "description": "Named Apify Key-Value Store used to persist seen media IDs across runs when `monitorMode` / `onlyNewItems` is enabled.",
            "default": "pexels-monitor"
          },
          "resetMonitor": {
            "title": "Reset monitor state",
            "type": "boolean",
            "description": "Clear previously stored seen IDs in `monitorStoreName` before starting this run.",
            "default": false
          },
          "compact": {
            "title": "Compact output",
            "type": "boolean",
            "description": "Emit a slimmed-down row shape with core IDs, URLs, dimensions, primary download link, creator credit, and timestamps (omits bulky tags, palette, and full rendition lists).",
            "default": false
          },
          "excludeEmptyFields": {
            "title": "Exclude empty fields",
            "type": "boolean",
            "description": "Recursively strip `null`, `undefined`, empty strings, empty arrays, and empty objects from output rows while preserving numeric `0` and boolean `false`.",
            "default": false
          },
          "dedupe": {
            "title": "De-duplicate within run",
            "type": "boolean",
            "description": "Drop duplicate media (same type + id) within a run. Default true.",
            "default": true
          },
          "startPage": {
            "title": "Start page",
            "minimum": 1,
            "type": "integer",
            "description": "Starting page number for paginated endpoints (default 1)."
          },
          "page": {
            "title": "Start page (alias)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `startPage`."
          },
          "maxPages": {
            "title": "Max pages per source",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of pages to fetch per search query / collection / creator (up to 500)."
          },
          "max_pages": {
            "title": "Max pages (alias)",
            "minimum": 1,
            "type": "integer",
            "description": "Alias for `maxPages`."
          },
          "secretKey": {
            "title": "Secret-key override (rarely needed)",
            "type": "string",
            "description": "The actor ships with a working built-in key. Only set this if Pexels rotates it and the actor starts returning 0 results — paste a fresh `secret-key` value here."
          },
          "proxy": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "Defaults to Apify Proxy (datacenter) for cheap IP rotation. The Pexels API needs no residential proxy.",
            "default": {
              "useApifyProxy": true
            }
          },
          "proxyConfiguration": {
            "title": "Proxy configuration (alias)",
            "type": "object",
            "description": "Alias for `proxy` — overrides the default Apify Proxy when set."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}