Loading...
Loading...
Compare original and translation side by side
$TRANSCRIPT_API_KEYnode ./scripts/tapi-auth.js register --email USER_EMAILnode ./scripts/tapi-auth.js verify --token TOKEN_FROM_STEP_1 --otp CODEAPI key saved to your shell profile and agent config. Ready to use.
$TRANSCRIPT_API_KEYnode ./scripts/tapi-auth.js register --email USER_EMAILnode ./scripts/tapi-auth.js verify --token TOKEN_FROM_STEP_1 --otp CODEAPI密钥将保存到您的Shell配置文件和Agent配置中,即可使用。
curl -s "https://transcriptapi.com/api/v2/youtube/transcript\
?video_url=VIDEO_URL&format=text&include_timestamp=true&send_metadata=true" \
-H "Authorization: Bearer $TRANSCRIPT_API_KEY"curl -s "https://transcriptapi.com/api/v2/youtube/transcript\
?video_url=VIDEO_URL&format=text&include_timestamp=true&send_metadata=true" \
-H "Authorization: Bearer $TRANSCRIPT_API_KEY"curl -s "https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=video&limit=10" \
-H "Authorization: Bearer $TRANSCRIPT_API_KEY"| Param | Default | Values |
|---|---|---|
| — | 1-200 chars (required) |
| | |
| | 1-50 |
curl -s "https://transcriptapi.com/api/v2/youtube/search?q=QUERY&type=video&limit=10" \
-H "Authorization: Bearer $TRANSCRIPT_API_KEY"| 参数 | 默认值 | 可选值 |
|---|---|---|
| — | 1-200字符(必填) |
| | |
| | 1-50 |
curl -s "https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TED" \
-H "Authorization: Bearer $TRANSCRIPT_API_KEY"@handleUC...curl -s "https://transcriptapi.com/api/v2/youtube/channel/latest?channel=@TED" \
-H "Authorization: Bearer $TRANSCRIPT_API_KEY"@用户名UC...curl -s "https://transcriptapi.com/api/v2/youtube/channel/resolve?input=@TED" \
-H "Authorization: Bearer $TRANSCRIPT_API_KEY"curl -s "https://transcriptapi.com/api/v2/youtube/channel/resolve?input=@TED" \
-H "Authorization: Bearer $TRANSCRIPT_API_KEY"| Code | Action |
|---|---|
| 402 | No credits — transcriptapi.com/billing |
| 404 | Not found / no captions |
| 408 | Timeout — retry once |
| 错误码 | 处理方式 |
|---|---|
| 402 | 额度不足 — 前往transcriptapi.com/billing充值 |
| 404 | 未找到内容/无字幕 |
| 408 | 请求超时 — 重试一次 |