{
  "openapi": "3.0.1",
  "info": {
    "title": "Pexels Scraper - Free Stock Photos & Videos with Download Links",
    "description": "Scrape Pexels free stock photos and videos: searches with filters, photo and video pages, profiles, collections, similar media. Download links, video files by quality, tags, colors, size, author; optional views, downloads, likes, EXIF. Past the 480-result window. Pay per media.",
    "version": "0.1",
    "x-build-id": "WBRXg13UJKINmpt1w"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/hexagone-data~pexels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-hexagone-data-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/hexagone-data~pexels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-hexagone-data-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/hexagone-data~pexels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-hexagone-data-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": {
          "searchTerms": {
            "title": "Search words",
            "type": "array",
            "description": "Each word or phrase is one Pexels search (e.g. mountain, coffee shop, business meeting), for the media type below, with the filters below. Pexels searches by meaning: any word gives results.",
            "items": {
              "type": "string"
            }
          },
          "mediaType": {
            "title": "Media type",
            "enum": [
              "photos",
              "videos",
              "all"
            ],
            "type": "string",
            "description": "photos (default), videos, or all (one photo search AND one video search per word, each with its own results). Also chooses what is kept from a pasted profile or collection."
          },
          "startUrls": {
            "title": "Pexels URLs (optional)",
            "type": "array",
            "description": "Addresses as in your browser: a search (https://www.pexels.com/search/mountain/, /search/videos/ocean/, with the site's filters such as ?orientation=landscape&color=blue, or a language prefix such as /fr-fr/chercher/montagne/), a photo or video page (the address you get by clicking a media), a profile (/@name/) or a collection (/collections/name-id/). The address is read as the page shows it: its language, media type and filters. Home, Discover, Challenges and other pages without a media list are rejected with the reason.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "mediaIds": {
            "title": "Media ids (optional)",
            "type": "array",
            "description": "Pexels media numbers (photos or videos, e.g. 1287145, the number at the end of a media address): one record each. An id Pexels does not have is said in the Run summary (not_found), nothing charged for it.",
            "items": {
              "type": "string"
            }
          },
          "similarTo": {
            "title": "Similar to media ids (optional)",
            "type": "array",
            "description": "For each media number, the media Pexels shows as similar (More like this), every page of them.",
            "items": {
              "type": "string"
            }
          },
          "language": {
            "title": "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",
              "da-DK",
              "fi-FI",
              "uk-UA",
              "el-GR",
              "ro-RO",
              "nb-NO",
              "sk-SK",
              "tr-TR",
              "ru-RU"
            ],
            "type": "string",
            "description": "The language of titles, page addresses and of the search itself for search words and ids (default en-US). A pasted address keeps its own language prefix."
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "landscape",
              "portrait",
              "square"
            ],
            "type": "string",
            "description": "Search filter (search words only): landscape, portrait or square. Empty: all."
          },
          "color": {
            "title": "Color",
            "type": "string",
            "description": "Search filter: a 6-digit hex code (e.g. F44336 or #f44336; the site's swatches are hex codes) or a colour name (e.g. red). A name Pexels does not know is ignored silently by the site: the actor checks it and refuses the search if Pexels ignores it."
          },
          "peopleCount": {
            "title": "Number of people",
            "enum": [
              "0",
              "1",
              "2",
              "3_plus"
            ],
            "type": "string",
            "description": "Search filter: 0, 1, 2 or 3 and more people."
          },
          "peopleAge": {
            "title": "Age of people",
            "enum": [
              "baby",
              "child",
              "teenager",
              "adult",
              "senior_adult"
            ],
            "type": "string",
            "description": "Search filter: age group of the people shown."
          },
          "dateFrom": {
            "title": "Published since",
            "enum": [
              "last_24_hours",
              "last_week",
              "last_month",
              "last_year"
            ],
            "type": "string",
            "description": "Search filter: last 24 hours, week, month or year."
          },
          "minWidth": {
            "title": "Minimum width (px, photos)",
            "minimum": 0,
            "type": "integer",
            "description": "Search filter for photos: minimum width in pixels (e.g. 1920)."
          },
          "maxWidth": {
            "title": "Maximum width (px, photos)",
            "minimum": 0,
            "type": "integer",
            "description": "Search filter for photos: maximum width in pixels."
          },
          "minHeight": {
            "title": "Minimum height (px, photos)",
            "minimum": 0,
            "type": "integer",
            "description": "Search filter for photos: minimum height in pixels."
          },
          "maxHeight": {
            "title": "Maximum height (px, photos)",
            "minimum": 0,
            "type": "integer",
            "description": "Search filter for photos: maximum height in pixels."
          },
          "minDuration": {
            "title": "Minimum duration (s, videos)",
            "minimum": 0,
            "type": "integer",
            "description": "Search filter for videos: minimum duration in seconds."
          },
          "maxDuration": {
            "title": "Maximum duration (s, videos)",
            "minimum": 0,
            "type": "integer",
            "description": "Search filter for videos: maximum duration in seconds."
          },
          "frameRate": {
            "title": "Frame rate (videos)",
            "enum": [
              "24",
              "25",
              "30",
              "50",
              "60_plus"
            ],
            "type": "string",
            "description": "Search filter for videos: frames per second."
          },
          "resolution": {
            "title": "Resolution (videos)",
            "enum": [
              "1080p",
              "4K",
              "8K"
            ],
            "type": "string",
            "description": "Search filter for videos: 1080p, 4K or 8K."
          },
          "includeDetails": {
            "title": "Include details (views, downloads, likes, EXIF)",
            "type": "boolean",
            "description": "Also read, for each media: views, downloads and likes, the 15 tags shown on its page and, for photos, EXIF (camera, lens settings, date taken), location and file size. 2 to 3 more small requests per media, same price per media. Off: those fields are null and detailsStatus is not_requested.",
            "default": false
          },
          "deepSearch": {
            "title": "Go past 480 results per search",
            "type": "boolean",
            "description": "Pexels shows at most 480 results for one search. On (default): when a search reaches that window and Pexels announces more, the actor splits it with the site's own filters (orientation, then width or duration ranges) and reads each slice, without duplicates, until your Max media limit. Off: 480 at most per search, said in the Run summary.",
            "default": true
          },
          "maxItems": {
            "title": "Max media",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many media in the whole run (0 = no limit).",
            "default": 100
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "No proxy (default): the actor uses what works, measured: Pexels' API without a proxy, Apify datacenter proxy for the page that gives the site's public access key, residential US only if refused. If you choose a proxy, it is used for every request."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}