# Bright Data YouTube 数据的替代方案

将 FlashData YouTube 请求与 Bright Data 抓取记录进行比较：付费率、每月额度、工作限制以及从快照到已保存工作的 Python/Bash 迁移。

围绕源请求建立视频研究。比较整个任务，然后将快照工作流程移动到已保存的可恢复作业。

本页比较 YouTube 服务。Google 搜索请参阅独立的 [Bright Data 替代方案](https://flashdata.dev/zh/compare/brightdata/reference.md)页面。

Bright Data 信息核查日期：2026-11-10。FlashData 费率和额度来自当前公开目录。

- [功能对比](#features)
- [定价](#pricing)
- [配额和限制](#limits)
- [迁移工作](#migration)
- [智能体工作流程](#agents)
- [常见问题解答](#faq)

<a id="features"></a>
## 功能逐项对比

### 降低集中视频查找的付费成本

| 功能 | FlashData | Bright Data YouTube |
| --- | --- | --- |
| 付费元数据查找 · 1,000 视频 | $0.50 — 1,000 源请求 · PAYG | $1.50 — 1,000已发送视频记录·PAYG |
| 元数据 + 现有字幕 · 1,000 视频 | $1.00 — 2,000 源请求 · PAYG | $1.50 — 1,000 包含字幕字段时的视频记录 |
| 入门月计划 | 每月 $49.00 — Micro；含共享使用余额 | $499 — Scale 月付套餐 · 含 384,000 条记录 |
| 即用即付，无需按月订阅 | 是 | 是 |

### 查找视频并建立研究库

| 功能 | FlashData | Bright Data YouTube |
| --- | --- | --- |
| 通过关键字发现视频 | 是 — 使用日期、持续时间、类型和排序过滤器进行搜索 | 是 — 关键字和搜索过滤器发现模式 |
| 已知视频的元数据 | 是 — 标题、频道、持续时间、缩略图和参与计数 | 是 — 包含身份、频道和参与字段的视频记录 |
| 用于导航的章节标记 | 是 — include_chapters；章节时间（以秒为单位） | 是 — 章节标题、预览和开始时间（以毫秒为单位） |
| 发现可用的字幕语言 | 元数据中的语言列表 | 视频记录中的曲目列表 — 包括语言和自动字幕信息 |

### 使标题可用作证据

| 功能 | FlashData | Bright Data YouTube |
| --- | --- | --- |
| 请求字幕而不刷新元数据 | 专用转录源 — 每个视频一个标准请求 | 视频记录中的字幕字段 — YouTube 视频数据抓取器 |
| 请求多种字幕语言 | 最多 10 显式语言 — 曲目以及每种语言的错误 | 一种选定的语言 — 选择采集录像时的语言 |
| 选择上传者或自动字幕来源 | 是 — params.auto 选择一个源而不进行跨源回退 | 曲目元数据中显示的来源 — 没有为已审核的视频抓取工具列出来源选择输入 |
| 全文和带时间戳的引文 | 全文+定时片段 — 开始和结束时间，单位为秒 | 全文+定时片段 — 分段开始、结束和持续时间（以毫秒为单位） |

### 在您的应用程序或智能体中运行收集

| 功能 | FlashData | Bright Data YouTube |
| --- | --- | --- |
| 互动和背景集合 | 实时或async — 选择模式；保存作业ID用于后台工作 | 同步抓取或async触发 — 超过一分钟的同步工作将继续作为快照 |
| 处理大量准备好的清单 | Bulk Jobs 带有视频-ID 文件 — 控制台或API；进度、清单和结果部分 | 异步输入批次 — 触发集合并检索或交付其快照 |
| 申请和法学硕士的输出 | JSON，纯文本或Markdown | 快照导出格式 — JSON、NDJSON 和 CSV |
| 保留 completed 结果供以后分析 | 保存结果或使用大容量存储 — 将原始数据和清单保存在您自己的存储中 | 快照和存储交付 — 快照保留30天 |
| 独立终端客户端 | 原生CLI — Linux、macOS 和 Windows；无 Node/Python 运行时 | Node.js CLI — npm 安装的 bdata 命令 |
| MCP、技能和SDK访问权限 | 是 | 是 |

付费费率不包括免费额度。两者都提供 async 工作岗位、批量收集和智能体工具。在需要时保留评论收集、其他社交平台、托管数据集和现有的存储交付集成。

### 为您的任务所需的字段付费

获取您的候选名单的元数据。仅请求您要分析的视频的字幕。元数据刷新不需要重复转录步骤。

### 明确选择字幕轨道

请求语言并选择上传者提供的或 YouTube 生成的字幕。保持语言错误可见，而不是默默地改变研究输入。

### 在智能体会话之间保留作业

在投票前保存已接受的作业ID。稍后的进程将恢复相同的作业并重用下载的结果，而无需提交另一个查询。

<a id="pricing"></a>
## 比较完整的视频任务

Bright Data的视频记录可以包含元数据和字幕。 FlashData 使用一个元数据请求和一个单独的字幕请求。一个发现输入可能会返回许多计费记录；该计算器仅涵盖已知视频查找。

| Bright Data YouTube 优惠 | 月费 | 包含的记录 | 付费率/1,000条记录 |
| --- | --- | --- | --- |
| 符合条件的免费池 | $0 | 符合条件的产品最多可共享5,000/月 | 额度内 |
| 按量付费 | $0.00 | 无付费计划额度 | $1.50 |
| Scale · $499/month | $499.00 | 384,000 | $1.30 additional |
| 企业 | 定制 | 定制 | 定制 |

Scale包含$499/月的384,000记录；每 1,000 额外记录费用为 $1.30。自定义企业和促销存款匹配未建模。

| FlashData 套餐 | 每 1,000 次请求 | 月费 | 每月包含的请求数 |
| --- | --- | --- | --- |
| 按量付费 | $0.50 | $0.00 | 0 |
| Micro | $0.40 | $49.00 | 125,000 |
| Starter | $0.35 | $199.00 | 571,428 |
| Pro | $0.30 | $499.00 | 1,666,666 |
| Scale | $0.25 | $999.00 | 4,000,000 |
| Business | $0.20 | $1,999.00 | 10,000,000 |

套餐内请求数按共享余额全部用于标准 YouTube Data 计算。扩展搜索和下载采用独立费率。[完整价格](https://flashdata.dev/zh/pricing/youtube-data)。

### 10,000 视频：双方按需付费

| 任务 | FlashData 请求 | FlashData 模型账单 | 已申请Bright Data免费记录 | Bright Data 模型账单 |
| --- | --- | --- | --- | --- |
| 视频元数据 | 10,000 | $5.00 | 0 | $15.00 |
| 视频元数据 | 10,000 | $5.00 | 5,000 | $7.50 |
| 元数据+现有标题 | 20,000 | $10.00 | 0 | $15.00 |
| 元数据+现有标题 | 20,000 | $10.00 | 5,000 | $7.50 |

USD 一个月的成功视频查找。一个返回的Bright Data视频记录可以包含元数据和现有字幕；组合的FlashData任务使用两个源请求。发现、评论、人工智能转录、扩展搜索和媒体下载不包括在内。仅输入仍可用于这些记录的 Bright Data 免费积分； 5,000-积分池是共享的，并且经常性的免费积分不与Scale叠加。 FlashData价格来自其当前公开目录；在额外使用之前，整个选定的计划余额均在此处分配。 FlashData 起始余额和注册/agent 试用不包括在内。模型账单衡量的是使用情况加上任何月费，而不是购买新的钱包：FlashData 充值从 $10 开始。不含税费、存款匹配促销、定制利率或年度折扣。

### 起始优惠

符合条件且已完成验证的 FlashData 新用户，可获得最多支持 4,000 次标准 YouTube Data 请求的初始额度。 这是初始余额，不是每月定期配额。

符合资格的 Bright Data 帐户每月可获得 5,000 多个符合条件的产品共享的免费积分，包括 Scraper API。发送一条 YouTube 记录消耗 1 个积分。未使用的免费积分不会滚动；预承诺帐户不会获得经常性免费积分。不要将每月免费池与 Scale 叠加。

<a id="limits"></a>
## 额度、batch 规模和 running 职位

| 关注 | FlashData | Bright Data 数据抓取器 API |
| --- | --- | --- |
| 哪些操作会消耗额度？ | 各来源查询；元数据和标题是分开的 | 成功交付记录；一个发现输入可以返回多个 |
| 一项互动请求 | POST/v1/queries/realtime；选择async进行后台工作 | POST/datasets/v3/scrape； 1 分钟后，HTTP 202 返回快照 ID 并且作业继续 |
| 更大的投入 | 批量大小取决于计划；对IDs的文件使用批量处理 | 异步/trigger接受最多1GB的输入；最小输入数量取决于数据抓取器 |
| 跑步工作 | 帐户并发数取决于所选计划，如下所示 | 5,000 活跃职位/snapshots；超过限制返回429 |
| 退避 | 荣誉Retry-After；临时智能体试用允许每秒一个请求 | 荣誉Retry-After；每个IP在5分钟内的25HTTP429响应可以触发1小时API区块 |
| 保存的结果 | 下载JSON并将其保存在您自己的任务存储中 | 快照保留30天；下载请求支持高达 5 GB，并可基于部分检索更大的结果 |

| FlashData 套餐 | 并发查询 | 每个批次请求的查询数 |
| --- | --- | --- |
| 按量付费 | 25 | 100 |
| Micro | 50 | 100 |
| Starter | 100 | 200 |
| Pro | 200 | 300 |
| Scale | 300 | 400 |
| Business | 400 | 500 |

并发数不等于每秒请求数。每次查询仍按规则消耗积分。[实时与异步](https://flashdata.dev/zh/docs/reference/realtime-and-async/reference.md) · [Batch 与 Bulk](https://flashdata.dev/zh/docs/reference/batch-and-bulk/reference.md) · [批量处理参考](https://flashdata.dev/zh/docs/reference/bulk-processing/reference.md)。

<a id="migration"></a>
## 从快照到保存的作业

### 1。准备访问并映射请求

创建或复用拥有 youtube_metadata 权限的密钥。[API 密钥](https://flashdata.dev/app/api-keys) · [可用积分](https://flashdata.dev/app/billing)。将 FLASHDATA_API_KEY 保存到密钥存储，或在脚本的隐藏输入提示中输入。

现有Bright Data提交，供迁移参考：

```bash
# Existing Bright Data job submission, for migration reference.
curl --fail-with-body --silent --show-error --max-time 120 \
  --request POST \
  'https://api.brightdata.com/datasets/v3/trigger?dataset_id=gd_lk56epmy2i5g7lzu0k&format=json' \
  --header "Authorization: Bearer $BRIGHTDATA_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{"input":[{"url":"https://www.youtube.com/watch?v=FUfGcZ092b0"}]}'
```

FlashData POST https://data.flashdata.dev/v1/queries 与 X-API-Key：

```json
{
  "source": "youtube_metadata",
  "video_id": "FUfGcZ092b0",
  "params": {
    "include_formats": false,
    "include_chapters": true
  }
}
```

### 2。保存running之前的脚本

需要 Python 3.10+。运行 python -m pip install requests 安装依赖。在新的工作目录中，将下面的完整脚本保存为 migrate-video.py，然后再运行。

```python
# Save as migrate-video.py in your working folder.
import argparse
import getpass
import json
import os
import re
import time
from pathlib import Path
from urllib.parse import urlsplit

import requests

parser = argparse.ArgumentParser()
parser.add_argument("video_id")
parser.add_argument("folder", help="A new folder name, such as video-001")
args = parser.parse_args()
if not re.fullmatch(r"[A-Za-z0-9_-]{11}", args.video_id):
    raise SystemExit("Use an 11-character YouTube video ID")
if not re.fullmatch(r"[A-Za-z0-9_-]+", args.folder):
    raise SystemExit("Use a simple output folder name")
os.umask(0o077)
out = Path(args.folder)
body = {"source": "youtube_metadata", "video_id": args.video_id,
        "params": {"include_formats": False, "include_chapters": True}}
key = None

def read(name):
    return json.loads((out / name).read_text(encoding="utf-8"))

def call(method, url, name, payload=None, authenticated=True):
    global key
    headers = {"Accept": "application/json"}
    if authenticated:
        if key is None:
            key = os.environ.get("FLASHDATA_API_KEY") or getpass.getpass("FlashData API key: ")
        if not key.strip():
            raise SystemExit("An API key is required")
        headers["X-API-Key"] = key
    try:
        response = requests.request(method, url, json=payload, headers=headers,
                                    timeout=(10, 120), allow_redirects=False)
    except requests.RequestException:
        raise SystemExit("Network outcome unknown. Keep this folder and check History; do not resubmit.")
    (out / name).write_bytes(response.content)
    (out / (name + ".http")).write_text(str(response.status_code))
    (out / "retry-after.txt").write_text(response.headers.get("Retry-After", ""))
    return response

if not out.exists():
    out.mkdir()
    (out / "request.json").write_text(json.dumps(body), encoding="utf-8")
    submitted = call("POST", "https://data.flashdata.dev/v1/queries", "submission.json", body)
    if submitted.status_code not in (200, 201, 202):
        raise SystemExit(f"HTTP {submitted.status_code}. Inspect submission.json and retry-after.txt.")
else:
    try:
        if read("request.json") != body:
            raise SystemExit("This folder belongs to another request. Use a new folder.")
    except (OSError, ValueError):
        raise SystemExit("Incomplete attempt. Check the folder and History before resubmitting.")
try:
    receipt = read("submission.json")
    job_id = receipt["id"]
    status = (out / "submission.json.http").read_text().strip()
    if status not in ("200", "201", "202") or receipt["source"] != body["source"] or not re.fullmatch(r"[A-Za-z0-9_-]+", job_id):
        raise ValueError()
except (OSError, ValueError, KeyError, TypeError):
    raise SystemExit("No valid saved receipt. Check History; this script will not submit again.")

if not (out / "result.json").exists():
    url = "https://api.flashdata.dev/v2/jobs/" + job_id
    for attempt in range(12):
        response = call("GET", url, "job.json")
        if response.status_code != 200:
            raise SystemExit(f"HTTP {response.status_code}. Resolve the error; then resume this folder.")
        job = response.json()["job"]
        if job["id"] != job_id or job["source"] != body["source"]:
            raise SystemExit("Job does not match the saved receipt")
        if job["status"] == "completed":
            break
        if job["status"] not in ("pending", "processing"):
            raise SystemExit("Job " + job["status"] + ". Inspect job.json; do not resubmit.")
        delay = response.headers.get("Retry-After", "5")
        if attempt == 11 or not delay.isdigit() or int(delay) > 60:
            raise SystemExit("Still running. Wait for Retry-After, then run the same command to resume.")
        time.sleep(max(1, int(delay)))
    result = call("GET", url + "/results", "result.pending.json")
    if result.status_code == 302:
        location = result.headers.get("Location", "")
        parsed = urlsplit(location)
        if parsed.scheme != "https" or not parsed.hostname or parsed.username or parsed.password:
            raise SystemExit("Expected an HTTPS storage URL")
        # Separate request: the API key is never sent to storage.
        result = call("GET", location, "result.pending.json", authenticated=False)
    if result.status_code != 200:
        raise SystemExit(f"HTTP {result.status_code}. Resolve the error, then resume this folder.")
    data = result.json()
else:
    print("Reading saved result; no API call.")
    data = read("result.json")
if not isinstance(data, dict) or data.get("source") != body["source"] or data.get("status") != "done":
    raise SystemExit("Result did not complete successfully")
items = data.get("results")
if not isinstance(items, list) or len(items) != 1 or not isinstance(items[0], dict) or items[0].get("videoId") != args.video_id:
    raise SystemExit("Expected the requested video in results")
item = items[0]
mapped = [{"video_id": item["videoId"], "url": "https://www.youtube.com/watch?v=" + item["videoId"],
           "title": item.get("title"), "description": item.get("description"),
           "views": item.get("viewCount"), "likes": item.get("likeCount"),
           "num_comments": item.get("commentCount"), "video_length": item.get("duration"),
           "channelName": item.get("channel"), "channelId": item.get("channelId"),
           "uploadDateRaw": item.get("uploadDate"), "captionLanguages": item.get("transcriptLanguages")}]
if not (out / "result.json").exists():
    (out / "result.pending.json").replace(out / "result.json")
(out / "video-records.json").write_text(json.dumps(mapped, ensure_ascii=False, indent=2), encoding="utf-8")
print(f"Saved {out}/video-records.json; actual usage: {json.dumps(data.get('usage'))}")

```

从同一文件夹运行：

```bash
python migrate-video.py FUfGcZ092b0 video-001
```

或者，使用 Bash、cURL 7.76+ 和 jq 1.6+。将下面的完整脚本保存为 migrate-video.sh 到新的工作文件夹中。

```bash
#!/usr/bin/env bash
# Save as migrate-video.sh in your working folder.
set -euo pipefail
umask 077
video_id="${1:?Use: VIDEO_ID OUTPUT_FOLDER}"
out="${2:?Use a folder name such as video-001}"
[[ "$video_id" =~ ^[A-Za-z0-9_-]{11}$ && "$out" =~ ^[A-Za-z0-9_-]+$ ]] || exit 2
body=$(jq -n --arg id "$video_id" '{source:"youtube_metadata", video_id:$id,
  params:{include_formats:false, include_chapters:true}}')
call() {
  local method="$1" url="$2" name="$3" authenticated="$4" payload="${5:-}"
  local -a options=(--silent --show-error --compressed --proto '=https'
    --connect-timeout 10 --max-time 120 --request "$method"
    --header 'Accept: application/json' --output "$out/$name"
    --dump-header "$out/$name.headers" --write-out '%{http_code}')
  if [[ "$authenticated" == yes ]]; then
    if [[ -z "${FLASHDATA_API_KEY:-}" ]]; then
      read -r -s -p 'FlashData API key: ' FLASHDATA_API_KEY; printf '\n'
    fi
    : "${FLASHDATA_API_KEY:?An API key is required}"
    options+=(--header "X-API-Key: $FLASHDATA_API_KEY")
  fi
  if [[ -n "$payload" ]]; then options+=(--header 'Content-Type: application/json' --data-binary "$payload"); fi
  curl "${options[@]}" "$url" > "$out/$name.http" || {
    echo 'Network outcome unknown. Keep this folder and check History; do not resubmit.' >&2; exit 1;
  }
  status=$(cat "$out/$name.http")
}
if [[ ! -e "$out" ]]; then
  mkdir -- "$out"
  printf '%s\n' "$body" > "$out/request.json"
  call POST 'https://data.flashdata.dev/v1/queries' submission.json yes "@$out/request.json"
  [[ "$status" =~ ^20[012]$ ]] || { echo "HTTP $status. Inspect submission.json and its headers." >&2; exit 1; }
else
  jq -e --argjson expected "$body" '. == $expected' "$out/request.json" >/dev/null || {
    echo 'Incomplete or different request. Check this folder and History.' >&2; exit 1;
  }
fi
[[ "$(cat "$out/submission.json.http")" =~ ^20[012]$ ]] || exit 1
id=$(jq -er 'select(.source == "youtube_metadata") | .id | select(type == "string" and test("^[A-Za-z0-9_-]+$"))' "$out/submission.json")
if [[ ! -f "$out/result.json" ]]; then
  url="https://api.flashdata.dev/v2/jobs/$id"
  for attempt in {1..12}; do
    call GET "$url" job.json yes
    [[ "$status" == 200 ]] || { echo "HTTP $status. Inspect job.json and its headers; resume after resolving." >&2; exit 1; }
    state=$(jq -er --arg id "$id" 'select(.job.id == $id and .job.source == "youtube_metadata") | .job.status' "$out/job.json")
    [[ "$state" == completed ]] && break
    [[ "$state" == pending || "$state" == processing ]] || { echo "Job $state. Do not resubmit." >&2; exit 1; }
    delay=$(awk 'tolower($1)=="retry-after:" {sub(/\r$/, "", $2); print $2}' "$out/job.json.headers")
    delay="${delay:-5}"
    [[ "$attempt" -lt 12 && "$delay" =~ ^[0-9]+$ && "$delay" -le 60 ]] || {
      echo 'Still running. Wait for Retry-After, then run the same command to resume.' >&2; exit 1;
    }
    [[ "$delay" -gt 0 ]] || delay=1
    sleep "$delay"
  done
  call GET "$url/results" result.pending.json yes
  if [[ "$status" == 302 ]]; then
    location=$(awk 'tolower($1)=="location:" {sub(/\r$/, "", $2); print $2}' "$out/result.pending.json.headers")
    [[ "$location" =~ ^https://[^/@[:space:]]+(/|$) ]] || { echo 'Expected HTTPS storage URL.' >&2; exit 1; }
    # Separate request, without the API key. Do not add -L to an authenticated request.
    call GET "$location" result.pending.json no
  fi
  [[ "$status" == 200 ]] || { echo "HTTP $status. Resolve it, then resume this folder." >&2; exit 1; }
  result="$out/result.pending.json"
else
  echo 'Reading saved result; no API call.'
  result="$out/result.json"
fi
mapped=$(jq -e --arg id "$video_id" '
  if .source != "youtube_metadata" or .status != "done" then error("Result not done") else . end
  | .results | if type != "array" then error("Expected results")
    elif length != 1 then error("Expected one result") else .[0] end
  | if .videoId != $id then error("Wrong video") else . end
  | [{video_id:.videoId, url:("https://www.youtube.com/watch?v=" + .videoId), title, description,
      views:.viewCount, likes:.likeCount, num_comments:.commentCount, video_length:.duration,
      channelName:.channel, channelId, uploadDateRaw:.uploadDate, captionLanguages:.transcriptLanguages}]' "$result")
[[ "$result" == "$out/result.json" ]] || mv -- "$result" "$out/result.json"
printf '%s\n' "$mapped" > "$out/video-records.json"
printf 'Saved %s/video-records.json; actual usage: ' "$out"
jq -c '.usage' "$out/result.json"

```

从同一文件夹运行：

```bash
bash migrate-video.sh FUfGcZ092b0 video-001
```

如果仍然是running，请重复相同的命令以恢复保存的作业。已完成的运行重用result.json，无需API调用。新文件夹提交新请求；在重试不确定的提交之前检查历史记录。让密钥远离聊天，并且永远不要将它们转发到签名存储URLs。

### 3。读取映射记录

video-001/video-records.json 保留常见视频字段名；result.json 保留原始数据和用量。缺失的指标保持为 null。channelName 是显示名称，不是账号标识；uploadDateRaw 不是标准化日期。不会伪造转录文本或媒体字段。

```json
[
  {
    "video_id": "FUfGcZ092b0",
    "url": "https://www.youtube.com/watch?v=FUfGcZ092b0",
    "title": "Example video",
    "description": "Example description",
    "views": 1200,
    "likes": null,
    "num_comments": null,
    "video_length": 197,
    "channelName": "Example channel",
    "channelId": "UC_EXAMPLE",
    "uploadDateRaw": "2025-01-15",
    "captionLanguages": [
      "en",
      "es"
    ]
  }
]
```

| 关注 | 现有整合 | FlashData 变化 |
| --- | --- | --- |
| 数据抓取器选择 | dataset_id=gd_lk56epmy2i5g7lzu0k | 来源=youtube_metadata；字幕单独使用youtube_transcript |
| 输入 | 输入数组中的手表URL | 11 字符 video_id |
| 认证 | 授权：持票人 | X-API-Key 具有请求的源权限 |
| 提交 | POST /datasets/v3/trigger → snapshot_id | POST/v1/queries→id；保存收据 |
| 轨道 | 快照进度 → ready | GET /v2/jobs/{id} → job.status=completed |
| 检索 | 下载快照为 JSON、NDJSON 或 CSV | GET/v2/jobs/{id}/results→签名存储URL；无需 API 键即可获取 |
| 视频领域 | video_id, title, description, views, likes, num_comments, video_length | videoId、标题、描述、viewCount、likeCount、commentCount、持续时间（秒） |
| 频道和日期 | YouTuber是一个把柄； date_posted 是日期 | 保留channelName、channelId和uploadDateRaw；不要将显示名称重命名为句柄 |
| 转录文本 | 可以作为文字记录和 formatted_transcript 包含在视频记录中 | 单独的轨道请求； fullText 和段使用秒。如果现有解析器需要毫秒，则映射时间戳 |
| 直接媒体URL | video_url 正在播放 URL | 使用单独的 YouTube 下载工作流程交付到您的存储 |

### 可选字幕

授予youtube_transcript权限。使用X-API-Key将此正文提交给POSThttps://data.flashdata.dev/v1/queries并保存其自己的作业ID。这为每个视频添加了一个标准请求：

```json
{
  "source": "youtube_transcript",
  "video_id": "FUfGcZ092b0",
  "params": {
    "language": "en",
    "auto": true
  }
}
```

auto=false 选择上传者提供的字幕。保留语言和来源信息。Bright Data 格式化转录文本的时间单位为毫秒；FlashData 字幕片段采用秒。若解析器需要毫秒，需乘以 1,000。[可运行的带时间戳字幕示例](https://flashdata.dev/zh/docs/guides/timestamped-captions-recipe/reference.md)。

### 恢复

- 等待或处理中：使用已保存的 ID 继续查询。轮询设有上限，并遵循数值形式的 Retry-After。
- 401/403：解决身份验证或权限问题；权限被撤销后停止请求。
- 402：在继续之前恢复可用的所有者余额。
- 429：停止发送并兑现Retry-After；不要自动重试提交。
- 没有收据超时：在创建另一个文件夹之前检查历史记录。

[错误与状态码](https://flashdata.dev/zh/docs/errors/reference.md).

<a id="agents"></a>
## 一个连接，可重复使用的任务

符合条件的智能体可获得 1 积分，有效期为 72 小时，最多支持 100 次标准 YouTube Data 请求。 优先复用已保存的访问凭证；元数据和字幕共用额度。

1. 在丰富内容之前先发现视频和候选名单。
2. 获取一个视频，验证字段和字幕选择，并保存原始输出。
3. 让所有者完成注册/sign-in并批准范围和共享余额。未使用的临时积分不会转移。
4. 保留凭据并跨重复任务运行文件夹。重用结果并在撤销或余额耗尽时停止。

```text
Migrate one Bright Data YouTube video lookup to FlashData.
Read https://flashdata.dev/auth.md and reuse saved access first.
Inspect the current video-record parser and list its required fields.
Fetch metadata for one known video. Request captions separately only if needed.
Keep channel handles, dates, caption origin and timestamp units explicit.
Save the submission receipt, job ID, raw JSON and normalized output.
Resume accepted work; do not submit again after a timeout or agent restart.
Verify the output before scheduling. Have the owner claim access and approve
the required permissions and shared balance for continued use.
Keep keys in the host's secret store. Stop on revoked access or insufficient balance.
```

[试用与认领](https://flashdata.dev/zh/docs/guides/agent-onboarding/reference.md) · [定期任务](https://flashdata.dev/zh/docs/guides/recurring-tasks/reference.md) · [保存结果](https://flashdata.dev/zh/docs/guides/save-results/reference.md).

<a id="faq"></a>
## 迁移问题

### 这是Bright DataGoogle搜索比较吗？

本页涵盖YouTube数据抓取器API。 Google搜索使用Bright Data的SERP产品，具有不同的定价单位和请求配置。 Google 搜索比较有自己的页面。

### Bright Data 是否对元数据和转录文本收取两次费用？

其YouTube视频模式包括返回的视频记录中的元数据和标题字段。不自动计算两条记录。 FlashData 使用单独的元数据和转录查询；计算器中的综合工作负载计算出每个视频有两个 FlashData 请求。字幕字段对于特定视频可能不可用。

### 哪家的免费额度更多？

Bright Data 每月为符合资格的账户提供 5,000 共享积分。 FlashData的入会补贴为初始余额，临时智能体试用是单独的。这些优惠有不同的续订规则。使用剩余的自由记录输入来准确建模 Bright Data PAYG。

### 我可以更换所有Bright Data数据抓取器吗？

移动您所需的支持的 YouTube 元数据、搜索、频道和字幕工作流程。保留评论收集、其他社交平台、托管数据集和现有的存储交付集成，让您的应用程序仍然依赖它们。

### 两家提供商都支持人工智能智能体吗？

是的。两者都提供MCP、CLI和智能体技能。 FlashData 的独立 CLI、源权限和共享 Google/YouTube 平衡对于重点研究工作流程非常有用。定期使用已保存的访问权限，并在安排重复工作之前要求所有者批准继续的帐户访问权限。

### 迁移后我可以重复使用快照ID吗？

不需要。将 Bright Data 快照和新的 FlashData 作业 ID 保存为单独的标识符。该示例仅重用其保存的FlashData收据，并检查返回的视频是否与请求的ID匹配。

[获取 API 密钥](https://flashdata.dev/signup) · [Google 搜索对比](https://flashdata.dev/zh/compare/brightdata/reference.md).
