mcpField
G
Google Videos (via Apify)

Google Videos (via Apify)

远程服务
apify.com搜索与检索03 周前更新

关于 Google Videos (via Apify)

Google Videos Scraper 是面向开发者和 AI Agent 的 Apify Actor,可检索 Google 视频搜索结果,覆盖 YouTube、TikTok、Vimeo 等平台。结果包含频道和时长等信息,并支持按时间和时长筛选及定期监控新结果。

主要功能

  1. 01跨多个平台获取视频结果
  2. 02标题、频道、时长和发布日期
  3. 03按时长和时间筛选
  4. 04选择国家和语言
  5. 05定期监控新结果

适用场景

  1. 01跨平台查找主题相关视频
  2. 02按发布时间或视频长度筛选
  3. 03监控品牌相关的新视频
  4. 04向 AI Agent 提供视频搜索结果

MCP 相关

通过 Apify 托管的 MCP 服务提供,MCP 客户端可运行 Google Videos Scraper Actor。

配置

远程服务无需本地安装。选择你使用的客户端,复制配置或使用一键安装。

服务地址https://mcp.apify.com/?tools=automationnation/google-videos-scraper
一键复制安装命令
Claude CodeTerminal
Cursor.cursor/mcp.json
VS Code.vscode/mcp.json
Claude Desktopclaude_desktop_config.json
Windsurf~/.codeium/windsurf/mcp_config.json

命令在终端中运行;JSON 粘贴到对应客户端的 MCP 配置后重启。需要授权的服务会在首次连接时提示登录。

全部服务地址
Streamable HTTPhttps://mcp.apify.com/?tools=automationnation/google-videos-scraper需要授权

工具

详细介绍

Google Videos Scraper 与 API:YouTube 和视频搜索结果

在 Apify 上运行

Google Videos Scraper 是一个 Apify Actor,可返回 Google 对任意搜索的搜索结果中的视频,涵盖 YouTube、TikTok、Vimeo、Facebook 和新闻网站:标题、URL、平台、频道、时长、发布日期、摘要和缩略图,并支持按时长和时间筛选,价格为每 1,000 个视频 1 美元。

**价格:**每 1,000 个视频 1 美元(Gold 及以上为 0.80 美元) · 运行:https://apify.com/automationnation/google-videos-scraper · 指南:https://retracn.github.io/automationnation-actors/google-videos-scraper/

快速了解

  • 每个视频占一行:标题、URL、平台、频道、时长(以及秒数)、上传日期、摘要、YouTube ID 和缩略图。
  • 筛选条件:时长(少于 4 分钟、4–20 分钟、超过 20 分钟)和时间。
  • 支持任意国家和语言,每次搜索最多可获取 300 个视频。
  • 监控:启用 Only new results 后,计划运行只会返回之前运行中未出现的视频,便于针对任何主题或品牌设置新视频提醒。
  • 价格:每 1,000 个视频 1 美元。

示例输入

{
  "queries": [
    "how to make sourdough bread"
  ],
  "maxResultsPerQuery": 30
}

从代码运行

REST API

curl -X POST "https://api.apify.com/v2/acts/automationnation~google-videos-scraper/run-sync-get-dataset-items?token=$APIFY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"queries": ["how to make sourdough bread"], "maxResultsPerQuery": 30}'

Python — 参见 examples/python_example.py

# pip install apify-client
from apify_client import ApifyClient

client = ApifyClient("YOUR_APIFY_TOKEN")
run = client.actor("automationnation/google-videos-scraper").call(run_input={
  "queries": [
    "how to make sourdough bread"
  ],
  "maxResultsPerQuery": 30
})
for item in client.dataset(run["defaultDatasetId"]).iterate_items():
    print(item.get("title"), item.get("channel"), item.get("duration"), item.get("url"))

JavaScript — 参见 examples/node_example.mjs

// npm install apify-client
import { ApifyClient } from 'apify-client';

const client = new ApifyClient({ token: 'YOUR_APIFY_TOKEN' });
const run = await client.actor('automationnation/google-videos-scraper').call({
  "queries": [
    "how to make sourdough bread"
  ],
  "maxResultsPerQuery": 30
});
const { items } = await client.dataset(run.defaultDatasetId).listItems();
for (const item of items) console.log(item.title, item.channel, item.duration, item.url);

与 AI Agent 配合使用(MCP)

托管的 MCP 服务 URL(适用于 Claude、ChatGPT、Cursor 以及其他支持远程 MCP 的客户端):

https://mcp.apify.com?tools=automationnation/google-videos-scraper

Claude Desktop / Cursor 的本地配置 — mcp/claude_desktop_config.json:

{
  "mcpServers": {
    "google-videos-scraper": {
      "command": "npx",
      "args": [
        "-y",
        "@apify/actors-mcp-server",
        "--tools",
        "automationnation/google-videos-scraper"
      ],
      "env": {
        "APIFY_TOKEN": "YOUR_APIFY_TOKEN"
      }
    }
  }
}

常见问题

它只支持 YouTube 吗? 不支持。Google 的 Videos 标签页涵盖 YouTube、TikTok、Facebook、Vimeo、新闻网站等。

我可以获取文字稿吗? 可以,将 YouTube URL 发送给 YouTube Transcript Scraper。

更多来自 AutomationNation 的内容


此代码仓库包含用法示例。爬虫本身运行于 Apify 平台;你需要一个免费的 Apify 账户和 API 令牌。示例采用 MIT 许可证。

评论

支持 Markdown

第一次接触 MCP?

从协议是什么,到在客户端里装上第一个服务,这几条回答覆盖了大多数入门问题。

一个开放协议,规定了 AI 应用如何以统一方式连接外部工具与数据源。客户端负责与模型对话,MCP 服务负责提供工具、资源和提示模板,两者通过标准消息通信,同一个服务可以被不同客户端复用。