# Oxylabs ตัวเลือกสําหรับ YouTube ข้อมูล | FlashData

เปรียบเทียบ FlashData และ Oxylabs สำหรับข้อมูลเมตาและคำอธิบายภาพ YouTube: หน่วยการเรียกเก็บเงิน ค่าใช้จ่ายในการสมัครสมาชิก การเข้าถึงตัวแทน และ Python/Bash การย้ายจาก Classic หรือ Web API

การวิจัยวิดีโอโดยไม่มีข้อผูกมัดรายเดือน ย้ายงานข้อมูลเมตาและคำบรรยายไปที่ FlashData PAYG โดยยังคงรักษาภาษา ต้นกำเนิด และการประทับเวลา

หน้านี้ครอบคลุม YouTube Data ส่วน [ทางเลือกแทน Oxylabs สำหรับ SERP](https://flashdata.dev/th/compare/oxylabs/reference.md) ครอบคลุม Google Search แยกต่างหาก

Oxylabs ตรวจสอบข้อเท็จจริงแล้ว 2026-11-10; FlashData ราคาและค่าอนุญาตใช้แคตตาล็อกสาธารณะในปัจจุบัน

- [คุณสมบัติ](#features)
- [ราคา](#pricing)
- [การโยกย้าย](#migration)
- [Production & ตัวแทน](#production)
- [คำถาม](#faq)

<a id="features"></a>
## เปรียบเทียบคุณสมบัติ

### Flexible ใช้จ่ายเพื่อการวิจัยวิดีโอ

| คุณสมบัติ | FlashData | Oxylabs YouTube |
| --- | --- | --- |
| การใช้งานแบบชำระเงินโดยไม่ต้องสมัครสมาชิกรายเดือน | ใช่ — PAYG; การเติมเครดิตเริ่มต้นที่ $10 | ไม่ — การบริการตนเองแบบชำระเงินปัจจุบันต้องมีการสมัครสมาชิกที่ใช้งานอยู่ |
| ค้นหาเฉพาะข้อมูลเมตา · 1,000 วิดีโอ | $0.50 — 1,000 คำขอแหล่งที่มามาตรฐาน · PAYG | ยืนยันอัตราปลายทาง — ข้อมูลวิดีโอสาธารณะ API เป็นราคาต่อ GB ไม่ใช่ราคาคำขอข้อมูลเมตา |
| ค้นหาเฉพาะคำบรรยาย · 1,000 วิดีโอ | $0.50 — หนึ่งแทร็กที่มีอยู่ที่เลือกต่อวิดีโอ · PAYG | ปลายทางคำบรรยายเฉพาะ — ยืนยันหน่วยการเรียกเก็บเงินในบัญชีของคุณ |
| แบ่งปัน Google ค้นหาและ YouTube ยอดคงเหลือ | ใช่ | ใช่ — ยอดเครดิตผลิตภัณฑ์ที่ใช้ร่วมกัน |

### ค้นหาวิดีโอและรีเฟรชข้อมูลเมตา

| คุณสมบัติ | FlashData | Oxylabs YouTube |
| --- | --- | --- |
| การค้นพบคำหลักและคำแนะนำการค้นหา | ใช่ — แหล่งที่มาของการค้นหา การค้นหาแบบขยาย และคำแนะนำ | ใช่ — YouTube ค้นหา ค้นหา/max และปลายทางเติมข้อความอัตโนมัติ |
| ข้อมูลเมตาสำหรับวิดีโอที่รู้จัก ID | ใช่ — ชื่อ ช่อง ระยะเวลา ภาพขนาดย่อ และจำนวนการมีส่วนร่วม | ใช่ — จุดสิ้นสุดข้อมูลเมตาเฉพาะยอมรับวิดีโอ ID |
| บทและภาษาคำบรรยายที่ใช้ได้ | ใช่ — บทที่เลือกได้บวก transcriptLanguages | ใช่ — เครื่องหมายบทและภาษาคำบรรยายในข้อมูลเมตา |

### ควบคุมหลักฐานคำบรรยายที่จะเข้าถึงแอปของคุณ

| คุณสมบัติ | FlashData | Oxylabs YouTube |
| --- | --- | --- |
| ดึงคำอธิบายภาพโดยไม่ขึ้นอยู่กับข้อมูลเมตา | ใช่ — แหล่งที่มาของการถอดเสียงและคำบรรยายโดยเฉพาะ | ใช่ — จุดสิ้นสุดคำบรรยายเฉพาะ YouTube |
| เลือกภาษาของคำบรรยายและที่มา | ใช่ — ภาษาที่ชัดเจนและการเลือกอัตโนมัติ | ใช่ — language_code และ subtitle_origin |
| หลายภาษาในคำขอเดียว | มากถึง 10 ภาษาที่เลือก — อาร์เรย์ภาษาที่ชัดเจนส่งคืนแทร็กพร้อมข้อผิดพลาด | ภาษาที่เลือกหนึ่งภาษาหรือทั้งหมด — ละเว้น language_code สำหรับทุกภาษา ละเว้น subtitle_origin สำหรับทั้งสองต้นทาง |
| ข้อความและเวลาสำหรับการอ้างอิงแหล่งที่มา | ส่วนที่ทำให้เป็นมาตรฐาน + fullText — JSON เริ่ม/end ครั้งในหน่วยวินาที | YouTube เพย์โหลดแทร็กคำบรรยาย — ข้อความและเวลาจัดกลุ่มตามภาษาและที่มา |
| แทร็กที่ขอไม่พร้อมใช้งาน | ข้อผิดพลาดต่อภาษาในการร้องขออาร์เรย์ — ติดตามความสำเร็จ ตรวจสอบข้อผิดพลาดแม้ว่าสถานะจะเป็น done | ผลลัพธ์ว่างเปล่าสำหรับแทร็กที่หายไป — รหัสภาษาที่ถูกต้องโดยไม่มีผลลัพธ์ที่ตรงกัน {} |
| เตรียมข้อมูลสำหรับการสมัครหรือ LLM | JSON ข้อความธรรมดา หรือ Markdown — เลือกการตอบกลับและรูปแบบเนื้อหา API | ติดตามข้อมูลหรือการแยก JSON ที่กำหนดเอง — การแยกคำบรรยายยอมรับพรอมต์หรือสคีมา |

### ประมวลผลรายการและทำให้การเข้าถึงของตัวแทนสามารถนำมาใช้ซ้ำได้

| คุณสมบัติ | FlashData | Oxylabs YouTube |
| --- | --- | --- |
| โหมดโต้ตอบ async และ batch | ใช่ — รูปร่างคำขอแหล่งที่มาเดียวกันในโหมดการดำเนินการ | ใช่ — เว็บ API ข้อมูลเมตาและคำบรรยายรองรับการซิงค์ async และ batch |
| ส่งรายการวิดีโอที่เตรียมไว้ | ID ไฟล์ใน Bulk Jobs — คอนโซลหรือ API; ติดตามความคืบหน้าและดึงข้อมูลส่วนผลลัพธ์ | ID อาร์เรย์ในชุด API — พารามิเตอร์ที่ใช้ร่วมกันใช้กับทุกงานใน batch |
| บันทึกคอลเลกชันขนาดใหญ่ลงในพื้นที่เก็บข้อมูลของคุณ | รายการจำนวนมากและส่วนผลลัพธ์ — พื้นที่จัดเก็บที่มีการจัดการหรือลูกค้าสำหรับผลผลิตจำนวนมาก | การส่งมอบพื้นที่เก็บข้อมูล Async — พื้นที่เก็บข้อมูลที่เข้ากันได้กับ S3, S3, GCS และ TOS |
| การทดลองใช้ตัวแทนก่อนการตั้งค่าบัญชีของเจ้าของ | ใช่ — ตัวแทนที่มีสิทธิ์: คำขอมาตรฐานสูงสุด 100 จากนั้นจึงทำการอ้างสิทธิ์โดยเจ้าของ | ลงทะเบียนบัญชีก่อน — $5 เครดิตต้อนรับหนึ่งครั้งต่อทีม |
| สแตนด์อโลน CLI ไม่มี Node.js หรือ Python | ใช่ — Linux, macOS และ Windows | HTTP API, MCP และทักษะ — ไม่มีไบนารีแบบสแตนด์อโลนที่เทียบเท่าที่ได้รับการยืนยันในเอกสารการตั้งค่าที่ได้รับการตรวจสอบแล้ว |
| MCP และทักษะสำหรับโฮสต์ตัวแทน | ใช่ — นำสิทธิ์การเข้าถึงของเจ้าของที่ได้รับอนุมัติมาใช้ซ้ำสำหรับงานที่กำลังดำเนินอยู่ | ใช่ — เว็บ API MCP ทักษะเซิร์ฟเวอร์และตัวแทน |

### ทำการวิจัยเป็นครั้งคราวในราคาไม่แพง

FlashData จ่ายตามการใช้งานไม่มีค่าธรรมเนียมรายเดือน ดึงวิดีโอที่งานของคุณต้องการและรักษายอดคงเหลือไว้สำหรับ Google ค้นหา และ YouTube

### งบประมาณในคำขอแหล่งที่มา

นับข้อมูลเมตาและการดึงคำอธิบายภาพแยกกัน การรีเฟรชข้อมูลเมตาไม่จำเป็นต้องขอคำอธิบายภาพอื่น แทร็กคำบรรยายที่บันทึกไว้สามารถให้บริการการวิเคราะห์ในภายหลังได้

### เก็บหลักฐานมิใช่เพียงสรุป

บันทึกข้อความคำบรรยายด้วยภาษา ต้นกำเนิด และการประทับเวลา ตัวอย่างการย้ายข้อมูลจะสร้างลิงก์แหล่งที่มาสำหรับแต่ละส่วนและรักษาการตอบสนองและการใช้งานดิบไว้

<a id="pricing"></a>
## เปรียบเทียบแผนและหน่วยการเรียกเก็บเงิน

| 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 |

FlashData นับการดึงเมทาดาทาหนึ่งครั้งและคำบรรยายหนึ่งครั้งเป็นสองคำขอต่อวิดีโอ จำนวนที่รวมไว้คำนวณโดยใช้ยอดคงเหลือร่วมทั้งหมดกับ YouTube Data มาตรฐาน ส่วน Extended Search และ Download มีอัตราแยกต่างหาก เติมเครดิต PAYG เริ่มต้นที่ $10 [ราคาทั้งหมด](https://flashdata.dev/th/pricing/youtube-data).

| Oxylabs แผน | ค่าบริการรายเดือน | รวมยอดคงเหลือที่ใช้ร่วมกันแล้ว | อัตราข้อมูลวิดีโอที่เผยแพร่ API | รวมคำขอข้อมูลเมตา/caption |
| --- | --- | --- | --- | --- |
| Starter | $15.00 | $15.00 | $2.00/GB | ไม่มีการเผยแพร่จำนวนคงที่ |
| Basic | $100.00 | $100.00 | $2.00/GB | ไม่มีการเผยแพร่จำนวนคงที่ |
| Flexible | $500.00 | $500.00 | $1.60/GB | ไม่มีการเผยแพร่จำนวนคงที่ |

Enterprise เริ่มต้นที่ $2,500/เดือน โดยมีเงื่อนไขที่ปรับแต่งให้เหมาะสม USD; ไม่รวมภาษี การใช้ผลิตภัณฑ์อื่นๆ และสัญญาแบบกำหนดเอง

Oxylabs แสดงรายการข้อมูลวิดีโอ API ในหน่วย GB ตารางสาธารณะไม่ได้กำหนดราคาต่อคำขอสำหรับจุดสิ้นสุดข้อมูลเมตาและคำบรรยาย ใช้หน่วยการเรียกเก็บเงินและอัตราของบัญชีของคุณสำหรับการโทรเหล่านั้น ราคา Scrape 'จาก' ทั่วไปไม่ใช่ราคา YouTube GB ที่อนุญาตไม่สามารถแปลงเป็นจำนวนวิดีโอที่แน่นอนได้

Oxylabs การบริการตนเองแบบชำระเงินใช้การสมัครสมาชิกที่ใช้งานอยู่และยอดเครดิตรายเดือนที่แชร์ ยอดคงเหลือที่ไม่ได้ใช้จะหมดอายุเมื่อต่ออายุ บริการหยุดชั่วคราวที่ศูนย์จนกว่าจะมีการเติมเงินหรืออัปเกรด เครดิตต้อนรับ $5 เป็นเงินช่วยเหลือทีมแบบจ่ายครั้งเดียว ไม่ใช่โควต้ารายเดือน สัญญาแบบคลาสสิกหรือแบบกำหนดเองที่มีอยู่อาจมีข้อกำหนดที่แตกต่างกัน

การสมัครใช้งานที่ได้รับการยืนยัน FlashData ที่มีสิทธิ์จะได้รับเบี้ยเลี้ยงเริ่มต้นสูงถึง 4,000 มาตรฐาน YouTube คำขอข้อมูล นี่เป็นยอดคงเหลือเริ่มต้น ไม่ใช่โควต้ารายเดือน

<a id="migration"></a>
## ย้ายแทร็กคำบรรยายที่มีอยู่หนึ่งแทร็ก

### 1. ระบุคำขอที่มีอยู่

นี่เป็นคำขออ้างอิงสำหรับแทร็กภาษาอังกฤษเดียวกันที่สร้างขึ้น YouTube ทั้งคู่ใช้วิดีโอ ID ไม่ใช่ URL คลาสสิกใช้รายการบริบท เว็บ API ใช้ตัวเลือกระดับบนสุด

```bash
# Existing Classic request; use your current credential environment.
curl --fail-with-body --silent --show-error \
  --user "$OXYLABS_USERNAME:$OXYLABS_PASSWORD" \
  --header 'Content-Type: application/json' \
  --data '{
    "source": "youtube_subtitles",
    "query": "FUfGcZ092b0",
    "context": [
      {"key": "language_code", "value": "en"},
      {"key": "subtitle_origin", "value": "auto_generated"}
    ]
  }' \
  'https://realtime.oxylabs.io/v1/queries'
```

```bash
# Newer Web API request; query is a video ID, not a URL.
curl --fail-with-body --silent --show-error \
  --header "Authorization: Bearer $OXYLABS_API_KEY" \
  --header 'Content-Type: application/json' \
  --data '{
    "query": "FUfGcZ092b0",
    "language_code": "en",
    "subtitle_origin": "auto_generated"
  }' \
  'https://webapi.oxylabs.io/v1/scrape/media/youtube/subtitles'
```

### 2. ตั้งค่า FlashData และบันทึกไฟล์

สร้างหรือใช้คีย์เดิมที่มีสิทธิ์ youtube_captions [คีย์ API](https://flashdata.dev/app/api-keys) · [เครดิตที่ใช้ได้](https://flashdata.dev/app/billing) อ่าน FLASHDATA_API_KEY จากที่เก็บข้อมูลลับ หรือป้อนผ่านช่องรับค่าแบบซ่อนของสคริปต์ อย่าใส่ข้อมูลรับรองในแชตหรือระบบควบคุมเวอร์ชัน

สร้าง youtube-migration/ และบันทึกเป็น youtube-migration/request.json:

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

ต้องใช้ Python 3.10+ ติดตั้งไลบรารีด้วย python -m pip install requests ในโฟลเดอร์ทำงานใหม่ ให้บันทึกสคริปต์ฉบับเต็มด้านล่างเป็น youtube-migration/captions.py ก่อนเรียกใช้

```python
import argparse
import getpass
import json
import math
import os
import re
from datetime import datetime, timezone
from pathlib import Path

import requests

parser = argparse.ArgumentParser()
parser.add_argument("folder", help="New output folder, or an existing saved caption request")
out = Path(parser.parse_args().folder)

if not out.exists():
    body = Path("request.json").read_bytes()
    request = json.loads(body)
    if (not isinstance(request, dict) or request.get("source") != "youtube_captions"
            or not isinstance(request.get("video_id"), str)
            or not re.fullmatch(r"[A-Za-z0-9_-]{11}", request["video_id"])):
        raise SystemExit("Use youtube_captions and an 11-character video_id")
    options = request.get("params")
    if (not isinstance(options, dict) or not isinstance(options.get("language"), str)
            or not re.fullmatch(r"[A-Za-z0-9-]{1,35}", options["language"])
            or type(options.get("auto")) is not bool):
        raise SystemExit("Set one language code and auto: true or false explicitly")
    key = os.environ.get("FLASHDATA_API_KEY") or getpass.getpass("FlashData API key: ")
    if not key.strip():
        raise SystemExit("An API key is required")
    out.mkdir()
    (out / "request.json").write_bytes(body)
    (out / "requested-at.txt").write_text(
        datetime.now(timezone.utc).strftime("%Y-%m-%dT%H:%M:%SZ"), encoding="utf-8"
    )
    try:
        response = requests.post(
            "https://data.flashdata.dev/v1/queries/realtime",
            headers={"X-API-Key": key, "Content-Type": "application/json",
                     "Accept": "application/json"},
            data=body, timeout=120, allow_redirects=False,
        )
    except requests.RequestException:
        raise SystemExit(f"Request interrupted. Keep {out} and check History before retrying.")
    (out / "result.json").write_bytes(response.content)
    (out / "response-headers.txt").write_text(
        "\n".join(f"{k}: {v}" for k, v in response.headers.items()), encoding="utf-8"
    )
    (out / "http-status.txt").write_text(str(response.status_code), encoding="utf-8")
else:
    print(f"Reading saved response from {out}; no API call.")

if not (out / "http-status.txt").exists():
    raise SystemExit("Incomplete attempt. Keep the folder and check History before retrying.")
status = (out / "http-status.txt").read_text().strip()
if status != "200":
    raise SystemExit(f"HTTP {status}: inspect {out}/result.json and response-headers.txt")
try:
    data = json.loads((out / "result.json").read_bytes())
except ValueError:
    raise SystemExit("Invalid JSON; inspect the saved result.json")
request = json.loads((out / "request.json").read_bytes())
if not isinstance(data, dict) or data.get("source") != "youtube_captions" or data.get("status") != "done":
    raise SystemExit("Caption request did not finish successfully; inspect result.json")
tracks = data.get("results")
if not isinstance(tracks, list) or len(tracks) != 1 or not isinstance(tracks[0], dict):
    raise SystemExit("Expected one caption track; inspect result.json")
track = tracks[0]
language = request["params"]["language"]
allowed_languages = [language]
if request["params"]["auto"] and not language.endswith("-orig"):
    allowed_languages.append(language + "-orig")
if (track.get("videoId") != request["video_id"]
        or track.get("languageCode") not in allowed_languages
        or track.get("requestedLanguageCode", track.get("languageCode")) != language
        or track.get("isAutoGenerated") is not request["params"]["auto"]):
    raise SystemExit("Returned video, language or caption origin does not match the request")
if not isinstance(track.get("segments"), list):
    raise SystemExit("Expected a segments array; inspect result.json")
segments = []
for cue in track["segments"]:
    if not isinstance(cue, dict):
        raise SystemExit("Expected caption segment objects")
    start, end, text = cue.get("start"), cue.get("end"), cue.get("text")
    if (type(start) not in (int, float) or not math.isfinite(start) or start < 0
            or type(end) not in (int, float) or not math.isfinite(end) or end < start
            or not isinstance(text, str)):
        raise SystemExit("Invalid caption timing or text; inspect result.json")
    segments.append({**cue, "url": f"https://www.youtube.com/watch?v={track['videoId']}&t={math.floor(start)}s"})
captions = {**track, "segments": segments}
record = {"request": request, "requested_at": (out / "requested-at.txt").read_text().strip(),
          "usage": data.get("usage"), "segment_count": len(segments), "result_file": "result.json"}
for filename, value in (("captions.json", captions), ("record.json", record)):
    (out / filename).write_text(json.dumps(value, ensure_ascii=False, indent=2) + "\n", encoding="utf-8")
print(f"Saved {len(segments)} segments to {out}/captions.json")
if not any(cue["text"].strip() for cue in segments):
    print("No caption text to cite. Keep the empty track and report the gap.")

```

จากภายใน youtube-migration/ ให้รัน:

```bash
python captions.py track-001
python -m json.tool track-001/captions.json
python -m json.tool track-001/record.json
```

หรือใช้ Bash, cURL 7.76+ และ jq 1.6+ บันทึกสคริปต์ทั้งหมดเป็น youtube-migration/captions.sh:

```bash
#!/usr/bin/env bash
set -euo pipefail
out="${1:?Usage: bash captions.sh OUTPUT_FOLDER}"

if [[ ! -e "$out" ]]; then
  jq -e '.source == "youtube_captions" and
    (.video_id | if type == "string" then length == 11 and test("^[A-Za-z0-9_-]{11}$") else false end) and
    (.params.language | if type == "string" then length > 0 and length <= 35 and
      (test("[^A-Za-z0-9-]") | not) else false end) and
    (.params.auto | type == "boolean")' request.json > /dev/null
  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}"
  mkdir -- "$out"
  cp request.json "$out/request.json"
  date -u +'%Y-%m-%dT%H:%M:%SZ' > "$out/requested-at.txt"
  curl --fail-with-body --silent --show-error --max-time 120 \
    --request POST 'https://data.flashdata.dev/v1/queries/realtime' \
    --header "X-API-Key: $FLASHDATA_API_KEY" \
    --header 'Content-Type: application/json' --header 'Accept: application/json' \
    --data-binary "@$out/request.json" \
    --dump-header "$out/response-headers.txt" --output "$out/result.json" \
    --write-out '%{http_code}' > "$out/http-status.txt" || {
      printf 'Request failed. Keep %s and inspect its saved files before retrying.\n' "$out" >&2
      exit 1
    }
else
  printf 'Reading saved response from %s; no API call.\n' "$out"
fi

if [[ ! -f "$out/http-status.txt" ]] || [[ "$(cat "$out/http-status.txt")" != 200 ]]; then
  printf 'Incomplete or failed attempt. Inspect the saved files and History before retrying.\n' >&2
  exit 1
fi
captions=$(jq -e --slurpfile request "$out/request.json" '
  if .source != "youtube_captions" or .status != "done"
  then error("Expected a successful youtube_captions response") else . end
  | .results
  | if type != "array" then error("Expected a results array")
    elif length != 1 then error("Expected exactly one track") else .[0] end
  | $request[0].params.language as $language
  | if type != "object" then error("Expected a caption object")
    elif .videoId != $request[0].video_id or (.requestedLanguageCode // .languageCode) != $language
      or (.languageCode != $language and ($request[0].params.auto != true
        or ($language | endswith("-orig")) or .languageCode != ($language + "-orig")))
      or .isAutoGenerated != $request[0].params.auto
    then error("Returned video, language or caption origin does not match the request") else . end
  | if (.segments | type) != "array" then error("Expected a segments array") else . end
  | .videoId as $id
  | .segments |= map(
      if type != "object" then error("Expected caption segment objects") else . end
      | if (.start | type) != "number" or (.end | type) != "number" or (.text | type) != "string"
        then error("Invalid caption timing or text")
        elif (.start | isfinite | not) or (.end | isfinite | not) or .start < 0 or .end < .start
        then error("Invalid caption timing")
        else . + {url: ("https://www.youtube.com/watch?v=" + $id + "&t=" + (.start | floor | tostring) + "s")} end
    )' "$out/result.json")
printf '%s\n' "$captions" > "$out/captions.json"
jq --slurpfile request "$out/request.json" --slurpfile captions "$out/captions.json" \
  --arg requested_at "$(tr -d '\r\n' < "$out/requested-at.txt")" \
  '{request: $request[0], requested_at: $requested_at, usage,
    segment_count: ($captions[0].segments | length), result_file: "result.json"}' \
  "$out/result.json" > "$out/record.json"
printf 'Saved %s segments to %s/captions.json\n' "$(jq '.segments | length' "$out/captions.json")" "$out"
if ! jq -e 'any(.segments[]; .text | test("\\S"))' "$out/captions.json" > /dev/null; then
  printf 'No caption text to cite. Keep the empty track and report the gap.\n'
fi

```

จากภายใน youtube-migration/ ให้รัน:

```bash
bash captions.sh track-001
jq . track-001/captions.json
jq . track-001/record.json
```

โฟลเดอร์ใหม่ส่งหนึ่งคำขอ ทำซ้ำคำสั่งเดียวกันเพื่ออ่านคำตอบที่บันทึกไว้โดยไม่ต้องโทร API แต่ละโฟลเดอร์เป็นเจ้าของคำขอ การเปลี่ยน request.json จะไม่เปลี่ยนการรันที่มีอยู่ แก้ไขความพยายามที่ไม่สมบูรณ์ก่อนที่จะสร้างโฟลเดอร์อื่น

### 3. ตรวจสอบแทร็กก่อนที่จะอ้างอิง

track-001/captions.json มีส่วนที่ตรวจสอบพร้อมลิงก์แหล่งที่มา record.json เก็บคำขอ เวลา และการใช้งาน result.json คือการตอบสนองแบบดิบ สคริปต์จะตรวจสอบวิดีโอ ภาษา และแหล่งที่มา ยอมรับคำอธิบายภาพอัตโนมัติที่ตรงกัน - รูปแบบต้นฉบับ และรักษาส่วนที่ทับซ้อนกันไว้ เวลาของเซ็กเมนต์เป็นวินาที คำอธิบายภาพหายไปหรือว่างเปล่าถือเป็นช่องว่างของข้อมูล ไม่ใช่ข้อความถอดเสียงที่สร้างขึ้น

ภาพประกอบ captions.json ข้อความที่ตัดตอนมา:

```json
{
  "videoId": "FUfGcZ092b0",
  "languageCode": "en",
  "isAutoGenerated": true,
  "segments": [
    {
      "start": 12.5,
      "end": 16.2,
      "text": "Illustrative caption text; the actual track varies.",
      "url": "https://www.youtube.com/watch?v=FUfGcZ092b0&t=12s"
    }
  ]
}
```

| ความกังวล | การผสานรวม Oxylabs ที่มีอยู่ | FlashData เปลี่ยน |
| --- | --- | --- |
| การยืนยันตัวตน | คลาสสิก: HTTP Basic ชื่อผู้ใช้/password. เว็บ API: รหัสผู้ถือ API | X-API-Key: FLASHDATA_API_KEY. ข้อมูลรับรอง Oxylabs ที่มีอยู่จะไม่ถูกถ่ายโอน |
| ข้อมูลเมตา | คลาสสิก youtube_metadata; เว็บ API /media/youtube/metadata. แบบสอบถามคือวิดีโอ ID | แหล่งที่มา: youtube_metadata, video_id: 11-อักขระเดียวกัน ID |
| คำบรรยายภาพ | คลาสสิก youtube_subtitles; เว็บ API /media/youtube/subtitles. | แหล่งที่มา: youtube_captions สำหรับข้อความและเวลา; youtube_transcript เมื่อ parser ของคุณต้องการ fullText ด้วย |
| ภาษาและแหล่งกำเนิด | รายการบริบทแบบคลาสสิก เว็บ API language_code และ subtitle_origin การละเว้นอาจทำให้กลับมาได้หลายแทร็ก | ตั้งค่า params.language และ params.auto อย่างชัดเจน อัตโนมัติ: true = YouTube-สร้าง; false = ระบุโดยผู้อัปโหลด อย่าเปลี่ยนแทร็กอย่างเงียบ ๆ |
| ตัวแยกวิเคราะห์การตอบสนอง | Classic และ Web API มีซองผลลัพธ์ที่แตกต่างกันและเอาต์พุตคำบรรยายที่จัดกลุ่ม | ตรวจสอบสถานะ: done จากนั้นผลลัพธ์[].videoId, languageCode, isAutoGenerated และเซ็กเมนต์ การเริ่มต้นกลุ่ม/end คือวินาที |
| อะซิงก์ IDs | เว็บ API metadata.request_id; งานคลาสสิก IDs ใช้จุดสิ้นสุดผลลัพธ์ของตนเอง | บันทึกใบเสร็จรับเงินการส่ง FlashData และใช้จุดสิ้นสุดของงานการจัดการ แยกผู้ให้บริการ IDs ออก อย่าใช้การโพล Oxylabs URL ซ้ำ |

### งานข้อมูลเมตาทางเลือก

ให้สิทธิ์ youtube_metadata POST ตัวนี้เป็น https://data.flashdata.dev/v1/queries/realtime ด้วย X-API-Key เป็นคำขอมาตรฐานแยกต่างหาก ตรวจสอบสถานะ: done ก่อนอ่านผลลัพธ์[0]

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

[ฟิลด์คำบรรยาย](https://flashdata.dev/th/docs/sources/youtube_captions/reference.md) · [ฟิลด์เมทาดาทา](https://flashdata.dev/th/docs/sources/youtube_metadata/reference.md).

<a id="production"></a>
## งานที่เกิดซ้ำและการกู้คืน

รวบรวมครั้งเดียววิเคราะห์หลายครั้ง ใช้แทร็กที่บันทึกไว้ซ้ำสำหรับการสรุปและการฝัง รีเฟรชข้อมูลต้นฉบับเมื่องานต้องการเท่านั้น

| สถานการณ์ | จะทำอย่างไร |
| --- | --- |
| แทร็กที่เลือกหายไป | Oxylabs สามารถส่งคืนออบเจ็กต์ว่างสำหรับภาษาที่ถูกต้องโดยไม่มีคำบรรยายที่ตรงกัน ถือว่าข้อความคำบรรยายที่หายไปหรือว่างเปล่าเป็นช่องว่างข้อมูล อย่าจัดทำใบรับรองผลการเรียน |
| ยอมรับขนาดใหญ่ batch บางส่วน | Oxylabs เว็บ API เอกสารได้ถึง 5,000 งานต่อ batch และแยกรายการได้รับการยอมรับ/rejected ยอมรับการเก็บรักษา IDs สำหรับ FlashData ให้แบ่งเป็น maxBatchSize ของบัญชี และเก็บงานที่ส่งคืน ID ไว้ |
| การโทร realtime หมดเวลา | เก็บโฟลเดอร์คำขอและตรวจสอบประวัติก่อนที่จะส่งอีกครั้ง สำหรับคิวที่ยาว running ให้ใช้การส่ง async บันทึกใบเสร็จรับเงินทันที และสำรวจงานที่มีอยู่ |
| การเปลี่ยนแปลงบัญชีหรือข้อมูลประจำตัว | เก็บกุญแจ API ไว้ในที่เก็บข้อมูลลับของโฮสต์ หยุดที่ 401/403; แก้ไขยอดคงเหลือใน 402; ให้เกียรติ Retry-After บน 429 อย่าเริ่มการทดลองใหม่เพื่อหลีกเลี่ยงเครื่องชั่งที่หมดแรง |

| FlashData แผน | แบบสอบถามพร้อมกัน | แบบสอบถามต่อคำขอชุดงาน |
| --- | --- | --- |
| ชำระตามการใช้งาน | 25 | 100 |
| Micro | 50 | 100 |
| Starter | 100 | 200 |
| Pro | 200 | 300 |
| Scale | 300 | 400 |
| Business | 400 | 500 |

จำนวนคำขอพร้อมกันไม่ใช่จำนวนคำขอต่อวินาที สำหรับชุดข้อมูลในไฟล์ ให้ใช้การประมวลผล Bulk [คำขอแบบเรียลไทม์และแบบอะซิงโครนัส](https://flashdata.dev/th/docs/reference/realtime-and-async/reference.md) · [คำขอ Batch และการประมวลผล Bulk](https://flashdata.dev/th/docs/reference/batch-and-bulk/reference.md) · [เอกสารอ้างอิงการประมวลผล Bulk](https://flashdata.dev/th/docs/reference/bulk-processing/reference.md) · [ข้อผิดพลาด](https://flashdata.dev/th/docs/errors/reference.md).

ตัวแทนที่มีสิทธิ์สามารถเริ่มต้นด้วยเครดิต 1 (สูงสุด 100 คำขอมาตรฐาน) เป็นเวลา 72 ชั่วโมง

ใช้การเข้าถึงที่มีอยู่ซ้ำก่อน สำหรับการใช้งานที่เกิดซ้ำ เจ้าของจะอ้างสิทธิ์ในการเชื่อมต่อและอนุมัติสิทธิ์และการเข้าถึงยอดคงเหลือที่ใช้ร่วมกัน เครดิตชั่วคราวที่ไม่ได้ใช้ไม่สามารถโอนได้ รักษาข้อมูลรับรองระหว่างการรันและการหยุดเมื่อเพิกถอนหรือยอดคงเหลือหมด

```text
Migrate one Oxylabs YouTube subtitle task to FlashData.
Read https://flashdata.dev/auth.md and reuse existing access first.
Use youtube_captions with the same video ID, language and caption origin.
Keep the source request, raw response, usage and timestamped segments.
Check the video, language and origin; report an absent track instead of inventing text.
Save the script before running it, and reuse a completed output folder.
For recurring work, finish owner claiming and store its credential securely.
Stop on revoked access or depleted balance. Never paste credentials into chat.
```

[ทดลองใช้และเชื่อมโยงบัญชี](https://flashdata.dev/th/docs/guides/agent-onboarding/reference.md) · [งานที่ทำเป็นประจำ](https://flashdata.dev/th/docs/guides/recurring-tasks/reference.md) · [บันทึกผลลัพธ์](https://flashdata.dev/th/docs/guides/save-results/reference.md).

<a id="faq"></a>
## คำถามเกี่ยวกับการโยกย้าย

### FlashData เป็นการทดแทนแบบดรอปอินหรือไม่

ไม่ เปลี่ยนการรับรองความถูกต้อง ฟิลด์คำขอ การแยกวิเคราะห์การตอบสนอง และการดึงงาน ตัวอย่างจะปรับงานคำอธิบายภาพหนึ่งงานให้เป็นบันทึกแอปพลิเคชันที่เสถียร พวกเขาไม่ได้เลียนแบบซองตอบกลับ Oxylabs

### ฉันสามารถเก็บการผสานรวม Classic Oxylabs ไว้ในขณะที่ย้ายได้หรือไม่

ใช่ ย้ายทีละงาน เก็บผลลัพธ์แบบคลาสสิกที่บันทึกไว้ และเก็บข้อมูลประจำตัวและงาน IDs แยกจากผู้ให้บริการ การแมปครอบคลุมทั้งคำขอ Classic source/context และคำขอปลายทาง Web API ที่ใหม่กว่า

### FlashData สร้างข้อความถอดเสียงเมื่อคำบรรยายหายไปหรือไม่

แหล่งข้อมูลเหล่านี้เรียกข้อมูลคำบรรยาย YouTube ที่มีอยู่ อัตโนมัติ: true เลือก YouTube คำบรรยายที่สร้าง; ไม่ขอคำพูดเป็นข้อความใหม่ รายงานแทร็กที่หายไป หรือจัดการการถอดเสียงเป็นขั้นตอนการทำงานแยกต่างหาก

### แล้วการดาวน์โหลดวิดีโอจริงล่ะ?

YouTube ดาวน์โหลดเป็นผลิตภัณฑ์ FlashData แยกต่างหากที่ได้รับอนุญาตและราคาตามไบต์ การเปรียบเทียบและตัวอย่างนี้ครอบคลุมข้อมูลเมตาและคำอธิบายภาพ พวกเขาไม่ดาวน์โหลดไฟล์วิดีโอหรือเสียง

### อะไรควรอยู่ในเวิร์กโฟลว์ Oxylabs ที่มีอยู่ของฉัน

รักษาโครงสร้างพื้นฐานพร็อกซี แพลตฟอร์มโซเชียลอื่นๆ และสัญญาการแยกข้อมูล การโทรกลับ หรือการส่งมอบพื้นที่จัดเก็บแบบกำหนดเองที่แอปพลิเคชันของคุณยังต้องการ ผู้ให้บริการทั้งสองสนับสนุนงาน async, batch คอลเลกชัน, MCP และทักษะ ความสามารถเหล่านั้นเพียงอย่างเดียวไม่ใช่เหตุผลในการโยกย้าย

[รับคีย์ API](https://flashdata.dev/signup) · [เปรียบเทียบ Google Search](https://flashdata.dev/th/compare/oxylabs/reference.md).
