curl --request POST 'https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"historyId":"history_20261016_001"}'
const input = {
historyId: 'history_20261016_001',
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"historyId": "history_20261016_001"},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
{
"data": {
"historyId": "history_20261016_001",
"youtubeUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"videoId": "abcdefghijk",
"videoTitle": "Product tutorial",
"channelName": "Example channel",
"language": "en",
"durationSeconds": 60,
"durationMinutes": 1,
"createdAt": 1792152000000,
"updatedAt": 1792152000000,
"status": "success",
"transcriptSegmentCount": 1,
"response": {
"source": "youtube_caption",
"language": "en",
"video": {
"videoId": "abcdefghijk",
"sourceUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"canonicalUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"title": "Product tutorial",
"channelName": "Example channel",
"durationSeconds": 60
},
"segments": [
{
"index": 0,
"startSeconds": 0,
"endSeconds": 1.5,
"text": "Hello world."
}
],
"text": "Hello world.",
"srt": "1\n00:00:00,000 --> 00:00:01,500\nHello world.",
"createdAt": 1792152000000
}
}
}
음성 전사
YouTube 전사문 결과 조회
저장한 YouTube 전사문 결과 하나를 읽습니다. 출력 텍스트 또는 미디어 URL을 포함합니다.
POST
/
v1
/
actions
/
youtube_transcript_history_get
curl --request POST 'https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"historyId":"history_20261016_001"}'
const input = {
historyId: 'history_20261016_001',
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"historyId": "history_20261016_001"},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
{
"data": {
"historyId": "history_20261016_001",
"youtubeUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"videoId": "abcdefghijk",
"videoTitle": "Product tutorial",
"channelName": "Example channel",
"language": "en",
"durationSeconds": 60,
"durationMinutes": 1,
"createdAt": 1792152000000,
"updatedAt": 1792152000000,
"status": "success",
"transcriptSegmentCount": 1,
"response": {
"source": "youtube_caption",
"language": "en",
"video": {
"videoId": "abcdefghijk",
"sourceUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"canonicalUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"title": "Product tutorial",
"channelName": "Example channel",
"durationSeconds": 60
},
"segments": [
{
"index": 0,
"startSeconds": 0,
"endSeconds": 1.5,
"text": "Hello world."
}
],
"text": "Hello world.",
"srt": "1\n00:00:00,000 --> 00:00:01,500\nHello world.",
"createdAt": 1792152000000
}
}
}
저장한 YouTube 전사문 결과 하나를 읽습니다. 출력 텍스트 또는 미디어 URL을 포함합니다.
필요한 권한:
POST https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get
인증 및 권한
string
필수
이 헤더에 VoiceCheap API 키를 전달하세요. 동일한 API 키를 사용하는 Authorization: Bearer도 지원합니다. OAuth 액세스 토큰은 MCP에서만 허용되며, 이
REST 엔드포인트에서는 사용할 수 없습니다.
transcription:read.
활성 유료 구독이 필요합니다. 권한은 팀 역할, 리소스 소유권, 미디어 크레딧 또는 요금제 한도를 변경하지 않습니다.
매개변수
string
필수
텍스트 값입니다.최소 길이: 1. 최대 길이: 160. 패턴:
^[A-Za-z0-9_-]+$.전체 입력 스키마
전체 입력 스키마
아래 JSON Schema는 검색을 통해 제공되는 정확한 필드 이름, 중첩 유형, 기본값, 범위 및 허용값을 유지합니다. 추가적인 필드 간 규칙은 작업 참고 사항에 나와 있습니다.
{
"type": "object",
"properties": {
"historyId": {
"type": "string",
"minLength": 1,
"maxLength": 160,
"pattern": "^[A-Za-z0-9_-]+$"
}
},
"required": ["historyId"],
"additionalProperties": false
}
요청 예제
예제의 리소스 식별자와 미디어 키를 계정에서 반환된 값으로 바꾸세요. 동일한 변경 작업을 재시도할 때는 요청 식별자를 유지하세요.curl --request POST 'https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get' \
--header "x-api-key: $VOICECHEAP_API_KEY" \
--header 'Content-Type: application/json' \
--data '{"historyId":"history_20261016_001"}'
const input = {
historyId: 'history_20261016_001',
};
const response = await fetch('https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get', {
method: 'POST',
headers: {
'x-api-key': process.env.VOICECHEAP_API_KEY,
'Content-Type': 'application/json',
},
body: JSON.stringify(input),
});
const body = await response.json();
if (!response.ok) throw new Error(body.code + ': ' + body.message);
console.log(body);
import os
import requests
response = requests.post(
"https://api.voicecheap.ai/v1/actions/youtube_transcript_history_get",
headers={"x-api-key": os.environ["VOICECHEAP_API_KEY"]},
json={"historyId": "history_20261016_001"},
timeout=120,
)
body = response.json()
if not response.ok:
raise RuntimeError(f"{body.get('code')}: {body.get('message')}")
print(body)
응답
성공한 첫 실행은 작업 결과를 data 아래에 포함하여 HTTP 200을 반환합니다. 재전송 시에는 저장된 요청 상태를 대신 반환할 수 있습니다. 예제는 지원되는 응답 중 하나를 보여주며 모든 선택 필드를 포함하지는 않습니다. 출력 콘텐츠를 포함한 실행 주체 소유의 전체 YouTube 전사문 기록 항목입니다.{
"data": {
"historyId": "history_20261016_001",
"youtubeUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"videoId": "abcdefghijk",
"videoTitle": "Product tutorial",
"channelName": "Example channel",
"language": "en",
"durationSeconds": 60,
"durationMinutes": 1,
"createdAt": 1792152000000,
"updatedAt": 1792152000000,
"status": "success",
"transcriptSegmentCount": 1,
"response": {
"source": "youtube_caption",
"language": "en",
"video": {
"videoId": "abcdefghijk",
"sourceUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"canonicalUrl": "https://www.youtube.com/watch?v=abcdefghijk",
"title": "Product tutorial",
"channelName": "Example channel",
"durationSeconds": 60
},
"segments": [
{
"index": 0,
"startSeconds": 0,
"endSeconds": 1.5,
"text": "Hello world."
}
],
"text": "Hello world.",
"srt": "1\n00:00:00,000 --> 00:00:01,500\nHello world.",
"createdAt": 1792152000000
}
}
}
결과 필드
| 필드 | 설명 |
|---|---|
data.historyId | 소유한 웹 도구 기록 항목 ID입니다. |
data.createdAt | 밀리초 단위 Unix 타임스탬프입니다. |
data.updatedAt | 밀리초 단위 Unix 타임스탬프입니다. |
data.response | 동영상 메타데이터와 생성된 텍스트를 포함한, 저장된 전체 YouTube 도구 응답입니다. |
data.response.segments | 타이밍이 지정된 전사문 항목입니다. index, startSeconds, endSeconds 및 text가 포함됩니다. |
data.response.srt | SRT로 직렬화된 전체 전사문입니다. |
data.response.text | 일반 전사문 텍스트입니다. |
data.transcriptSegmentCount | 시간 정보가 있는 전사문 항목 수입니다. |
작업 참고 사항
- 유료 구독과 해당 액션 권한이 필요합니다. 실행 시 실행 주체의 개인 도구 요금제를 다시 확인합니다. 인증 정보가 팀과 연결되어 있어도 저장된 도구와 업로드 참조는 해당 실행 주체에 속합니다.
- 성공한 액션은 공유 월간 API/MCP 호출 1회를 사용합니다. 월간 호출 허용량은 Beginner 500회, Starter 5,000회, Creator 25,000회이며, Pro, Scale 및 Enterprise에는 월간 상한이 없습니다. 분당 한도는 각각 30, 60, 120, 180, 300 및 600회로 계속 적용됩니다. 도구 생성 허용량은 별도입니다.
- historyId는 해당 요청 주체 소유의 history_list 또는 성공한 생성에서 가져와야 합니다. 다른 사용자 또는 다른 기록 컬렉션의 ID로는 접근 권한을 얻을 수 없습니다.
- 이 조회는 영구 통합 resultId가 아닌 전체 저장된 도구 기록을 반환합니다. 다시 생성하거나 업로드 횟수 또는 일일 도구 생성 횟수를 사용하지 않습니다.
- response에는 text, srt 및 시간이 지정된 세그먼트가 포함됩니다. 세그먼트 시간의 단위는 초입니다. 공개 출력에서는 내부 전사 출처 정보가 제거됩니다.
사용량
성공한 호출마다 월간 API/MCP 호출 1회가 차감됩니다. 미디어 크레딧과 해당 작업의 생성 허용량도 적용됩니다.오류
| HTTP 상태 | 코드 | 의미 또는 복구 방법 |
|---|---|---|
| 400 | CREDENTIAL_IN_QUERY | 자격 증명이 access_token 또는 api_key 쿼리 매개변수로 제공되었습니다. 자격 증명은 헤더로 보내세요. |
| 400 | VALIDATION_ERROR | 인수가 액션 스키마를 충족하지 않거나 알 수 없는 인수가 제공되었습니다. |
| 401 | API_KEY_EXPIRED | API 키가 만료되었습니다. |
| 401 | INVALID_API_KEY | 유효하고 만료되지 않은 API 키를 제공하세요. |
| 401 | INVALID_CREDENTIAL | Authorization 헤더의 형식이 잘못되었거나 x-api-key와 충돌합니다. |
| 401 | MISSING_CREDENTIAL | 사용 가능한 헤더 자격 증명이 전달되지 않았거나 4096자를 초과했습니다. |
| 401 | USER_NOT_FOUND | 이 자격 증명에 연결된 계정이 더 이상 존재하지 않습니다. |
| 403 | AMBIGUOUS_TEAM_API_KEY | 이 자격 증명의 사용자가 둘 이상의 팀에 속해 있어 청구 컨텍스트가 모호합니다. |
| 403 | INSUFFICIENT_SCOPE | API 키 또는 MCP 연결에 필요한 액션 권한이 없습니다. |
| 403 | INTEGRATION_PLAN_UNSUPPORTED | 계정의 통합 한도를 확인할 수 없습니다. |
| 403 | PAID_SUBSCRIPTION_REQUIRED | 이 도구 액션이 실행되는 시점에 인증된 요청 주체에게 더 이상 유료 구독이 없습니다. |
| 403 | SUBSCRIPTION_REQUIRED | 활성 유료 구독을 사용하세요. |
| 403 | TEAM_OWNER_NOT_FOUND | 실제로 적용되는 팀 소유자 계정을 찾을 수 없습니다. |
| 404 | YOUTUBE_TRANSCRIPT_HISTORY_NOT_FOUND | 이 실행 주체에 대해 요청한 YouTube 전사문 기록을 찾을 수 없습니다. |
| 429 | INTEGRATION_MONTHLY_LIMIT_REACHED | 사용된 호출과 대기 중인 호출이 공유 월간 API/MCP 허용량에 도달했습니다. |
| 429 | INTEGRATION_RATE_LIMIT_REACHED | 계정이 분당 통합 한도에 도달했습니다. retryAfterSeconds를 확인하세요. |
| 500 | INTERNAL_ERROR | 저장된 기록 콘텐츠를 읽을 수 없습니다. |
| 503 | SERVER_RESTARTING | 서버가 다시 시작 중입니다. 잠시 후 재시도하고, 변경 작업의 경우 동일한 요청 식별자를 유지하세요. |
{
"code": "INSUFFICIENT_SCOPE",
"message": "This credential does not permit the requested action.",
"status": 403,
"details": {
"requiredScopes": ["transcription:read"]
}
}
이 페이지가 도움이 되었나요?

