API Hop-Dokumentation
YouTube-Endpunktreferenz
Fragen Sie YouTube-Videos, Kanäle, Shorts, Kommentare, Community-Beiträge, Suchergebnisse und Stream-Metadaten über 34 authentifizierte Endpunkte ab: 32 GET und 2 POST.
Senden Sie nur die dokumentierten Felder des gewählten Endpunkts. Bei Alternativgruppen ist mindestens ein Feld je Gruppe erforderlich. Seitencursor stammen aus der vorherigen Antwort; Seiten werden nicht automatisch abgerufen.
GET-Vorgänge verwenden Abfrageparameter ohne Anfragekörper. Stream V3 verwendet POST mit einem application/json-Körper ohne Abfrageparameter; proxy_url gehört ausschließlich in den Körper. Das Versionssegment wählt die YouTube-Schnittstellenversion. Unbekannte oder doppelte Felder werden abgelehnt. IDs und Seitencursor bleiben Zeichenfolgen, auch oberhalb des sicheren JavaScript-Ganzzahlbereichs.
Für synchrone Anfragen: Abgerechnet wird je erfolgreicher Anfrage, nicht je Datensatz. Jede Seite ist eine separate Anfrage. Die meisten Operationen kosten $0.001. Die beiden V2-Suchvarianten kosten $0.002, die V2-Stream-Variante $0.004. Der Preis steht bei jedem Endpunkt. Kontospezifische Preise haben Vorrang. Mengenrabatte des Anbieters werden nicht automatisch weitergegeben. Fehlgeschlagene Anbieteranfragen geben die Reservierung frei; Abrechnungsfehler lösen keine zweite Anbieteranfrage aus.
Untertitelaufträge
POST https://api.apihop.ai/v1/youtube/web-v2/videos/captions liefert HTTP 202, eine Plattform-Auftrags-ID und Location: /v1/jobs/\{id\}. Fragen Sie GET https://api.apihop.ai/v1/youtube/web-v2/videos/captions/result?job_id=\{id\} alle 2–5 Sekunden ab. Nur der besitzende Mandant erhält Zugriff. Ergebnisabfragen sind kostenlos; Erstellung kostet laut Listenpreis $0.008. Ergebnisse ohne Untertitel gelten als erfolgreich und kostenpflichtig. Das Format wird bei Erstellung festgelegt (Standard srt); ein optionales format beim Abruf muss übereinstimmen, sonst folgt HTTP 400. data.result bleibt bis COMPLETED null; FAILED ist ebenfalls möglich. Es werden vorhandene Untertitel abgerufen, keine KI-Transkriptionen erstellt.
Ist die Annahme eines Auftrags ungewiss, wird er nicht erneut eingereicht; die Reservierung kann bis zur Auftragsfrist von 30 Minuten bestehen bleiben. Ein Anbieterergebnis kann während des Abrechnungsabgleichs ausstehen. Ein vorübergehender Abruffehler ist kein endgültiger Auftragsfehler.
{"success":true,"data":{"id":"9007199254740993001","status":"PROCESSING","result":null},"requestId":"example"}Umfang und Grenzen
web und web-v2 wählen die Schnittstellenfamilie. Stream V3 unterstützt POST-Anfragen mit einem eigenen HTTP-Proxy mit fester Ausgangs-IP. Stream-Endpunkte liefern Metadaten und URLs, keine Mediendateien oder Downloadgarantie. Kanalbeschreibungen können eine zweite, separat berechnete Anfrage mit continuation_token benötigen. Es gibt keine automatischen Wiederholungen.
web-get_relate_video
GET https://api.apihop.ai/v1/youtube/web/videos/related
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Ja | string |
continuation_token | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
search_query | Ja | string |
language_code | Nein | string; default: "en" |
order_by | Nein | string; default: "this_month" |
country_code | Nein | string; default: "us" |
continuation_token | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_name | Ja | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_url | Ja | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Ja | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Ja | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Ja | string |
continuation_token | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Ja | string |
search_query | Ja | string |
language_code | Nein | string; default: "en" |
country_code | Nein | string; default: "us" |
continuation_token | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Ja | string; minLength: 11; maxLength: 11 |
language_code | Nein | string; default: "zh-CN" |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
Mindestens eines: video_id, video_url.
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Nein | string |
video_url | Nein | string |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Ja | string; minLength: 11; maxLength: 11 |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
sort_by | Nein | string; top, newest; default: "top" |
continuation_token | Nein | string |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
continuation_token | Ja | string |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
Mindestens eines: channel_id, continuation_token.
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Nein | string |
continuation_token | Nein | string |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
search_query | Ja | string; maxLength: 200 |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
time_zone | Nein | string; default: "America/Los_Angeles" |
upload_time | Nein | string; hour, today, week, month, year |
duration | Nein | string; short, medium, long |
content_type | Nein | string; video, channel, playlist, movie |
feature | Nein | string; live, 4k, hd, subtitles, creative_commons, 360, vr180, 3d, hdr, location, purchased |
sort_by | Nein | string; relevance, upload_date, view_count, rating |
continuation_token | Nein | 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
Preis je erfolgreicher Anfrage: $0.002 (2000 credits).
Mindestens eines: keyword, continuation_token.
| Feld | Erforderlich | Vertrag |
|---|---|---|
keyword | Nein | string; maxLength: 200 |
continuation_token | Nein | string |
upload_date | Nein | string; last_hour, today, this_week, this_month, this_year |
type | Nein | string; video, channel, playlist, movie |
duration | Nein | string; short, medium, long |
features | Nein | string |
sort_by | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
search_query | Ja | string; maxLength: 200 |
language_code | Nein | string; default: "en-US" |
country_code | Nein | string; default: "US" |
time_zone | Nein | string; default: "America/Los_Angeles" |
upload_time | Nein | string; hour, today, week, month, year |
sort_by | Nein | string; relevance, upload_date, view_count, rating |
continuation_token | Nein | string |
filter_mixed_content | Nein | 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
Preis je erfolgreicher Anfrage: $0.002 (2000 credits).
Mindestens eines: keyword, continuation_token.
| Feld | Erforderlich | Vertrag |
|---|---|---|
keyword | Nein | string; maxLength: 200 |
continuation_token | Nein | string |
upload_date | Nein | string; last_hour, today, this_week, this_month, this_year |
sort_by | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_url | Ja | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Ja | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Ja | string |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
continuation_token | Nein | string |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
Mindestens eines: video_id, video_url.
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Nein | string |
video_url | Nein | 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
Preis je erfolgreicher Anfrage: $0.004 (4000 credits).
Mindestens eines: video_id, video_url.
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Nein | string |
video_url | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
Mindestens eines: video_id, video_url.
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Nein | string |
video_url | Nein | string |
itag | Ja | 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
Preis je erfolgreicher Anfrage: $0.008 (8000 credits).
Mindestens eines: video_id, video_url.
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Nein | string |
video_url | Nein | string |
language_code | Nein | string |
format | Nein | 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
Preis je erfolgreicher Anfrage: $0 (0 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
job_id | Ja | string; ^[1-9][0-9]{0,18}$ |
format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
Mindestens eines: video_id, video_url.
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Nein | string |
video_url | Nein | string |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
Mindestens eines: channel_id, channel_url.
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Nein | string |
channel_url | Nein | string |
continuation_token | Nein | string |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
keyword | Ja | string; maxLength: 200 |
language | Nein | string; default: "en" |
region | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
Mindestens eines: keyword, continuation_token.
| Feld | Erforderlich | Vertrag |
|---|---|---|
keyword | Nein | string; maxLength: 200 |
continuation_token | Nein | string |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
channel_id | Ja | string |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
continuation_token | Nein | string |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
post_id | Ja | string |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
Mindestens eines: post_id, continuation_token.
| Feld | Erforderlich | Vertrag |
|---|---|---|
post_id | Nein | string |
continuation_token | Nein | string |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.001 (1000 credits).
| Feld | Erforderlich | Vertrag |
|---|---|---|
continuation_token | Ja | string |
language_code | Nein | string; default: "zh-CN" |
country_code | Nein | string; default: "US" |
need_format | Nein | 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
Preis je erfolgreicher Anfrage: $0.003 (3000 credits).
Stream V3 verwendet POST JSON über HTTPS und kostet $0.003 je erfolgreicher Anfrage. Übergeben Sie video_id und proxy_url (http:// mit explizitem Port und öffentlichem Host). Private, Loopback- und Link-Local-Ziele sind verboten; reservierte Zeichen in Zugangsdaten müssen URL-kodiert sein. Verwenden Sie eine feste Ausgangs-IP oder Sticky Session. itags ist standardmäßig ["137", "140"]; fehlende Formate werden nicht ersetzt. verify_download ist standardmäßig false. Laden Sie mit derselben Proxy-Sitzung, tatsächlichen öffentlichen Ausgangs-IP und streams[].download_headers herunter. Erfolgreiche URL-Ermittlung (HTTP 200) wird auch bei all_selected_streams_verified oder streams[].verified gleich false berechnet. Geprüft werden nur kleine Bytebereiche, nicht die gesamte Datei. URLs und Sitzungen laufen unabhängig ab; getrennte Audio- und Videoströme müssen Sie selbst zusammenführen.
| Feld | Erforderlich | Vertrag |
|---|---|---|
video_id | Ja | string; ^[A-Za-z0-9_-]{11}$ |
proxy_url | Ja | string; minLength: 1; maxLength: 2048; writeOnly: true |
itags | Nein | array; items: string ^[0-9]+$; minItems: 1; maxItems: 4; uniqueItems: true; default: ["137","140"] |
verify_download | Nein | 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}'Antworten
Synchrone Endpunkte erhalten die ursprüngliche JSON-Antwort. Untertitelendpunkte liefern success, data.id, data.status, data.result und requestId. Die Beispiele sind illustrativ, keine Live-Ergebnisse.
{"code":200,"data":{"channel_id":"UCXuqSBlHAE6Xw-yeJA0Tunw"}}Fehler
HTTP 400 bezeichnet ungültige Parameter, 401 ungültige Authentifizierung, 402 unzureichendes Guthaben, 403 fehlenden Gateway-Zugriff, 429 Ratenbegrenzungen und 5xx Dienst- oder Anbieterfehler. Bewahren Sie X-Request-Id zur Fehleranalyse auf. HTTP 200 mit einem fehlerhaften Geschäftscode ist kein Erfolg.
Quellen
Endpunkte und Preise wurden am 2026-10-31 mit dem offiziellen Schema und aktuellen Preismetadaten abgeglichen. Aktuelle Metadaten haben bei widersprüchlichen Textangaben Vorrang.