{
"items": [
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "UgzKYksqeQ5gA3t0g0F4AaABAg",
"text": "I Rick rolled my entire French class because we had to study a city in France and make a quiz about it as well as a presentation, I decided to make a Kahoot quiz because it’s very easy. I put a link in to this saying it’s the kahoot link. The teacher needless to say got very very mad. As well as my classmates asking who rick rolls in 2019",
"author": "@grustache4569",
"authorChannelId": "UCKrzgYonJnMd0Dk7zQXjYXw",
"authorPhoto": "https://yt3.ggpht.com/ytc/AIdro_kDD-FhIbth2qcBbI9VGxR41dJa0kE3kN9iVlGzNgRU_g=s88-c-k-c0x00ffffff-no-rj",
"likes": "109 mil",
"replyCount": 740,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 7 anos (editado)",
"publishedAtApprox": "2019-11-23T18:37:27.563175+00:00"
},
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "UgwPwTibxdgqCHZxktd4AaABAg",
"text": "My algebra teacher said that this was a link to the test answers",
"author": "@bdr8823",
"authorChannelId": "UCdi6tGxvFvTRGe-7dAn7m7w",
"authorPhoto": "https://yt3.ggpht.com/ytc/AIdro_kcDoQJUNDkDzTrA5kaF5ADVujN-6UcDjMP2Kydtw=s88-c-k-c0x00ffffff-no-rj",
"likes": "72 mil",
"replyCount": 708,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 7 anos",
"publishedAtApprox": "2019-11-23T18:37:27.568448+00:00"
},
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "Ugw10bSluCDSZMIxUSB4AaABAg",
"text": "Let’s put the meme aside, this is actually a banging song.",
"author": "@LK-ht7qz",
"authorChannelId": "UCHpvHTRSILoOFKWX5oFCYDA",
"authorPhoto": "https://yt3.ggpht.com/RJnrz4JwDmHNgtFdnVdJ6FKLiuo59IuHkY6bvqaEJM0mxTSlq0GKQs_ItA-sJ8QMqps_lf9Lvgs=s88-c-k-c0x00ffffff-no-rj",
"likes": "223 mil",
"replyCount": 666,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 6 anos",
"publishedAtApprox": "2020-11-23T18:37:27.571719+00:00"
},
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "UgyW4kfw4IeIP2SVP6N4AaABAg",
"text": "They should turn off ads so that the rickroll happens by surprise...\n\nWOW! I can't believe it! One billion views!! This is a very special moment for me. God bless you all, and hope there's more billions of views in the future!\n\nOK, guys, I have a confesion: I was just copying what some memes from Reddit and YouTube already said, since it was a good idea. This is not an original comment...",
"author": "@GabrielsEpicLifeofGoals",
"authorChannelId": "UCUztIF1vqHhPGCbO27IRDEg",
"authorPhoto": "https://yt3.ggpht.com/ytc/AIdro_keh05OEEoNHBwN1maGSGYTcVTcuPz-9Vl1Q6O9FYemDw=s88-c-k-c0x00ffffff-no-rj",
"likes": "73 mil",
"replyCount": 462,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 7 anos (editado)",
"publishedAtApprox": "2019-11-23T18:37:27.574921+00:00"
},
{
"videoId": "dQw4w9WgXcQ",
"videoUrl": "https://www.youtube.com/watch?v=dQw4w9WgXcQ",
"commentId": "Ugzn9VS5jfDEby21Yv94AaABAg",
"text": "Yall still getting rick rolled after gta6",
"author": "@ELIBRON-i2g",
"authorChannelId": "UCYkKHiczoMbaR7v7kuefCAg",
"authorPhoto": "https://yt3.ggpht.com/9ptwIqgvw-f3nu8YMMQZmvZ2DRJ_0KFqQQ5NIsjtNZnNIlN3gefuQRQvtI4SoyI_s7G0mb7Lyw=s88-c-k-c0x00ffffff-no-rj",
"likes": 126,
"replyCount": 6,
"isReply": false,
"parentCommentId": null,
"heartedByCreator": false,
"publishedTimeText": "há 15 horas",
"publishedAtApprox": "2026-11-23T03:37:27.577038+00:00"
}
],
"meta": {
"robot": "youtube-comments",
"items": 5,
"status": "SUCCEEDED",
"seconds": 3,
"via": "vps"
}
}
curl --location --request GET 'https://zylalabs.com/api/15392/youtube+comments+scraper+api/41367/youtube+comments?video=https://www.youtube.com/watch?v=dQw4w9WgXcQ&max=5' --header 'Authorization: Bearer YOUR_API_KEY'
साइन अप करने के बाद, प्रत्येक डेवलपर को एक पर्सनल API एक्सेस की असाइन की जाती है, जो अक्षरों और अंकों का एक यूनिक संयोजन होता है, जिसका उपयोग हमारे API एंडपॉइंट तक पहुंचने के लिए किया जाता है। प्रमाणीकरण के लिए यूट्यूब टिप्पणियाँ स्क्रैपर API के साथ बस अपने बेयरर टोकन को Authorization हेडर में शामिल करें।
| हेडर | विवरण |
|---|---|
Authorization
|
आवश्यक
होना चाहिए Bearer access_key. जब आप सब्सक्राइब हों तो ऊपर "Your API Access Key" देखें।
|
कोई लंबी अवधि की प्रतिबद्धता नहीं। कभी भी अपग्रेड, डाउनग्रेड या कैंसल करें। फ्री ट्रायल में 50 रिक्वेस्ट तक शामिल हैं।
यह YouTube वीडियो और Shorts से टिप्पणियाँ और उत्तर लौटाता है प्रत्येक आइटम में वीडियो संदर्भ टिप्पणी का पाठ लेखक का विवरण पसंद की संख्या उत्तरों की संख्या प्रकाशन का समय पिन की गई स्थिति निर्माता द्वारा दिल दिए जाने की स्थिति और उत्तरों के संबंध शामिल हो सकते हैं
मुख्य फ़ील्ड में `videoId`, `videoUrl`, `commentId`, `text`, `author`, `authorChannelId`, `authorPhoto`, `likes`, `replyCount`, `isReply`, `parentCommentId`, `heartedByCreator` और `publishedTimeText` शामिल हैं
प्रतिक्रिया एक JSON ऑब्जेक्ट है जिसमें `items` ऐरे है प्रत्येक ऐरे तत्व एक शीर्ष-स्तरीय टिप्पणी या उत्तर को दर्शाता है उत्तरों की पहचान `isReply: true` से होती है और वे `parentCommentId` के माध्यम से अपनी मूल टिप्पणी का संदर्भ दे सकते हैं
`isReply` फ़ील्ड जाँचें। शीर्ष-स्तरीय टिप्पणी में `isReply: false` होता है और आम तौर पर `parentCommentId` null होता है। उत्तर में `isReply: true` होता है और यह उस टिप्पणी की पहचान करने के लिए `parentCommentId` का उपयोग करता है जिससे वह संबंधित है
हर रिकॉर्ड में `likes` में दिखाया गया लाइक काउंट और `replyCount` में जवाबों की संख्या शामिल हो सकती है `heartedByCreator` फ़ील्ड बताता है कि वीडियो के क्रिएटर ने टिप्पणी को हार्ट किया है या नहीं
लेखक डेटा में `author` में प्रदर्शित हैंडल `authorChannelId` में चैनल पहचानकर्ता और `authorPhoto` में प्रोफ़ाइल छवि का URL शामिल हो सकता है ये फ़ील्ड श्रेय देने समूह बनाने या लेखक की प्रोफ़ाइल के लिंक प्रदान करने में सहायक हो सकते हैं
यह एंडपॉइंट मानक YouTube वीडियो और YouTube Shorts दोनों से टिप्पणियों और जवाबों का समर्थन करता है रिकॉर्ड में `videoId` और `videoUrl` शामिल हैं जिससे परिणामों को उनकी स्रोत सामग्री से जोड़ा जा सकता है
खाली `items` array को अनुरोध के लिए कोई टिप्पणी या जवाब न लौटाने वाला मानें। अलग-अलग रिकॉर्ड में कुछ फ़ील्ड छोड़े जा सकते हैं या उनके मान null हो सकते हैं इसलिए क्लाइंट को उन्हें दिखाने या संसाधित करने से पहले वैकल्पिक फ़ील्ड की पुष्टि करनी चाहिए