continuationTokenstringआवश्यक
Replies continuation token from the comments endpoint, or the continuationToken from a previous replies response for further pagination.
https://api.sandbase.ai/v1/api/youtube/comment-repliesList replies to a YouTube comment using a continuation token with cursor pagination (text, author, likes, publish time).
आपका आउटपुट यहाँ दिखाई देगा
इनपुट पूरा करें, फिर Run पर क्लिक करें।
Returns a page of replies to one YouTube comment. You send a continuationToken and get back each reply's text, author, like count and publish time, plus a cursor for the next page.
likes for sentiment analysis on a single comment thread.nextCursor until no more pages come back.curl -X POST "https://api.sandbase.ai/v1/api/youtube/comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"continuationToken": "Eg0SC19fZm1EajBaSjFRGAYygwEaUBIaVWd3aXRjRk9fdmtpM0x4LUNfZDRBYUFCQWciAggAKhhVQ1g2T1EzRGtjc2JZTkU2SDh1UVF1VkEyC19fZm1EajBaSjFRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dpdGNGT192a2kzTHgtQ19kNEFhQUJBZw=="}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
continuationToken | string | Yes | Replies continuation token from the comments endpoint, or the continuationToken from a previous replies response for further pagination. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"data": {
"comments": [
{
"authorAvatarUrl": "https://yt3.ggpht.com/dekDIHrFk6_0BKWxKBc3uxWWG52rCE4f0rOF08qAojl-bs9kAgXb3YMdHO…",
"authorId": "UCtobA_pDuI8NedREy2N81vA",
"authorName": "@manojsharoff4235",
"authorUrl": "https://youtube.com/@manojsharoff4235",
"authorVerified": false,
"content": "Your welcome MrBeast!!!!!",
"createdUtc": 1783064892,
"id": "UgwitcFO_vki3Lx-C_d4AaABAg.AY-YZeYup8QAY-ZiQHH3Nb",
"likes": 15,
"publishedTime": "4 months ago"
}
],
"nextCursor": "Eg0SC19fZm1EajBaSjFRGAYy2AIK0AFnZXRfY29tbWVudF93aXRoX3JlcGxpZXNfc3RyZWFtLS1DbVlJ…"
},
"found": true
}
| Field | Meaning |
|---|---|
data.comments[].content | Text of the reply. |
data.comments[].id | ID of the reply. It starts with the parent comment ID, followed by a dot and a reply suffix. |
data.comments[].authorName / authorUrl | Handle of the reply author and a link to their YouTube channel. |
data.comments[].authorId | Channel ID of the reply author. |
data.comments[].authorVerified | true if the author has a verified badge, false otherwise. |
data.comments[].authorAvatarUrl | URL of the author's profile image. |
data.comments[].likes | Number of likes on the reply. |
data.comments[].publishedTime | Relative publish time as shown on YouTube, such as 4 months ago. It adds (edited) when the reply was edited. |
data.comments[].createdUtc | Creation time of the reply as a Unix timestamp in seconds. |
data.nextCursor | Token for the next page of replies. Send it as continuationToken in the next request. |
found | true when the lookup returned data. |
continuationToken from the replies entry of a comment returned by YouTube Video Comments.data.nextCursor from the last response as continuationToken in the next call.createdUtc is the same for all replies in the sample response, while publishedTime is relative text. Use id to tell replies apart.Billed at the actual cost of each call, about $0.0012 for the request above. Failed calls are not charged.
बिल्डिंग शुरू करें
एकीकृत authentication और usage tracking के साथ Platform API endpoint.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/comment-replies" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"continuationToken": "Eg0SC19fZm1EajBaSjFRGAYygwEaUBIaVWd3aXRjRk9fdmtpM0x4LUNfZDRBYUFCQWciAggAKhhVQ1g2T1EzRGtjc2JZTkU2SDh1UVF1VkEyC19fZm1EajBaSjFRQABICoIBAggBQi9jb21tZW50LXJlcGxpZXMtaXRlbS1VZ3dpdGNGT192a2kzTHgtQ19kNEFhQUJBZw=="
}'अपने SandBase API key को अपने सर्वर environment में सेट करें। Requests Bearer authentication का उपयोग करती हैं।
export SANDBASE_API_KEY="YOUR_API_KEY"अपना key सर्वर पर रखें। इसे browser code में expose न करें।
continuationTokenstringआवश्यकReplies continuation token from the comments endpoint, or the continuationToken from a previous replies response for further pagination.
इस API के लिए सेव किया गया example response; इसे देखते समय कोई live request नहीं की जाती।
कोई सेव response प्रकाशित नहीं किया गया है। इसका response देखने के लिए Playground में API चलाएँ।
और जानें
| API | कीमत | प्रतिक्रिया |
|---|---|---|
YouTube Comment Repliesयह API YouTube | $0.0012 प्रति कॉल से | JSON |
YouTube | $0.00045 प्रति कॉल से | JSON |
YouTube | $0.0012 प्रति कॉल से | JSON |
YouTube | $0.0012 प्रति कॉल से | JSON |
YouTube | $0.0012 प्रति कॉल से | JSON |
YouTube | $0.014286 प्रति कॉल | JSON |
प्रश्न
https://api.sandbase.ai/v1/api/youtube/comment-replies पर Authorization header (Bearer) में अपनी SandBase API key और parameters को JSON body के रूप में भेजें। आप इस पेज के Playground में बिना code लिखे भी इसे आज़मा सकते हैं।
$0.0012 से प्रति call, आपकी SandBase balance से बिल किया जाएगा। आपसे केवल आपके किए गए calls के लिए शुल्क लिया जाता है; कोई subscription नहीं है।
आवश्यक: continuationToken (string)। Parameters table और इस पेज का Playground हर field सूचीबद्ध करते हैं।
एक JSON response जो उसी HTTP request में लौटाया जाता है (synchronous)। इस पेज का README एक sample response शामिल करता है।
नहीं। YouTube Comment Replies SandBase के माध्यम से चलता है, इसलिए एक SandBase API key इस endpoint और catalog के हर अन्य API और model को कवर करती है। आपको अलग से YouTube API access के लिए आवेदन करने की आवश्यकता नहीं है।