API Hop

दस्तावेज़

API Hop दस्तावेज़

YouTube एंडपॉइंट संदर्भ

34 प्रमाणित एंडपॉइंट से YouTube वीडियो, चैनल, Shorts, टिप्पणियाँ, समुदाय पोस्ट, खोज परिणाम और स्ट्रीम मेटाडेटा क्वेरी करें: 32 GET और 2 POST।

एंडपॉइंट चुनें और केवल उसके दस्तावेज़ीकृत फ़ील्ड भेजें। विकल्प सूचीबद्ध हों तो हर समूह से कम-से-कम एक फ़ील्ड दें। पृष्ठांकन मान पिछले उत्तर से आने चाहिए; स्वचालित पृष्ठांकन नहीं है।

GET ऑपरेशन बिना अनुरोध बॉडी के क्वेरी पैरामीटर लेते हैं। Stream 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, Location: /v1/jobs/\{id\} के साथ HTTP 202 और प्लेटफ़ॉर्म कार्य ID लौटाता है। हर 2–5 सेकंड में GET https://api.apihop.ai/v1/youtube/web-v2/videos/captions/result?job_id=\{id\} क्वेरी करें। केवल स्वामी टेनेंट कार्य पढ़ सकता है। परिणाम क्वेरी मुफ़्त हैं; निर्माण की सूची कीमत $0.008 है। कैप्शन न मिलने वाले परिणाम सफल और बिल योग्य हैं। प्रारूप निर्माण पर तय है (डिफ़ॉल्ट srt); वैकल्पिक परिणाम प्रारूप मेल खाना चाहिए, अन्यथा HTTP 400। COMPLETED तक data.result null है; कार्य FAILED पर समाप्त हो सकते हैं। ये एंडपॉइंट मौजूदा कैप्शन लाते हैं, AI ट्रांसक्रिप्शन नहीं करते।

सबमिशन स्वीकृति अनिश्चित हो तो अनुरोध दोहराया नहीं जाता और उसका आरक्षण 30-मिनट कार्य समयसीमा तक रह सकता है। निपटान मिलान के दौरान प्रदाता परिणाम लंबित रह सकता है। अस्थायी पोलिंग त्रुटि कार्य की अंतिम विफलता नहीं है।

json
{"success":true,"data":{"id":"9007199254740993001","status":"PROCESSING","result":null},"requestId":"example"}

दायरा और सीमाएँ

web और web-v2 पथ अपस्ट्रीम इंटरफ़ेस परिवार चुनते हैं। Stream V3 आपके स्थिर निकास वाले HTTP प्रॉक्सी से POST प्राप्ति समर्थित करता है। स्ट्रीम एंडपॉइंट मेटाडेटा और URL देते हैं, मीडिया फ़ाइल या गारंटीकृत डाउनलोड नहीं। चैनल विवरण के लिए continuation_token वाला दूसरा, अलग बिल योग्य अनुरोध लग सकता है। स्वचालित पुनःप्रयास नहीं होता।

web-get_relate_video

GET https://api.apihop.ai/v1/youtube/web/videos/related

प्रति सफल अनुरोध कीमत: $0.001 (1000 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
video_idहाँstring
continuation_tokenनहींstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
search_queryहाँstring
language_codeनहींstring; डिफ़ॉल्ट: "en"
order_byनहींstring; डिफ़ॉल्ट: "this_month"
country_codeनहींstring; डिफ़ॉल्ट: "us"
continuation_tokenनहींstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_nameहाँstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_urlहाँstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_idहाँstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_idहाँstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_idहाँstring
continuation_tokenनहींstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_idहाँstring
search_queryहाँstring
language_codeनहींstring; डिफ़ॉल्ट: "en"
country_codeनहींstring; डिफ़ॉल्ट: "us"
continuation_tokenनहींstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
video_idहाँstring; minLength: 11; maxLength: 11
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

कम-से-कम एक: video_id, video_url.

फ़ील्डआवश्यकअनुबंध
video_idनहींstring
video_urlनहींstring
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
video_idहाँstring; minLength: 11; maxLength: 11
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
sort_byनहींstring; top, newest; डिफ़ॉल्ट: "top"
continuation_tokenनहींstring
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
continuation_tokenहाँstring
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

कम-से-कम एक: channel_id, continuation_token.

फ़ील्डआवश्यकअनुबंध
channel_idनहींstring
continuation_tokenनहींstring
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
curl --get "https://api.apihop.ai/v1/youtube/web-v2/channels/description" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "channel_id=UCeu6U67OzJhV1KwBansH3Dg"

GET https://api.apihop.ai/v1/youtube/web-v2/search

प्रति सफल अनुरोध कीमत: $0.001 (1000 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
search_queryहाँstring; maxLength: 200
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
time_zoneनहींstring; डिफ़ॉल्ट: "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
bash
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 क्रेडिट)।

कम-से-कम एक: 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
bash
curl --get "https://api.apihop.ai/v1/youtube/web-v2/search-v2" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "keyword=Python tutorial"

GET https://api.apihop.ai/v1/youtube/web-v2/search/shorts

प्रति सफल अनुरोध कीमत: $0.001 (1000 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
search_queryहाँstring; maxLength: 200
language_codeनहींstring; डिफ़ॉल्ट: "en-US"
country_codeनहींstring; डिफ़ॉल्ट: "US"
time_zoneनहींstring; डिफ़ॉल्ट: "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; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

कम-से-कम एक: 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
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_urlहाँstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_idहाँstring
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_idहाँstring
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
continuation_tokenनहींstring
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

कम-से-कम एक: video_id, video_url.

फ़ील्डआवश्यकअनुबंध
video_idनहींstring
video_urlनहींstring
bash
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 क्रेडिट)।

कम-से-कम एक: video_id, video_url.

फ़ील्डआवश्यकअनुबंध
video_idनहींstring
video_urlनहींstring
bash
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 क्रेडिट)।

कम-से-कम एक: video_id, video_url.

फ़ील्डआवश्यकअनुबंध
video_idनहींstring
video_urlनहींstring
itagहाँinteger
bash
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 क्रेडिट)।

कम-से-कम एक: video_id, video_url.

फ़ील्डआवश्यकअनुबंध
video_idनहींstring
video_urlनहींstring
language_codeनहींstring
formatनहींstring; srt, xml, json3, txt; डिफ़ॉल्ट: "srt"
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
job_idहाँstring; ^[1-9][0-9]{0,18}$
formatनहींstring; srt, xml, json3, txt; डिफ़ॉल्ट: "srt"
bash
curl --get "https://api.apihop.ai/v1/youtube/web-v2/videos/captions/result" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  --data-urlencode "job_id=9007199254740993001"

GET https://api.apihop.ai/v1/youtube/web-v2/videos/related

प्रति सफल अनुरोध कीमत: $0.001 (1000 क्रेडिट)।

कम-से-कम एक: video_id, video_url.

फ़ील्डआवश्यकअनुबंध
video_idनहींstring
video_urlनहींstring
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

कम-से-कम एक: channel_id, channel_url.

फ़ील्डआवश्यकअनुबंध
channel_idनहींstring
channel_urlनहींstring
continuation_tokenनहींstring
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
keywordहाँstring; maxLength: 200
languageनहींstring; डिफ़ॉल्ट: "en"
regionनहींstring; डिफ़ॉल्ट: "US"
bash
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 क्रेडिट)।

कम-से-कम एक: keyword, continuation_token.

फ़ील्डआवश्यकअनुबंध
keywordनहींstring; maxLength: 200
continuation_tokenनहींstring
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
channel_idहाँstring
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
continuation_tokenनहींstring
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
post_idहाँstring
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

कम-से-कम एक: post_id, continuation_token.

फ़ील्डआवश्यकअनुबंध
post_idनहींstring
continuation_tokenनहींstring
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

फ़ील्डआवश्यकअनुबंध
continuation_tokenहाँstring
language_codeनहींstring; डिफ़ॉल्ट: "zh-CN"
country_codeनहींstring; डिफ़ॉल्ट: "US"
need_formatनहींboolean; डिफ़ॉल्ट: true
bash
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 क्रेडिट)।

Stream V3, HTTPS पर POST JSON इस्तेमाल करता है और प्रति सफल अनुरोध $0.003 लेता है। video_id और proxy_url दें (स्पष्ट पोर्ट और सार्वजनिक होस्ट वाला http://); निजी, loopback और link-local गंतव्य प्रतिबंधित हैं। क्रेडेंशियल के आरक्षित अक्षर URL-encode करें। स्थिर निकास या sticky प्रॉक्सी सत्र लें। itags का डिफ़ॉल्ट ["137", "140"] है; अनुपलब्ध प्रारूप बिना विकल्प दिए विफल होते हैं। verify_download का डिफ़ॉल्ट false है। streams[].download_headers के साथ उसी प्रॉक्सी सत्र और वास्तविक सार्वजनिक निकास IP से डाउनलोड करें। सफल URL निष्कर्षण (HTTP 200) तब भी बिल योग्य है जब all_selected_streams_verified या streams[].verified false हो। सत्यापन छोटे byte range जाँचता है, पूरी फ़ाइल नहीं। 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; डिफ़ॉल्ट: ["137","140"]
verify_downloadनहींboolean; डिफ़ॉल्ट: false
bash
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 लौटाते हैं। नीचे के उदाहरण समझाने के लिए हैं, लाइव परिणाम नहीं।

json
{"code":200,"data":{"channel_id":"UCXuqSBlHAE6Xw-yeJA0Tunw"}}

त्रुटियाँ

प्लेटफ़ॉर्म त्रुटियों में अमान्य पैरामीटर के लिए HTTP 400, अमान्य प्रमाणीकरण के लिए 401, अपर्याप्त क्रेडिट के लिए 402, गेटवे पहुँच अस्वीकृति के लिए 403, दर सीमा के लिए 429 और सेवा या प्रदाता विफलता के लिए 5xx हैं। निदान के लिए X-Request-Id रखें। विफल व्यावसायिक कोड वाले अपस्ट्रीम HTTP 200 को सफलता न मानें।

स्रोत

एंडपॉइंट सूची और कीमतें 2026-10-31 को आधिकारिक स्कीमा तथा लाइव कीमत मेटाडेटा से जाँची गईं। विवरण की विरोधी कीमतों पर लाइव मेटाडेटा को प्राथमिकता है।

TikHub · OpenAPI · कीमतें