{
  "openapi": "3.0.1",
  "info": {
    "title": "Pexels & Unsplash Free Stock Photos & Videos",
    "description": "Search free stock photos and videos on Pexels and Unsplash in one run. One table with author, size, tags, likes, downloads, license and file links. No login or API key needed.",
    "version": "0.1",
    "x-build-id": "OIniOyigN15RmCOyt"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~stock-photos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-stock-photos-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/cliqtomedia~stock-photos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-stock-photos-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/cliqtomedia~stock-photos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-stock-photos-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 queries",
            "maxItems": 500,
            "type": "array",
            "description": "Keywords to search on Pexels and Unsplash, one per line, e.g. mountains or ocean sunset. Each query runs on every selected source.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "What to collect",
            "enum": [
              "search",
              "curated",
              "byIds",
              "similar",
              "byCollection",
              "byUser",
              "byTopic"
            ],
            "type": "string",
            "description": "Leave on Search for keyword search. Other modes read the matching list below. Links in Start URLs are always collected, whatever the mode.",
            "default": "search"
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Pexels, Unsplash or both (default both). Unsplash has photos only.",
            "items": {
              "type": "string",
              "enum": [
                "pexels",
                "unsplash"
              ],
              "enumTitles": [
                "Pexels",
                "Unsplash"
              ]
            },
            "default": [
              "pexels",
              "unsplash"
            ]
          },
          "mediaType": {
            "title": "Media type",
            "enum": [
              "photos",
              "videos",
              "all"
            ],
            "type": "string",
            "description": "Videos come from Pexels only.",
            "default": "photos"
          },
          "startUrls": {
            "title": "Pexels or Unsplash links",
            "maxItems": 500,
            "type": "array",
            "description": "Any pexels.com or unsplash.com page: a photo, video, search, collection, photographer or topic page. The Actor reads only the id from the link.",
            "items": {
              "type": "string"
            }
          },
          "mediaIds": {
            "title": "Photo / video IDs or links",
            "maxItems": 500,
            "type": "array",
            "description": "For modes By ID and Similar. Digits = Pexels id (33999682), other ids = Unsplash (Bkci_8qcdvQ), or full links.",
            "items": {
              "type": "string"
            }
          },
          "collections": {
            "title": "Collections",
            "maxItems": 500,
            "type": "array",
            "description": "For mode Collections: collection links or ids. Add pexels: or unsplash: before a bare id, e.g. unsplash:317099.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Photographers",
            "maxItems": 500,
            "type": "array",
            "description": "For mode Photographers: profile links or usernames. Add pexels: or unsplash: before a bare username, e.g. unsplash:kalenemsley.",
            "items": {
              "type": "string"
            }
          },
          "topics": {
            "title": "Unsplash topics",
            "maxItems": 500,
            "type": "array",
            "description": "For mode Topics: topic slugs or links, e.g. nature, wallpapers, travel.",
            "items": {
              "type": "string"
            }
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "any",
              "landscape",
              "portrait",
              "square"
            ],
            "type": "string",
            "description": "Both sources filter by orientation.",
            "default": "any"
          },
          "color": {
            "title": "Color",
            "type": "string",
            "description": "A color name (black_and_white, black, white, yellow, orange, red, purple, magenta, green, teal, blue) or a hex color like ff0000 (hex works on Pexels only). Leave empty for any color."
          },
          "size": {
            "title": "Size (Pexels)",
            "enum": [
              "any",
              "large",
              "medium",
              "small"
            ],
            "type": "string",
            "description": "Pexels size filter. For both sources use minimum width/height below.",
            "default": "any"
          },
          "peopleCount": {
            "title": "People in photo (Pexels)",
            "enum": [
              "any",
              "0",
              "1",
              "2"
            ],
            "type": "string",
            "description": "Pexels search only.",
            "default": "any"
          },
          "peopleAge": {
            "title": "People age (Pexels)",
            "enum": [
              "any",
              "baby",
              "child",
              "teenager",
              "adult"
            ],
            "type": "string",
            "description": "Pexels search only.",
            "default": "any"
          },
          "minWidth": {
            "title": "Minimum width (px)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Skip items narrower than this. 0 = no limit."
          },
          "minHeight": {
            "title": "Minimum height (px)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "Skip items lower than this. 0 = no limit."
          },
          "maxWidth": {
            "title": "Maximum width (px)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "0 = no limit."
          },
          "maxHeight": {
            "title": "Maximum height (px)",
            "minimum": 0,
            "maximum": 100000,
            "type": "integer",
            "description": "0 = no limit."
          },
          "minDuration": {
            "title": "Minimum video length (s)",
            "minimum": 0,
            "maximum": 86400,
            "type": "integer",
            "description": "Videos only. 0 = no limit."
          },
          "maxDuration": {
            "title": "Maximum video length (s)",
            "minimum": 0,
            "maximum": 86400,
            "type": "integer",
            "description": "Videos only. 0 = no limit."
          },
          "minFps": {
            "title": "Minimum video fps",
            "minimum": 0,
            "maximum": 240,
            "type": "integer",
            "description": "Videos only, e.g. 50 for smooth slow motion. 0 = no limit."
          },
          "orderBy": {
            "title": "Order (Unsplash)",
            "enum": [
              "relevant",
              "latest"
            ],
            "type": "string",
            "description": "Unsplash search order. Pexels always sorts by relevance.",
            "default": "relevant"
          },
          "includePremium": {
            "title": "Include Unsplash+ (paid) photos",
            "type": "boolean",
            "description": "Off by default: only free photos. When on, Unsplash+ photos are listed with isPremium true, license Unsplash+ and no download link.",
            "default": false
          },
          "contentFilter": {
            "title": "Safe search (Unsplash)",
            "enum": [
              "low",
              "high"
            ],
            "type": "string",
            "description": "Unsplash content filter.",
            "default": "low"
          },
          "locale": {
            "title": "Search language (Pexels)",
            "pattern": "^[a-z]{2}-[A-Za-z]{2}$",
            "type": "string",
            "description": "Language of your queries for Pexels, e.g. de-DE, es-ES, ja-JP. Default en-US.",
            "default": "en-US"
          },
          "maxItems": {
            "title": "Max results",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Total photos and videos to save in this run. Each saved item is charged. Default 100.",
            "default": 100
          },
          "maxItemsPerQuery": {
            "title": "Max results per query",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Limit for each query, link or user (per source). 0 = share Max results evenly.",
            "default": 0
          },
          "includeDetails": {
            "title": "Add tags, stats and camera data",
            "type": "boolean",
            "description": "Adds tags, likes, downloads, views, camera and EXIF, location with one extra request per item. Turn off for faster runs with basic fields.",
            "default": true
          },
          "dedupe": {
            "title": "Remove duplicates",
            "type": "boolean",
            "description": "Save each photo or video once even if several queries find it.",
            "default": true
          },
          "onlyNew": {
            "title": "Only new items",
            "type": "boolean",
            "description": "Skip items saved by earlier runs with the same state name. Use with a schedule to get only new photos for a query.",
            "default": false
          },
          "stateName": {
            "title": "State name",
            "pattern": "^[A-Za-z0-9-]{1,40}$",
            "type": "string",
            "description": "Name of the memory for Only new items. Use different names for different watch lists.",
            "default": "default"
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Not needed. By default the Actor goes direct and switches to Apify proxy only if a site blocks it."
          },
          "pexelsApiKey": {
            "title": "Your Pexels API key (optional)",
            "type": "string",
            "description": "Not needed. With your free key from pexels.com/api, search, curated and collections use the official Pexels API (full curated feed)."
          },
          "unsplashAccessKey": {
            "title": "Your Unsplash access key (optional)",
            "type": "string",
            "description": "Not needed. With your Unsplash developer access key, requests use the official Unsplash API (50 requests per hour on a demo key)."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}