YouTube Data API v3 是 Google 官方 API,完全合法可靠。每天 10,000 units 免费,适合绝大多数小规模使用场景了。
获取 API Key 步骤
1. 前往 https://console.cloud.google.com
2. 创建或选择一个项目
3. 在左侧菜单找到APIs & Services → Library
4. 搜索 “YouTube Data API v3”,点击 Enable
5. 进入 APIs & Services → Credentials
6. 点击 Create Credentials → API Key