{
  "openapi": "3.0.1",
  "info": {
    "title": "Pexels Scraper - Photos, Videos, Stats & Creators",
    "description": "Scrape Pexels photos and videos by search, link, id, creator or collection: every image size and video file, tags, colors, creator, views, downloads, likes, camera EXIF. Creator rows add-on, monitor mode. No API key, no login. $0.90 per 1,000.",
    "version": "0.1",
    "x-build-id": "bypicsme0U8VEIUod"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/topapi~pexels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-topapi-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/topapi~pexels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-topapi-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/topapi~pexels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-topapi-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": {
          "searchQueries": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "Words to search Pexels for, one per line, as typed in the Pexels search bar, e.g. \"coffee\", \"mountain lake\", \"remote work\". Each term is its own search (24 results a page, up to about 500 per search).",
            "items": {
              "type": "string"
            }
          },
          "startUrls": {
            "title": "🔗 Pexels links",
            "type": "array",
            "description": "Any Pexels link: a search page with its filters (https://www.pexels.com/search/coffee/?orientation=landscape), a video search (/search/videos/ocean/), a photo or video page, a creator profile (/@username/), a collection (/collections/name-id/) or an images.pexels.com file link.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "mediaIds": {
            "title": "🔢 Photo or video IDs",
            "type": "array",
            "description": "Pexels photo or video ids (the number at the end of a Pexels link), one per line, e.g. 27860686. Read 24 at a time.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "👤 Creators",
            "type": "array",
            "description": "Creator handles or profile links, one per line, e.g. \"ekaterina-bolovtsova\" or https://www.pexels.com/@ekaterina-bolovtsova/. Returns that creator's uploads.",
            "items": {
              "type": "string"
            }
          },
          "collections": {
            "title": "📁 Collections",
            "type": "array",
            "description": "Collection links, slugs or ids, one per line, e.g. https://www.pexels.com/collections/aquatic-aesthetic-bw7dkse/ or bw7dkse. Every item of the collection is read.",
            "items": {
              "type": "string"
            }
          },
          "similarTo": {
            "title": "🧩 Similar to",
            "type": "array",
            "description": "Photo or video ids or links; returns the media Pexels shows as similar to each one (\"More like this\").",
            "items": {
              "type": "string"
            }
          },
          "curated": {
            "title": "⭐ Curated feed",
            "type": "boolean",
            "description": "Also read Pexels' curated discover feed (the home page feed), newest first.",
            "default": false
          },
          "mediaType": {
            "title": "🎞️ Media type",
            "enum": [
              "photos",
              "videos",
              "all"
            ],
            "type": "string",
            "description": "Photos, videos or both. Applies to search terms, creators, collections, similar media and the curated feed. \"All\" runs each search twice (photos, then videos).",
            "default": "photos"
          },
          "maxItems": {
            "title": "Max photos and videos",
            "minimum": 1,
            "type": "integer",
            "description": "Stop the run after this many photos and videos in total (each is one charged row). Creator rows do not count here.",
            "default": 100
          },
          "maxResultsPerSearch": {
            "title": "Max per search or link",
            "minimum": 1,
            "type": "integer",
            "description": "Stop each search term, link, creator or collection after this many rows. Empty = no limit per input. In monitor mode, the window checked each run."
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "all",
              "landscape",
              "portrait",
              "square"
            ],
            "type": "string",
            "description": "Pexels' orientation filter. Applies to search terms.",
            "default": "all"
          },
          "size": {
            "title": "Minimum size",
            "enum": [
              "all",
              "large",
              "medium",
              "small"
            ],
            "type": "string",
            "description": "Large = 24 MP photos or 4K video, medium = 12 MP or Full HD, small = 4 MP or HD.",
            "default": "all"
          },
          "color": {
            "title": "Color (photos)",
            "type": "string",
            "description": "A color name (red, pink, violet, indigo, blue, turquoise, teal, green, lime, yellow, orange, brown, gray, black, white) or a hex code such as #2196F3."
          },
          "peopleCount": {
            "title": "Number of people",
            "enum": [
              "all",
              "0",
              "1",
              "2",
              "3_plus"
            ],
            "type": "string",
            "description": "How many people appear in the photo or video.",
            "default": "all"
          },
          "peopleAge": {
            "title": "Age of people",
            "enum": [
              "all",
              "baby",
              "child",
              "teenager",
              "adult",
              "senior_adult"
            ],
            "type": "string",
            "description": "Age group of the people shown.",
            "default": "all"
          },
          "uploadedWithin": {
            "title": "Uploaded within",
            "enum": [
              "all",
              "last_24_hours",
              "last_week",
              "last_month",
              "last_year"
            ],
            "type": "string",
            "description": "Only media uploaded in this window (Pexels' upload-date filter).",
            "default": "all"
          },
          "minWidth": {
            "title": "Min width (px, photos)",
            "minimum": 1,
            "type": "integer",
            "description": "Only photos at least this wide, e.g. 3840."
          },
          "maxWidth": {
            "title": "Max width (px, photos)",
            "minimum": 1,
            "type": "integer",
            "description": "Only photos at most this wide."
          },
          "minHeight": {
            "title": "Min height (px, photos)",
            "minimum": 1,
            "type": "integer",
            "description": "Only photos at least this tall."
          },
          "maxHeight": {
            "title": "Max height (px, photos)",
            "minimum": 1,
            "type": "integer",
            "description": "Only photos at most this tall."
          },
          "minDuration": {
            "title": "Min duration (s, videos)",
            "minimum": 1,
            "type": "integer",
            "description": "Only videos at least this long, in seconds (Pexels' filter works from 5 to 120)."
          },
          "maxDuration": {
            "title": "Max duration (s, videos)",
            "minimum": 1,
            "type": "integer",
            "description": "Only videos at most this long, in seconds."
          },
          "frameRate": {
            "title": "Frame rate (videos)",
            "enum": [
              "all",
              "24",
              "25",
              "30",
              "50",
              "60_plus"
            ],
            "type": "string",
            "description": "Only videos at this frame rate.",
            "default": "all"
          },
          "resolution": {
            "title": "Resolution (videos)",
            "enum": [
              "all",
              "1080p",
              "4K",
              "8K"
            ],
            "type": "string",
            "description": "Only videos available in this resolution.",
            "default": "all"
          },
          "locale": {
            "title": "Search language",
            "enum": [
              "en-US",
              "pt-BR",
              "es-ES",
              "ca-ES",
              "de-DE",
              "it-IT",
              "fr-FR",
              "sv-SE",
              "id-ID",
              "pl-PL",
              "ja-JP",
              "zh-TW",
              "zh-CN",
              "ko-KR",
              "th-TH",
              "nl-NL",
              "hu-HU",
              "vi-VN",
              "cs-CZ",
              "tr-TR",
              "da-DK",
              "fi-FI",
              "ro-RO",
              "nb-NO",
              "el-GR",
              "ru-RU",
              "uk-UA"
            ],
            "type": "string",
            "description": "The Pexels language the search terms are read in (e.g. de-DE for \"kaffee\").",
            "default": "en-US"
          },
          "creatorSort": {
            "title": "Creator uploads order",
            "enum": [
              "recent",
              "popular"
            ],
            "type": "string",
            "description": "For creators: their newest uploads first, or their most popular.",
            "default": "recent"
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Keep only media Pexels published on or after this date (checked before any charge), e.g. 2026-10-01."
          },
          "dedupe": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "One row per photo or video across all inputs. Off = a photo found by two inputs is one row per input.",
            "default": true
          },
          "includeDetails": {
            "title": "Views, downloads, likes and camera data",
            "type": "boolean",
            "description": "Adds views, downloads and likes, and for photos the camera, lens settings (aperture, focal length, ISO, shutter speed), file size, place and content-safety ratings. Same price per row.",
            "default": true
          },
          "includeCreators": {
            "title": "Creator rows (add-on)",
            "type": "boolean",
            "description": "Adds one row per creator found: profile, bio, location, Instagram, Twitter, YouTube, TikTok, website, followers, all-time views, downloads and likes, number of photos and videos, first and last upload. Charged per creator row.",
            "default": false
          },
          "monitorMode": {
            "title": "Only new media (monitor)",
            "type": "boolean",
            "description": "Return only photos and videos not delivered in an earlier monitor run. Run it on a schedule to collect new uploads for a search, creator or collection.",
            "default": false
          },
          "monitorStoreName": {
            "title": "Monitor memory name",
            "type": "string",
            "description": "The named storage that remembers what was already delivered. Use one name per watch list.",
            "default": "pexels-monitor"
          },
          "resetMonitor": {
            "title": "Forget earlier runs",
            "type": "boolean",
            "description": "Start the monitor memory from scratch in this run.",
            "default": false
          },
          "apiKey": {
            "title": "Pexels API key (optional)",
            "type": "string",
            "description": "Your own free Pexels API key (pexels.com/api). Not needed: it is used only if Pexels refuses the website route, for searches, ids, collections and the curated feed (fewer fields: no tags, stats or camera data)."
          },
          "webClientId": {
            "title": "Web client id (rarely needed)",
            "type": "string",
            "description": "The actor reads Pexels with the public client id Pexels' own page uses, and re-reads it if Pexels changes it. Only set this if runs stop returning rows."
          },
          "maxConcurrency": {
            "title": "Parallel requests",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "How many Pexels requests run at once.",
            "default": 8
          },
          "proxyConfiguration": {
            "title": "Proxy configuration",
            "type": "object",
            "description": "The actor reads Pexels from Apify's own network first and moves to an Apify datacenter, then a residential proxy, only if Pexels refuses it. Switch Apify Proxy off to never use a proxy, or give your own proxy URLs.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}