{
  "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": "m3jhY3fc9dK9H9ByR"
  },
  "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",
        "required": [
          "mode"
        ],
        "properties": {
          "mode": {
            "title": "Mode",
            "enum": [
              "search",
              "curated",
              "byPhotoId",
              "byCollection",
              "byUser",
              "similarPhotos"
            ],
            "type": "string",
            "description": "search = keyword search · curated = Pexels' discover feed (no query needed) · byPhotoId = look up exact photos/videos · byCollection = every item in a collection · byUser = a photographer's full portfolio · similarPhotos = photos related to the ones in Photo IDs.",
            "default": "search"
          },
          "searchQuery": {
            "title": "Search query",
            "type": "string",
            "description": "Keyword to search (mode=search). Example: `nature`, `city skyline`, `coffee`."
          },
          "mediaType": {
            "title": "Media type",
            "enum": [
              "photos",
              "videos",
              "all"
            ],
            "type": "string",
            "description": "Which kind of media to return. `all` returns both photos and videos (search mode).",
            "default": "photos"
          },
          "maxItems": {
            "title": "Max items",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum number of media records to return (each is one paid `result`). Default 30. Free-tier users are capped at 100. Note: Pexels caps a single search/portfolio query at roughly a few hundred results.",
            "default": 30
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "all",
              "landscape",
              "portrait",
              "square"
            ],
            "type": "string",
            "description": "Filter by image/video orientation.",
            "default": "all"
          },
          "peopleCount": {
            "title": "Number of people",
            "enum": [
              "all",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Filter photo search results by how many people appear (mode=search, photos). `all` = no filter.",
            "default": "all"
          },
          "minWidth": {
            "title": "Minimum width (px)",
            "type": "integer",
            "description": "Only return media at least this wide. 0 disables.",
            "default": 0
          },
          "minHeight": {
            "title": "Minimum height (px)",
            "type": "integer",
            "description": "Only return media at least this tall. 0 disables.",
            "default": 0
          },
          "minDuration": {
            "title": "Minimum video duration (s)",
            "type": "integer",
            "description": "Only return videos at least this long (videos only). 0 disables.",
            "default": 0
          },
          "maxDuration": {
            "title": "Maximum video duration (s)",
            "type": "integer",
            "description": "Only return videos at most this long (videos only). 0 disables.",
            "default": 0
          },
          "photoIds": {
            "title": "Photo / video IDs or URLs",
            "type": "array",
            "description": "Pexels media IDs or full page URLs. For mode=byPhotoId these are looked up directly; for mode=similarPhotos each is used as a seed to find related photos. Example: `27860686` or `https://www.pexels.com/photo/.../27860686/`.",
            "default": [],
            "items": {
              "type": "string"
            }
          },
          "collectionSlug": {
            "title": "Collection slug or URL",
            "type": "string",
            "description": "Pexels collection slug or full collection URL (mode=byCollection). Example: `aquatic-aesthetic-bw7dkse` or a full collection URL."
          },
          "username": {
            "title": "Photographer handle / URL",
            "type": "string",
            "description": "Photographer handle, id, or profile URL (mode=byUser). Example: `@ffc-aarman-22995634`, `22995634`, or `https://www.pexels.com/@ffc-aarman-22995634/`."
          },
          "dedupe": {
            "title": "De-duplicate",
            "type": "boolean",
            "description": "Drop duplicate media (same type + id). Default true.",
            "default": true
          },
          "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
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}