continuation_tokenstring
Next page token
https://api.sandbase.ai/v1/api/youtube/web-v2/post-commentsReturns comments from a YouTube community post with support for pagination, formatted output, and regional localization settings.
[
{
"data": {
"comments": [
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/LZeUOuOM8lzINkYAKi1X3pCQz1xsSD_EndPUR1vOGesaGavUtyM_-bCUq7Gld-LPX_R7uieWsA=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCkRfArvrzheW2E7b6SVT7vQ",
"channel_url": "https://www.youtube.com/@youtubecreators",
"display_name": "@youtubecreators",
"is_artist": false,
"is_creator": true,
"is_verified": true
},
"comment_id": "UgwZHdfuY046UGc1mTV4AaABAg",
"content": "Let us know what you're MOST excited to share on your Community tab in the comments!",
"creator_thumbnail_url": null,
"like_count": "228",
"like_count_a11y": "228 次赞",
"published_time": "2年前",
"reply_continuation_token": "4qmFsgLQAhIrRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3JlcGxpZXNfcGFnZRqgAkVnVndiM04wYzhvQko3SUJKRlZuYTNocFExTlNaa1EyWnpkVFVHeFhSMUJFWVROMllsQTNZVWx6ZVhSWVVtdDJlZW9DQkJBQkdBR3FBNXdCR21rU0dsVm5kMXBJWkdaMVdUQTBObFZIWXpGdFZGWTBRV0ZCUWtGbklnSUlBQ29ZVlVOclVtWkJjblp5ZW1obFZ6SkZOMkkyVTFaVU4zWlJRQUZJQ25va1ZXZHJlR2xEVTFKbVJEWm5OMU5RYkZkSFVFUmhNM1ppVURkaFNYTjVkRmhTYTNaNWdnRUNDQUZDTDJOdmJXMWxiblF0Y21Wd2JHbGxjeTFwZEdWdExWVm5kMXBJWkdaMVdUQTBObFZIWXpGdFZGWTBRV0ZCUWtGbg%3D%3D",
"reply_count": "133",
"reply_count_a11y": "133 条回复",
"reply_count_text": "133 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/Cpo6AeYSn7ZbCrbf0pkaxFHOowzl5olD_01FDjoQJhdocu6zZ3kw9Z2v-GeJepjSmgZSqbc4xQ=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCWBltH-mr5IJtZUBm3TGExQ",
"channel_url": "https://www.youtube.com/@abirkhulna52",
"display_name": "@abirkhulna52",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "Ugyb5vFcLnDb7vwASmx4AaABAg",
"content": "Thank you for YouTube Family",
"creator_thumbnail_url": null,
"like_count": "1",
"like_count_a11y": "1 次赞",
"published_time": "1年前",
"reply_count": "0",
"reply_count_a11y": "0 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/89rQUcTgD_wfJkr3zNUH4AGwR0hpcOZGi64xWvLom7JJF3OJShratQ0UYO11tD5h5_spompNSQ=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCekLircmkkktFJJJoOSR_RQ",
"channel_url": "https://www.youtube.com/@YasirG-921",
"display_name": "@YasirG-921",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "Ugzvvr4m9flSxDpV2al4AaABAg",
"content": "Tanks you tube family",
"creator_thumbnail_url": null,
"like_count": "1",
"like_count_a11y": "1 次赞",
"published_time": "2年前",
"reply_count": "0",
"reply_count_a11y": "0 条回复",
"reply_level": 0
},
"… 17 more items in the full response"
],
"continuation_token": "4qmFsgKRBRIoRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3RvcF9sZXZlbBrkBEVnVndiM04wYzZvRHV3TUsxd0puWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJHZEZTVEpHT0ZGblFWRlpRbmxMVEVGVWRsTnBaVWxJYkROT1RHTlFUM1pRUVd0cFkySm5OVWhhZVZWSmIyaENUR3gwUkcxc01GVk9aR3BhT0ZGQ2JUSmZOMFI0UjB3NVRUVnhlVmRtY3psVFJuRTBjak0xVjJNemEzRnhTSFpKUVZCdFUyOVlURnBHUm10MlFqTjFRWFIyUTFjeU0xRlRhbXBPYVVsaGNGcFNSVzVyTTFKa2FUZzJVbEV5YlhkemFsZGtlV2xxVVhGSWJXTTBORkZCTmpWRlVHVkxWRWxPTFZkVGRuUjZibUYzWW1kV2VtbEdRbkpNVWtsdlVIWlVaekJhVmtwTFVVdzJaMEZSUmtKSlJrTkpXV2RIUVVGVFFsRnBiMGxDWjBGRloxVkphVU5CV1VGQ1NVaERTV05uUlVGRldV…"
}
}
]Wählen Sie ein Beispiel aus, um seine Eingaben und das Ergebnis in den Playground zu laden.
Look up community post comments on YouTube by specifying a post_id. Supports localized results and pagination using continuation_token.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{}'
| Name | Type | Required | Description |
|---|---|---|---|
post_id | string | No | Post ID, required for first request |
need_format | boolean | No | Whether to format data, default true |
country_code | string | No | Country code, default "US" |
language_code | string | No | Language code, default "zh-CN" |
continuation_token | string | No | Next page token |
post_id is required for the first request.continuation_token to retrieve subsequent pages of comments.country_code and language_code.Flat price per call. Failed calls, including lookups whose target does not exist, are not charged.
Jetzt loslegen
Plattform-API-Endpunkt mit einheitlicher Authentifizierung und Nutzungsnachverfolgung.
curl -X POST "https://api.sandbase.ai/v1/api/youtube/web-v2/post-comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"post_id": "UgkxiCSRfD6g7SPlWGPDa3vbP7aIsytXRkvy",
"need_format": true,
"country_code": "US",
"language_code": "zh-CN"
}'Legen Sie Ihren SandBase API-Schlüssel in Ihrer Serverumgebung fest. Anfragen verwenden Bearer-Authentifizierung.
export SANDBASE_API_KEY="YOUR_API_KEY"Bewahren Sie Ihren Schlüssel auf dem Server auf. Geben Sie ihn nicht in Browser-Code preis.
continuation_tokenstringNext page token
country_codestringCountry code, default `"US"`
Standard: "US"
language_codestringLanguage code, default `"zh-CN"`
Standard: "zh-CN"
need_formatbooleanWhether to format data, default `true`
Standard: true
post_idstringPost ID, required for first request
Gespeicherte Beispielantwort für diese API; beim Anzeigen wird keine Live-Anfrage gesendet.
[
{
"data": {
"comments": [
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/LZeUOuOM8lzINkYAKi1X3pCQz1xsSD_EndPUR1vOGesaGavUtyM_-bCUq7Gld-LPX_R7uieWsA=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCkRfArvrzheW2E7b6SVT7vQ",
"channel_url": "https://www.youtube.com/@youtubecreators",
"display_name": "@youtubecreators",
"is_artist": false,
"is_creator": true,
"is_verified": true
},
"comment_id": "UgwZHdfuY046UGc1mTV4AaABAg",
"content": "Let us know what you're MOST excited to share on your Community tab in the comments!",
"creator_thumbnail_url": null,
"like_count": "228",
"like_count_a11y": "228 次赞",
"published_time": "2年前",
"reply_continuation_token": "4qmFsgLQAhIrRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3JlcGxpZXNfcGFnZRqgAkVnVndiM04wYzhvQko3SUJKRlZuYTNocFExTlNaa1EyWnpkVFVHeFhSMUJFWVROMllsQTNZVWx6ZVhSWVVtdDJlZW9DQkJBQkdBR3FBNXdCR21rU0dsVm5kMXBJWkdaMVdUQTBObFZIWXpGdFZGWTBRV0ZCUWtGbklnSUlBQ29ZVlVOclVtWkJjblp5ZW1obFZ6SkZOMkkyVTFaVU4zWlJRQUZJQ25va1ZXZHJlR2xEVTFKbVJEWm5OMU5RYkZkSFVFUmhNM1ppVURkaFNYTjVkRmhTYTNaNWdnRUNDQUZDTDJOdmJXMWxiblF0Y21Wd2JHbGxjeTFwZEdWdExWVm5kMXBJWkdaMVdUQTBObFZIWXpGdFZGWTBRV0ZCUWtGbg%3D%3D",
"reply_count": "133",
"reply_count_a11y": "133 条回复",
"reply_count_text": "133 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/Cpo6AeYSn7ZbCrbf0pkaxFHOowzl5olD_01FDjoQJhdocu6zZ3kw9Z2v-GeJepjSmgZSqbc4xQ=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCWBltH-mr5IJtZUBm3TGExQ",
"channel_url": "https://www.youtube.com/@abirkhulna52",
"display_name": "@abirkhulna52",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "Ugyb5vFcLnDb7vwASmx4AaABAg",
"content": "Thank you for YouTube Family",
"creator_thumbnail_url": null,
"like_count": "1",
"like_count_a11y": "1 次赞",
"published_time": "1年前",
"reply_count": "0",
"reply_count_a11y": "0 条回复",
"reply_level": 0
},
{
"author": {
"avatar_thumbnails": null,
"avatar_url": "https://yt3.ggpht.com/89rQUcTgD_wfJkr3zNUH4AGwR0hpcOZGi64xWvLom7JJF3OJShratQ0UYO11tD5h5_spompNSQ=s88-c-k-c0x00ffffff-no-rj",
"channel_id": "UCekLircmkkktFJJJoOSR_RQ",
"channel_url": "https://www.youtube.com/@YasirG-921",
"display_name": "@YasirG-921",
"is_artist": false,
"is_creator": false,
"is_verified": false
},
"comment_id": "Ugzvvr4m9flSxDpV2al4AaABAg",
"content": "Tanks you tube family",
"creator_thumbnail_url": null,
"like_count": "1",
"like_count_a11y": "1 次赞",
"published_time": "2年前",
"reply_count": "0",
"reply_count_a11y": "0 条回复",
"reply_level": 0
},
"… 17 more items in the full response"
],
"continuation_token": "4qmFsgKRBRIoRkVjb21tZW50X3Bvc3RfZGV0YWlsX3BhZ2Vfd2ViX3RvcF9sZXZlbBrkBEVnVndiM04wYzZvRHV3TUsxd0puWlhSZmNtRnVhMlZrWDNOMGNtVmhiWE10TFVOeFdVSkRTVUZGUmxKbE16QlVaMkZ0ZDBWTGJHZEZTVEpHT0ZGblFWRlpRbmxMVEVGVWRsTnBaVWxJYkROT1RHTlFUM1pRUVd0cFkySm5OVWhhZVZWSmIyaENUR3gwUkcxc01GVk9aR3BhT0ZGQ2JUSmZOMFI0UjB3NVRUVnhlVmRtY3psVFJuRTBjak0xVjJNemEzRnhTSFpKUVZCdFUyOVlURnBHUm10MlFqTjFRWFIyUTFjeU0xRlRhbXBPYVVsaGNGcFNSVzVyTTFKa2FUZzJVbEV5YlhkemFsZGtlV2xxVVhGSWJXTTBORkZCTmpWRlVHVkxWRWxPTFZkVGRuUjZibUYzWW1kV2VtbEdRbkpNVWtsdlVIWlVaekJhVmtwTFVVdzJaMEZSUmtKSlJrTkpXV2RIUVVGVFFsRnBiMGxDWjBGRloxVkphVU5CV1VGQ1NVaERTV05uUlVGRldV…"
}
}
]Mehr entdecken
| API | Preis | Antwort |
|---|---|---|
YouTube Community Post CommentsDiese API YouTube | $0.001 pro Aufruf | JSON |
YouTube | $0.001 pro Aufruf | JSON |
YouTube | $0.001 pro Aufruf | JSON |
YouTube | $0.001 pro Aufruf | JSON |
YouTube | $0.001 pro Aufruf | JSON |
YouTube | $0.001 pro Aufruf | JSON |
Anleitungen:Best YouTube API in 2026: Pricing Compared
Fragen
Senden Sie eine POST-Anfrage an https://api.sandbase.ai/v1/api/youtube/web-v2/post-comments mit Ihrem SandBase API-Schlüssel im Authorization-Header (Bearer) und den Parametern als JSON-Body. Sie können das auch ohne Code direkt auf dieser Seite im Playground testen.
$0.001 pro Aufruf, abgerechnet von Ihrem SandBase-Guthaben. Es werden nur die von Ihnen getätigten Aufrufe berechnet; es gibt kein Abo.
Es sind keine Parameter erforderlich. Optional: continuation_token (string), country_code (string), language_code (string), need_format (boolean) und post_id (string). Die Parametertabelle und der Playground auf dieser Seite listen jedes Feld auf.
Eine JSON-Antwort, die in derselben HTTP-Anfrage zurückgegeben wird (synchron).
Nein. YouTube Community Post Comments läuft über SandBase, daher deckt ein SandBase API-Schlüssel diesen Endpunkt und jede andere API sowie jedes Modell im Katalog ab. Sie müssen keinen separaten Zugang für YouTube API beantragen.