{
  "openapi": "3.0.1",
  "info": {
    "title": "Google Videos Scraper — Tiles, Duration, Source",
    "description": "Scrape Google Videos (udm=7 vertical) at scale: up to 10 tiles per page with title, link (YouTube / Vimeo / TikTok / etc.), displayed_link, snippet, thumbnail, inline preview image, favicon, duration, channel, source platform, upload date, video_id, and the raw extensions chip list.",
    "version": "1.0",
    "x-build-id": "7FxMQwOxiR23qTOIM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/scrape.badger~google-videos-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-scrape.badger-google-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/scrape.badger~google-videos-scraper/runs": {
      "post": {
        "operationId": "runs-sync-scrape.badger-google-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/scrape.badger~google-videos-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-scrape.badger-google-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",
        "required": [
          "q"
        ],
        "properties": {
          "q": {
            "title": "Search query",
            "type": "string",
            "description": "Video search terms. Example: <b>python tutorial</b>, <b>how to bake sourdough</b>, <b>product review iphone</b>."
          },
          "gl": {
            "title": "Country",
            "type": "string",
            "description": "ISO 3166-1 alpha-2 country code (lowercase). Controls which country's video results are returned. Example: <b>us</b>, <b>gb</b>, <b>de</b>.",
            "default": "us"
          },
          "hl": {
            "title": "Language",
            "type": "string",
            "description": "ISO 639-1 language code. Example: <b>en</b>, <b>es</b>, <b>de</b>.",
            "default": "en"
          },
          "domain": {
            "title": "Google domain",
            "type": "string",
            "description": "Google domain to hit. Example: <b>google.com</b>, <b>google.co.uk</b>, <b>google.de</b>.",
            "default": "google.com"
          },
          "max_pages": {
            "title": "Max pages",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many pages to fetch. Each page is a separate API call (costs 1 credit) and returns ~10 video tiles.",
            "default": 3
          },
          "location": {
            "title": "City location",
            "type": "string",
            "description": "City-level geo-targeting. Example: <b>New York, NY</b>. Optional — overrides gl for fine-grained targeting."
          },
          "safe": {
            "title": "Safe search",
            "enum": [
              "off",
              "active"
            ],
            "type": "string",
            "description": "Safe-search filter level.",
            "default": "off"
          },
          "duration": {
            "title": "Duration",
            "enum": [
              "short",
              "medium",
              "long"
            ],
            "type": "string",
            "description": "Duration filter (translated into Google's <b>tbs=dur:*</b> chip). <b>short</b> (&lt; 4 min), <b>medium</b> (4-20 min), <b>long</b> (&gt; 20 min). Leave blank for any."
          },
          "date": {
            "title": "Upload date",
            "enum": [
              "hour",
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string",
            "description": "Upload-date filter (translated into Google's <b>tbs=qdr:*</b> chip). <b>hour</b>, <b>day</b>, <b>week</b>, <b>month</b>, <b>year</b>. Leave blank for anytime."
          },
          "quality": {
            "title": "Video quality",
            "enum": [
              "hd"
            ],
            "type": "string",
            "description": "Quality filter (translated into Google's <b>tbs=hd:*</b> chip). <b>hd</b> = high-definition only."
          },
          "tbs": {
            "title": "Raw tbs filter",
            "type": "string",
            "description": "Google's internal <b>tbs</b> filter string. Example: <b>dur:s,qdr:w</b> (short videos, past week). If set, overrides the <b>duration</b>, <b>date</b>, and <b>quality</b> dropdowns above."
          },
          "lr": {
            "title": "Language restrict",
            "type": "string",
            "description": "Restrict results to a specific language. Example: <b>lang_en</b>. Optional."
          },
          "uule": {
            "title": "UULE location token",
            "type": "string",
            "description": "Pre-encoded Google UULE location token for precise geo-targeting. Overrides <b>location</b> if set. Advanced — leave blank unless you already have one."
          },
          "nfpr": {
            "title": "Disable autocorrect",
            "type": "boolean",
            "description": "When true, Google will not auto-correct the query (\"Did you mean…?\").",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}