API Hop 문서
YouTube 엔드포인트 참조
인증이 필요한 34개 엔드포인트(GET 32개, POST 2개)에서 YouTube 동영상, 채널, Shorts, 댓글, 커뮤니티 게시물, 검색 결과 및 스트림 메타데이터를 조회합니다.
선택한 엔드포인트에 명시된 필드만 보내세요. 대체 필드 그룹마다 최소 하나를 제공해야 합니다. 커서는 이전 응답에서 가져오며 자동 페이지 처리는 없습니다.
GET 작업은 본문 없이 쿼리 매개변수를 사용합니다. V3 스트림은 application/json 본문의 POST를 사용하며 쿼리 매개변수를 받지 않습니다. proxy_url은 본문에만 보내세요. 버전 경로는 YouTube 인터페이스 버전을 선택합니다. 알 수 없거나 중복된 필드는 거부됩니다. 식별자와 페이지 커서는 JavaScript 안전 정수 범위를 넘는 값도 문자열로 유지하세요.
동기 요청의 과금 규칙: 반환 항목 수가 아닌 성공한 요청마다 과금합니다. 각 페이지는 별도 요청입니다. 대부분의 작업은 $0.001입니다. V2 검색 변형 두 개는 $0.002, V2 스트림 변형은 $0.004입니다. 각 엔드포인트의 요금을 확인하세요. 계정별 가격이 우선합니다. 공급자의 사용량 할인은 자동 적용되지 않습니다. 공급자 호출 실패 시 예약 금액을 해제하며, 정산 실패 시 재호출 없이 오류를 반환합니다.
자막 작업
POST https://api.apihop.ai/v1/youtube/web-v2/videos/captions는 HTTP 202, 플랫폼 작업 ID 및 Location: /v1/jobs/\{id\}를 반환합니다. GET https://api.apihop.ai/v1/youtube/web-v2/videos/captions/result?job_id=\{id\}를 2–5초마다 조회하세요. 작업 소유 테넌트만 읽을 수 있습니다. 결과 조회는 무료이며 생성 정가는 $0.008입니다. 자막이 없는 결과도 성공으로 과금됩니다. 형식은 생성 시 고정되며 기본값은 srt입니다. 조회 시 선택적 format이 다르면 HTTP 400을 반환합니다. COMPLETED 전까지 data.result는 null이며 FAILED로 끝날 수도 있습니다. 기존 자막만 가져오며 AI 전사는 제공하지 않습니다.
제출 수락 여부가 불확실하면 요청을 다시 보내지 않으며, 예약 금액은 작업의 30분 기한까지 유지될 수 있습니다. 공급자 결과가 나와도 정산 대조 중에는 대기 상태일 수 있습니다. 일시적인 조회 오류는 작업의 최종 실패를 의미하지 않습니다.
{"success":true,"data":{"id":"9007199254740993001","status":"PROCESSING","result":null},"requestId":"example"}범위 및 제한
web과 web-v2는 인터페이스 계열을 선택합니다. V3 스트림은 고객의 고정 출구 HTTP 프록시를 사용하는 POST 요청을 지원합니다. 스트림 작업은 메타데이터와 URL을 반환하며 미디어 파일이나 다운로드 성공을 보장하지 않습니다. 채널 설명에는 continuation_token을 사용하는 별도 과금 요청이 한 번 더 필요할 수 있습니다. 자동 재시도는 없습니다.
web-get_relate_video
GET https://api.apihop.ai/v1/youtube/web/videos/related
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 예 | string |
continuation_token | 아니요 | string |
curl --get "https://api.apihop.ai/v1/youtube/web/videos/related" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "video_id=LuIL5JATZsc"web-search_video
GET https://api.apihop.ai/v1/youtube/web/search/videos
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
search_query | 예 | string |
language_code | 아니요 | string; default: "en" |
order_by | 아니요 | string; default: "this_month" |
country_code | 아니요 | string; default: "us" |
continuation_token | 아니요 | string |
curl --get "https://api.apihop.ai/v1/youtube/web/search/videos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "search_query=Minecraft"web-get_channel_id
GET https://api.apihop.ai/v1/youtube/web/channels/id
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_name | 예 | string |
curl --get "https://api.apihop.ai/v1/youtube/web/channels/id" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_name=LinusTechTips"web-get_channel_id_v2
GET https://api.apihop.ai/v1/youtube/web/channels/id/by-url
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_url | 예 | string |
curl --get "https://api.apihop.ai/v1/youtube/web/channels/id/by-url" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_url=https://www.youtube.com/@CozyCraftYT"web-get_channel_url
GET https://api.apihop.ai/v1/youtube/web/channels/url
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 예 | string |
curl --get "https://api.apihop.ai/v1/youtube/web/channels/url" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCeu6U67OzJhV1KwBansH3Dg"web-get_channel_info
GET https://api.apihop.ai/v1/youtube/web/channels/info
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 예 | string |
curl --get "https://api.apihop.ai/v1/youtube/web/channels/info" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw"web-get_channel_short_videos
GET https://api.apihop.ai/v1/youtube/web/channels/shorts
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 예 | string |
continuation_token | 아니요 | string |
curl --get "https://api.apihop.ai/v1/youtube/web/channels/shorts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw"web-search_channel
GET https://api.apihop.ai/v1/youtube/web/channels/search
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 예 | string |
search_query | 예 | string |
language_code | 아니요 | string; default: "en" |
country_code | 아니요 | string; default: "us" |
continuation_token | 아니요 | string |
curl --get "https://api.apihop.ai/v1/youtube/web/channels/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCXuqSBlHAE6Xw-yeJA0Tunw" \
--data-urlencode "search_query=AMD"web_v2-get_video_info
GET https://api.apihop.ai/v1/youtube/web-v2/videos/info
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 예 | string; minLength: 11; maxLength: 11 |
language_code | 아니요 | string; default: "zh-CN" |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/info" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "video_id=oaSNBz4qMQY"web_v2-get_video_info_v2
GET https://api.apihop.ai/v1/youtube/web-v2/videos/info-v2
성공한 요청당 가격: $0.001 (1000 credits).
최소 하나: video_id, video_url.
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 아니요 | string |
video_url | 아니요 | string |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/info-v2" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "video_id=dQw4w9WgXcQ"web_v2-get_video_comments
GET https://api.apihop.ai/v1/youtube/web-v2/videos/comments
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 예 | string; minLength: 11; maxLength: 11 |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
sort_by | 아니요 | string; top, newest; default: "top" |
continuation_token | 아니요 | string |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/comments" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "video_id=LuIL5JATZsc"web_v2-get_video_comment_replies
GET https://api.apihop.ai/v1/youtube/web-v2/videos/comments/replies
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
continuation_token | 예 | string |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/comments/replies" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "continuation_token=example"web_v2-get_channel_description
GET https://api.apihop.ai/v1/youtube/web-v2/channels/description
성공한 요청당 가격: $0.001 (1000 credits).
최소 하나: channel_id, continuation_token.
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 아니요 | string |
continuation_token | 아니요 | string |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/channels/description" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCeu6U67OzJhV1KwBansH3Dg"web_v2-get_general_search
GET https://api.apihop.ai/v1/youtube/web-v2/search
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
search_query | 예 | string; maxLength: 200 |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
time_zone | 아니요 | string; default: "America/Los_Angeles" |
upload_time | 아니요 | string; hour, today, week, month, year |
duration | 아니요 | string; short, medium, long |
content_type | 아니요 | string; video, channel, playlist, movie |
feature | 아니요 | string; live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location, purchased |
sort_by | 아니요 | string; relevance, upload_date, view_count, rating |
continuation_token | 아니요 | string |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/search" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "search_query=Python编程"web_v2-get_general_search_v2
GET https://api.apihop.ai/v1/youtube/web-v2/search-v2
성공한 요청당 가격: $0.002 (2000 credits).
최소 하나: keyword, continuation_token.
| 필드 | 필수 | 규격 |
|---|---|---|
keyword | 아니요 | string; maxLength: 200 |
continuation_token | 아니요 | string |
upload_date | 아니요 | string; last_hour, today, this_week, this_month, this_year |
type | 아니요 | string; video, channel, playlist, movie |
duration | 아니요 | string; short, medium, long |
features | 아니요 | string |
sort_by | 아니요 | string; relevance, upload_date, view_count, rating |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/search-v2" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "keyword=Python tutorial"web_v2-get_shorts_search
GET https://api.apihop.ai/v1/youtube/web-v2/search/shorts
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
search_query | 예 | string; maxLength: 200 |
language_code | 아니요 | string; default: "en-US" |
country_code | 아니요 | string; default: "US" |
time_zone | 아니요 | string; default: "America/Los_Angeles" |
upload_time | 아니요 | string; hour, today, week, month, year |
sort_by | 아니요 | string; relevance, upload_date, view_count, rating |
continuation_token | 아니요 | string |
filter_mixed_content | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/search/shorts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "search_query=Python编程"web_v2-get_shorts_search_v2
GET https://api.apihop.ai/v1/youtube/web-v2/search/shorts-v2
성공한 요청당 가격: $0.002 (2000 credits).
최소 하나: keyword, continuation_token.
| 필드 | 필수 | 규격 |
|---|---|---|
keyword | 아니요 | string; maxLength: 200 |
continuation_token | 아니요 | string |
upload_date | 아니요 | string; last_hour, today, this_week, this_month, this_year |
sort_by | 아니요 | string; relevance, upload_date, view_count, rating |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/search/shorts-v2" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "keyword=coding tips"web_v2-get_channel_id
GET https://api.apihop.ai/v1/youtube/web-v2/channels/id
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_url | 예 | string |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/channels/id" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_url=https://www.youtube.com/@CozyCraftYT"web_v2-get_channel_url
GET https://api.apihop.ai/v1/youtube/web-v2/channels/url
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 예 | string |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/channels/url" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCeu6U67OzJhV1KwBansH3Dg"web_v2-get_channel_videos
GET https://api.apihop.ai/v1/youtube/web-v2/channels/videos
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 예 | string |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
continuation_token | 아니요 | string |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/channels/videos" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCJHBJ7F-nAIlMGolm0Hu4vg"web_v2-get_video_streams
GET https://api.apihop.ai/v1/youtube/web-v2/videos/streams
성공한 요청당 가격: $0.001 (1000 credits).
최소 하나: video_id, video_url.
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 아니요 | string |
video_url | 아니요 | string |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/streams" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "video_id=dQw4w9WgXcQ"web_v2-get_video_streams_v2
GET https://api.apihop.ai/v1/youtube/web-v2/videos/streams-v2
성공한 요청당 가격: $0.004 (4000 credits).
최소 하나: video_id, video_url.
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 아니요 | string |
video_url | 아니요 | string |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/streams-v2" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "video_id=dQw4w9WgXcQ"web_v2-get_signed_stream_url
GET https://api.apihop.ai/v1/youtube/web-v2/videos/streams/signed-url
성공한 요청당 가격: $0.001 (1000 credits).
최소 하나: video_id, video_url.
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 아니요 | string |
video_url | 아니요 | string |
itag | 예 | integer |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/streams/signed-url" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "itag=18" \
--data-urlencode "video_id=dQw4w9WgXcQ"web_v2-get_video_captions
POST https://api.apihop.ai/v1/youtube/web-v2/videos/captions
성공한 요청당 가격: $0.008 (8000 credits).
최소 하나: video_id, video_url.
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 아니요 | string |
video_url | 아니요 | string |
language_code | 아니요 | string |
format | 아니요 | string; srt, xml, json3, txt; default: "srt" |
curl -X POST "https://api.apihop.ai/v1/youtube/web-v2/videos/captions" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{"format":"srt","video_id":"dQw4w9WgXcQ"}'web_v2-get_video_captions_result
GET https://api.apihop.ai/v1/youtube/web-v2/videos/captions/result
성공한 요청당 가격: $0 (0 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
job_id | 예 | string; ^[1-9][0-9]{0,18}$ |
format | 아니요 | string; srt, xml, json3, txt; default: "srt" |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/captions/result" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "job_id=9007199254740993001"web_v2-get_related_videos
GET https://api.apihop.ai/v1/youtube/web-v2/videos/related
성공한 요청당 가격: $0.001 (1000 credits).
최소 하나: video_id, video_url.
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 아니요 | string |
video_url | 아니요 | string |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/related" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "video_id=dQw4w9WgXcQ"web_v2-get_channel_shorts
GET https://api.apihop.ai/v1/youtube/web-v2/channels/shorts
성공한 요청당 가격: $0.001 (1000 credits).
최소 하나: channel_id, channel_url.
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 아니요 | string |
channel_url | 아니요 | string |
continuation_token | 아니요 | string |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/channels/shorts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCuAXFkgsw1L7xaCfnd5JJOw"web_v2-get_search_suggestions
GET https://api.apihop.ai/v1/youtube/web-v2/search/suggestions
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
keyword | 예 | string; maxLength: 200 |
language | 아니요 | string; default: "en" |
region | 아니요 | string; default: "US" |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/search/suggestions" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "keyword=Rick Astley"web_v2-search_channels
GET https://api.apihop.ai/v1/youtube/web-v2/search/channels
성공한 요청당 가격: $0.001 (1000 credits).
최소 하나: keyword, continuation_token.
| 필드 | 필수 | 규격 |
|---|---|---|
keyword | 아니요 | string; maxLength: 200 |
continuation_token | 아니요 | string |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/search/channels" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "keyword=Rick Astley"web_v2-get_channel_community_posts
GET https://api.apihop.ai/v1/youtube/web-v2/channels/posts
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
channel_id | 예 | string |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
continuation_token | 아니요 | string |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/channels/posts" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "channel_id=UCkRfArvrzheW2E7b6SVT7vQ"web_v2-get_post_detail
GET https://api.apihop.ai/v1/youtube/web-v2/posts/detail
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
post_id | 예 | string |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/posts/detail" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "post_id=UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy"web_v2-get_post_comments
GET https://api.apihop.ai/v1/youtube/web-v2/posts/comments
성공한 요청당 가격: $0.001 (1000 credits).
최소 하나: post_id, continuation_token.
| 필드 | 필수 | 규격 |
|---|---|---|
post_id | 아니요 | string |
continuation_token | 아니요 | string |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/posts/comments" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "post_id=UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy"web_v2-get_post_comment_replies
GET https://api.apihop.ai/v1/youtube/web-v2/posts/comments/replies
성공한 요청당 가격: $0.001 (1000 credits).
| 필드 | 필수 | 규격 |
|---|---|---|
continuation_token | 예 | string |
language_code | 아니요 | string; default: "zh-CN" |
country_code | 아니요 | string; default: "US" |
need_format | 아니요 | boolean; default: true |
curl --get "https://api.apihop.ai/v1/youtube/web-v2/posts/comments/replies" \
-H "Authorization: Bearer YOUR_API_KEY" \
--data-urlencode "continuation_token=example"web_v2-get_video_streams_v3
POST https://api.apihop.ai/v1/youtube/web-v2/videos/streams-v3
성공한 요청당 가격: $0.003 (3000 credits).
V3는 HTTPS의 POST JSON을 사용하며 성공한 요청당 $0.003입니다. video_id와 proxy_url(http://, 명시적 포트, 공인 호스트)을 제공하세요. 사설, 루프백, 링크 로컬 주소는 금지되며 인증 정보의 예약 문자는 URL 인코딩하세요. 고정 출구 또는 고정 세션을 사용하세요. itags 기본값은 ["137", "140"]이며 없는 형식은 대체 없이 실패합니다. verify_download 기본값은 false입니다. 같은 프록시 세션과 실제 공인 출구 IP를 사용하고 streams[].download_headers를 포함해 다운로드하세요. URL 추출에 성공한 HTTP 200은 all_selected_streams_verified 또는 streams[].verified가 false여도 과금됩니다. 검증은 소량의 바이트만 표본 확인하며 전체 파일 검증이 아닙니다. URL과 세션은 각각 만료되며 분리된 음성과 영상은 클라이언트에서 합쳐야 합니다.
| 필드 | 필수 | 규격 |
|---|---|---|
video_id | 예 | string; ^[A-Za-z0-9_-]{11}$ |
proxy_url | 예 | string; minLength: 1; maxLength: 2048; writeOnly: true |
itags | 아니요 | array; items: string ^[0-9]+$; minItems: 1; maxItems: 4; uniqueItems: true; default: ["137","140"] |
verify_download | 아니요 | boolean; default: false |
curl -X POST "https://api.apihop.ai/v1/youtube/web-v2/videos/streams-v3" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
--data '{"video_id":"phlZ2J3x4hI","proxy_url":"http://USERNAME:PASSWORD@proxy.example.com:1000","itags":["137","140"],"verify_download":false}'응답
동기 엔드포인트는 원본 JSON 응답을 보존합니다. 자막 엔드포인트는 success, data.id, data.status, data.result, requestId를 반환합니다. 예시는 설명용이며 실제 결과가 아닙니다.
{"code":200,"data":{"channel_id":"UCXuqSBlHAE6Xw-yeJA0Tunw"}}오류
HTTP 400은 잘못된 매개변수, 401은 인증 실패, 402는 잔액 부족, 403은 접근 거부, 429는 요청 제한, 5xx는 서비스 또는 공급자 오류를 나타냅니다. 문제 해결을 위해 X-Request-Id를 보관하세요. 실패한 업무 코드를 포함하는 HTTP 200은 성공이 아닙니다.
출처
2026-10-31에 공식 스키마와 최신 가격 메타데이터를 대조했습니다. 설명의 가격과 충돌하면 최신 메타데이터를 우선합니다.