{
  "openapi": "3.0.1",
  "info": {
    "title": "Pexels Scraper - Free Stock Photos & Videos, No API Key",
    "description": "Scrape Pexels photos and videos by keyword, photographer profile, collection or link, without an API key. Get title, alt text, tags, size, average color, photographer, image URLs in 8 sizes, video files, duration, views, downloads and likes. Error rows are free.",
    "version": "0.1",
    "x-build-id": "AKr6ByC9dxX8tReW3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrapewise~pexels-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrapewise-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/scrapewise~pexels-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrapewise-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/scrapewise~pexels-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrapewise-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": "Keywords to search on Pexels, one per line, for example ocean or mountain sunset. Each term is one search.",
            "items": {
              "type": "string"
            }
          },
          "mediaType": {
            "title": "Photos or videos",
            "enum": [
              "photos",
              "videos"
            ],
            "type": "string",
            "description": "What the search terms return. Links in startUrls keep their own type (a /search/videos/ link always returns videos).",
            "default": "photos"
          },
          "startUrls": {
            "title": "Pexels links",
            "type": "array",
            "description": "Optional. Pexels links, one per line: a search (https://www.pexels.com/search/ocean/ or /search/videos/ocean/, filters in the link are kept), a photographer profile (https://www.pexels.com/@username/), a collection, or a single photo or video page.",
            "items": {
              "type": "string"
            }
          },
          "maxResultsPerSearch": {
            "title": "Results per search or link",
            "minimum": 0,
            "type": "integer",
            "description": "How many photos or videos to collect from each search term or link, in Pexels order. 0 = all of them (Pexels stops a search at 10,000 results).",
            "default": 30
          },
          "maxItems": {
            "title": "Max items in the run",
            "minimum": 0,
            "type": "integer",
            "description": "Hard cap for the whole run, across all searches and links. 0 = no cap.",
            "default": 0
          },
          "orientation": {
            "title": "Orientation",
            "enum": [
              "all",
              "landscape",
              "portrait",
              "square"
            ],
            "type": "string",
            "description": "Same filter as on the Pexels search page. Applies to the search terms.",
            "default": "all"
          },
          "size": {
            "title": "Minimum size",
            "enum": [
              "all",
              "large",
              "medium",
              "small"
            ],
            "type": "string",
            "description": "Minimum width of the original file, using the width filter of the Pexels search page.",
            "default": "all"
          },
          "color": {
            "title": "Color",
            "type": "string",
            "description": "Optional. A color name (red, orange, yellow, green, turquoise, blue, violet, pink, brown, black, gray, white) or a hex code like #2196F3. Same color filter as the Pexels search page."
          },
          "minDuration": {
            "title": "Minimum video length (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Videos only. Leave empty for any length."
          },
          "maxDuration": {
            "title": "Maximum video length (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Videos only. Pexels caps this filter at 120 seconds; leave empty for any length."
          },
          "includeDetails": {
            "title": "Views, downloads, likes and camera data",
            "type": "boolean",
            "description": "On: each row also gets the views, downloads and likes shown on its Pexels page and, for photos, the camera data (model, maker, aperture, focal length, ISO, shutter speed, date taken, file size). Opens one extra page per item, so the run takes longer. Same price per item. Single photo and video links always include them.",
            "default": false
          },
          "proxyConfiguration": {
            "title": "Proxy",
            "type": "object",
            "description": "Apify Proxy by default. If Pexels refuses the IP, the Actor moves to a residential IP on its own, at no extra price for you.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}