{
  "openapi": "3.0.1",
  "info": {
    "title": "Bing Videos Scraper",
    "description": "Bing Videos Scraper scrapes Bing Videos search results in bulk: title, link, length, views, channel, platform, date, thumbnail and embed link, with Bing filters, market, safe search, sort and URL mode. Export JSON, CSV or Excel, or use the API.",
    "version": "0.1",
    "x-build-id": "Wyk3EVJfKZcBV4Mle"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/fastdataapi~bing-videos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-fastdataapi-bing-videos-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/fastdataapi~bing-videos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-fastdataapi-bing-videos-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/fastdataapi~bing-videos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-fastdataapi-bing-videos-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": {
          "queries": {
            "title": "🔎 Search terms",
            "type": "array",
            "description": "Keywords to search on Bing Videos, one per line (e.g. \"machine learning tutorial\"). Each term is searched on its own and every row carries the term it came from. Used in Search mode.",
            "items": {
              "type": "string"
            }
          },
          "mode": {
            "title": "🔧 Mode",
            "enum": [
              "search",
              "url"
            ],
            "type": "string",
            "description": "Search = search the terms above. URL = scrape the Bing video search URLs below exactly as they are (their own filters are kept).",
            "default": "search"
          },
          "startUrls": {
            "title": "🔗 Bing video search URLs",
            "type": "array",
            "description": "Bing video search result pages, e.g. https://www.bing.com/videos/search?q=cats. Used in URL mode. Filters in the URL are kept; the Bing filters below are added only when the URL has none of its own, and the result filters always apply.",
            "items": {
              "type": "object",
              "required": [
                "url"
              ],
              "properties": {
                "url": {
                  "type": "string",
                  "title": "URL of a web page",
                  "format": "uri"
                }
              }
            }
          },
          "maxItems": {
            "title": "🔢 Max videos per search",
            "minimum": 1,
            "type": "integer",
            "description": "Maximum videos for each search term or URL. A search ends earlier when Bing has no more videos for it (usually after about 100 to 190). Free plan: up to 20 videos per run (all searches together) and 200 per month; paid plans have no limit.",
            "default": 10
          },
          "maxTotalItems": {
            "title": "🔢 Max videos in total",
            "minimum": 1,
            "type": "integer",
            "description": "Optional cap on the number of videos for the whole run, over all searches together. Empty = no cap."
          },
          "market": {
            "title": "🌍 Market",
            "pattern": "^[a-z]{2}-[A-Za-z]{2}$",
            "type": "string",
            "description": "Bing market as language-COUNTRY, e.g. en-US, en-GB, de-DE, fr-FR, ja-JP. Sets the language and country of the results.",
            "default": "en-US"
          },
          "safeSearch": {
            "title": "🎯 Safe search",
            "enum": [
              "moderate",
              "strict",
              "off"
            ],
            "type": "string",
            "description": "Bing safe search level for adult content.",
            "default": "moderate"
          },
          "sortBy": {
            "title": "🔃 Sort by",
            "enum": [
              "relevance",
              "views_desc",
              "newest",
              "duration_asc",
              "duration_desc"
            ],
            "type": "string",
            "description": "Order of the videos within each search. Relevance keeps Bing's order and saves videos page by page; the other orders sort each search's videos once all of them are collected.",
            "default": "relevance"
          },
          "duration": {
            "title": "🎯 Length",
            "enum": [
              "short",
              "medium",
              "long"
            ],
            "type": "string",
            "description": "Only videos of this length: short (under 5 minutes), medium (5 to 20 minutes) or long (over 20 minutes)."
          },
          "date": {
            "title": "📅 Date",
            "enum": [
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Only videos published within the past day, week, month or year."
          },
          "quality": {
            "title": "🎯 Resolution",
            "enum": [
              "low",
              "360",
              "480",
              "720",
              "1080"
            ],
            "type": "string",
            "description": "Only videos of this resolution: lower than 360p, or 360p, 480p, 720p or 1080p."
          },
          "price": {
            "title": "🎯 Price",
            "enum": [
              "free",
              "paid"
            ],
            "type": "string",
            "description": "Only free or only paid videos."
          },
          "source": {
            "title": "🎯 Source site",
            "type": "string",
            "description": "Only videos hosted on this site, e.g. youtube.com or dailymotion.com."
          },
          "platforms": {
            "title": "🎯 Platforms",
            "type": "array",
            "description": "Keep only videos from these platforms, by name or domain (e.g. YouTube, Dailymotion, vimeo.com). Empty = all platforms.",
            "items": {
              "type": "string"
            }
          },
          "minDurationSeconds": {
            "title": "🎯 Min length (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos at least this many seconds long. Videos without a length (e.g. live streams) are left out."
          },
          "maxDurationSeconds": {
            "title": "🎯 Max length (seconds)",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos at most this many seconds long. Videos without a length (e.g. live streams) are left out."
          },
          "minViewCount": {
            "title": "🎯 Min views",
            "minimum": 0,
            "type": "integer",
            "description": "Keep only videos with at least this many views. Videos without a view count are left out."
          },
          "includeShorts": {
            "title": "✅ Include Shorts",
            "type": "boolean",
            "description": "Keep short videos (a Shorts link, or 60 seconds or less). Turn off to leave them out.",
            "default": true
          },
          "includeLive": {
            "title": "✅ Include live streams",
            "type": "boolean",
            "description": "Keep live streams (videos shown without a length). Turn off to leave them out.",
            "default": true
          },
          "transformFields": {
            "title": "📦 Fields to keep",
            "type": "array",
            "description": "Keep only these fields in every row, e.g. title, external, viewCount. Empty = all fields.",
            "items": {
              "type": "string"
            }
          },
          "noStrip": {
            "title": "✅ Keep empty fields",
            "type": "boolean",
            "description": "Keep fields that have no value (as null). Off = fields without a value are left out of the row.",
            "default": false
          },
          "maxRetries": {
            "title": "🔁 Retries",
            "minimum": 0,
            "maximum": 10,
            "type": "integer",
            "description": "How many times a failed page is retried before that search stops.",
            "default": 3
          },
          "proxyConfiguration": {
            "title": "🌐 Proxy configuration",
            "type": "object",
            "description": "Proxy to start with. Leave off to start without a proxy; the actor still switches to a proxy when it is blocked."
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}