group_idstringจำเป็น
Post ID, can be obtained from the link
https://api.sandbase.ai/v1/api/toutiao/app/commentsReturns user comments and interaction metrics for a specific Toutiao post. Results can be paginated through comment batches using an offset index.
[
{
"data": {
"at_user_guide_info": null,
"ban_audio_comment": true,
"ban_comment": false,
"ban_comment_reason": "写评论",
"ban_comment_toast": "",
"ban_face": false,
"ban_gif_suggest": 0,
"ban_pic_comment": 0,
"bottom_tips": null,
"comment_activity": null,
"comment_classify_detail": null,
"comment_share_enabled": false,
"data": [
{
"ad": null,
"cell_type": 1,
"comment": {
"aid": 13,
"auth_verified_info": "",
"author_act_badge": null,
"author_badge": [],
"author_badge_night": [],
"band_name": "",
"band_url": "",
"bury_count": 9,
"comment_badge": null,
"comment_badge_night": null,
"comment_tag_url": "",
"content_rich_span": "{\"links\":[]}",
"couplet_sticker": null,
"create_time": 1735386148,
"digg_bury_style": 2,
"digg_count": 557,
"digg_prompt": {
"enable": true,
"reply_box_placeholder": "发评不易,快回复鼓励下TA吧"
},
"dislike_style": 0,
"extra": null,
"extra_tips": "",
"forward_count": 0,
"has_author_digg": 0,
"has_author_replied": 0,
"has_multi_media": false,
"id": 7453426669643630000,
"id_str": "7453426669643629364",
"interact_style": 0,
"is_blocked": 0,
"is_blocking": 0,
"is_first_comment": 0,
"is_followed": 0,
"is_following": 0,
"is_loyal_fan": 0,
"is_pgc_author": 0,
"is_repost": false,
"large_image_list": [],
"log_pb_string": "{\"has_author_replied\":0,\"with_hot_fans\":0}",
"media_info": {
"avatar_url": "",
"name": ""
},
"membership_status": 0,
"multi_media": null,
"new_reply_list": [],
"pendants": null,
"platform": "feifei",
"publish_loc_info": "安徽",
"reaction_info": null,
"remark_name": "",
"reply_count": 71,
"reply_list": [],
"resource_url": "",
"score": 0,
"show_tags": 0,
"source": null,
"star_comment_info": {
"has_recommend": false,
"is_open": false,
"is_star_comment": false
},
"support_react_list": null,
"tags": null,
"text": "这是全球首发,不会在有喷子了吧",
"thumb_image_list": [],
"user_auth_info": "",
"user_bury": 0,
"user_decoration": "",
"user_digg": 0,
"user_id": 2123875039058317,
"user_name": "行云流水",
"user_profile_image_url": "https://p3-sign.toutiaoimg.com/user-avatar/d5d554f2b46866499828b5ae7c2641f1~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791936000&x-signature=M9Gq5vTOntxfimeWHEbUEkgMqWI%3D",
"user_relation": 0,
"user_super_digg": 0,
"user_verified": false,
"verified_reason": "",
"vote_info": null,
"xg_badge_type": 0
},
"comment_resource_banner": null,
"embedded_data": null,
"forum_card": null,
"id": 7453426669643630000,
"pk_forum": null
},
{
"ad": null,
"cell_type": 1,
"comment": {
"aid": 13,
"auth_verified_info": "",
"author_act_badge": null,
"author_badge": [],
"author_badge_night": [],
"band_name": "",
"band_url": "",
"bury_count": 6,
"comment_badge": null,
"comment_badge_night": null,
"comment_tag_url": "",
"content_rich_span": "{\"links\":[]}",
"couplet_sticker": null,
"create_time": 1735442128,
"digg_bury_style": 2,
"digg_count": 418,
"digg_prompt": {
"enable": true,
"reply_box_placeholder": "有共鸣?一起讨论下吧"
},
"dislike_style": 0,
"extra": null,
"extra_tips": "",
"forward_count": 0,
"has_author_digg": 0,
"has_author_replied": 0,
"has_multi_media": false,
"id": 7453667090147313000,
"id_str": "7453667090147312447",
"interact_style": 0,
"is_blocked": 0,
"is_blocking": 0,
"is_first_comment": 0,
"is_followed": 0,
"is_following": 0,
"is_loyal_fan": 0,
"is_pgc_author": 0,
"is_repost": false,
"large_image_list": [],
"log_pb_string": "{\"has_author_replied\":0,\"with_hot_fans\":0}",
"media_info": {
"avatar_url": "",
"name": ""
},
"membership_status": 0,
"multi_media": null,
"new_reply_list": [],
"pendants": null,
"platform": "feifei",
"publish_loc_info": "山西",
"reaction_info": null,
"remark_name": "",
"reply_count": 22,
"reply_list": [],
"resource_url": "",
"score": 0,
"show_tags": 0,
"source": null,
"star_comment_info": {
"has_recommend": false,
"is_open": false,
"is_star_comment": false
},
"support_react_list": null,
"tags": null,
"text": "我虽然是一位特别普通的打工仔,一个月工资4000。信用卡欠账一堆。父母都是70岁的农民。我也有很多委屈。可,对于国防,我不会有任何一句抱怨。因为没有一个强大的国防,你连这些都可能失去。",
"thumb_image_list": [],
"user_auth_info": "",
"user_bury": 0,
"user_decoration": "",
"user_digg": 0,
"user_id": 6931721159,
"user_name": "糟老头子j",
"user_profile_image_url": "https://p3-sign.toutiaoimg.com/user-avatar/fa45cc75efa17b2622d464050df7d382~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791936000&x-signature=HTuidRquj2NGzZyY8M%2FbPoiCIX8%3D",
"user_relation": 0,
"user_super_digg": 0,
"user_verified": false,
"verified_reason": "",
"vote_info": null,
"xg_badge_type": 0
},
"comment_resource_banner": null,
"embedded_data": null,
"forum_card": null,
"id": 7453667090147313000,
"pk_forum": null
},
{
"ad": null,
"cell_type": 1,
"comment": {
"aid": 13,
"auth_verified_info": "",
"author_act_badge": null,
"author_badge": [],
"author_badge_night": [],
"band_name": "",
"band_url": "",
"bury_count": 0,
"comment_badge": null,
"comment_badge_night": null,
"comment_tag_url": "",
"content_rich_span": "{\"links\":[]}",
"couplet_sticker": null,
"create_time": 1735390776,
"digg_bury_style": 2,
"digg_count": 345,
"digg_prompt": {
"enable": true,
"reply_box_placeholder": "有共鸣?一起讨论下吧"
},
"dislike_style": 0,
"extra": null,
"extra_tips": "",
"forward_count": 0,
"has_author_digg": 0,
"has_author_replied": 0,
"has_multi_media": false,
"id": 7453446542591411000,
"id_str": "7453446542591410980",
"interact_style": 0,
"is_blocked": 0,
"is_blocking": 0,
"is_first_comment": 0,
"is_followed": 0,
"is_following": 0,
"is_loyal_fan": 0,
"is_pgc_author": 0,
"is_repost": false,
"large_image_list": [],
"log_pb_string": "{\"has_author_replied\":0,\"with_hot_fans\":0}",
"media_info": {
"avatar_url": "",
"name": ""
},
"membership_status": 0,
"multi_media": null,
"new_reply_list": [],
"pendants": null,
"platform": "feifei",
"publish_loc_info": "安徽",
"reaction_info": null,
"remark_name": "",
"reply_count": 1,
"reply_list": [],
"resource_url": "",
"score": 0,
"show_tags": 0,
"source": null,
"star_comment_info": {
"has_recommend": false,
"is_open": false,
"is_star_comment": false
},
"support_react_list": null,
"tags": null,
"text": "向最敬爱的中国军事科学家技术专家致以最崇高的敬礼!你们是最可爱的人!!![赞][赞][赞][赞][赞][赞][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰]",
"thumb_image_list": [],
"user_auth_info": "",
"user_bury": 0,
"user_decoration": "",
"user_digg": 0,
"user_id": 14593625568,
"user_name": "冬去兮春来",
"user_profile_image_url": "https://p11-sign.toutiaoimg.com/mosaic-legacy/3e81000d94cec5d46aba~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791936000&x-signature=dSuMyE1aLZt27JZbY759Y259BDc%3D",
"user_relation": 0,
"user_super_digg": 0,
"user_verified": false,
"verified_reason": "",
"vote_info": null,
"xg_badge_type": 0
},
"comment_resource_banner": null,
"embedded_data": null,
"forum_card": null,
"id": 7453446542591411000,
"pk_forum": null
},
"… 17 more items in the full response"
],
"detail_no_comment": 0,
"enter_comment_info": {
"err_no": 0,
"toast_text": ""
},
"err_no": 0,
"exempt": false,
"extensions": null,
"fold_comment_count": 0,เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns a page of comments for a Toutiao post, plus paging data and post-level comment settings. It needs the post's group_id and an offset value.
bury_count votes each comment on a post receives.has_more is false.ban_comment.curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"group_id": "7453372680222523931", "offset": "0"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
group_id | string | Yes | Post ID, can be obtained from the link |
offset | string | Yes | Offset, used for pagination, default is 0, then add 20 each time |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"at_user_guide_info": null,
"ban_ai_polish": true,
"ban_audio_comment": true,
"ban_comment": false,
"ban_comment_reason": "写评论",
"ban_comment_toast": "",
"ban_face": false,
"ban_gif_suggest": 0,
"ban_pic_comment": 0,
"bottom_tips": null,
"comment_activity": null,
"comment_classify_detail": null
}
| Field | Meaning |
|---|---|
data[] | List of comment cells. Each item holds one comment and its id. |
data[].id | ID of the comment cell. It is a long number. |
data[].comment.bury_count | Number of bury votes on the comment. |
data[].comment.aid | App ID value attached to the comment. The response does not explain its meaning. |
data[].cell_type | Type code of the list item. Items in this response all have the value 1. |
has_more | true when more comments are available after this page. |
offset | Offset value for the next page. The sample response returns 20 after a request with 0. |
next_comment_since_ts | Unix-style timestamp number returned for the next comment batch. |
ban_comment / ban_pic_comment / ban_audio_comment | Flags that show whether commenting, picture comments or audio comments are blocked on this post. |
group.group_id | ID of the post the comments belong to. |
group_id from the Toutiao post link.offset set to 0, then add 20 for each next page, as the parameter description states.has_more is false.$0.001 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/toutiao/app/comments" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"offset": "0",
"group_id": "7453372680222523931"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
group_idstringจำเป็นPost ID, can be obtained from the link
offsetstringจำเป็นOffset, used for pagination, default is 0, then add 20 each time
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"data": {
"at_user_guide_info": null,
"ban_audio_comment": true,
"ban_comment": false,
"ban_comment_reason": "写评论",
"ban_comment_toast": "",
"ban_face": false,
"ban_gif_suggest": 0,
"ban_pic_comment": 0,
"bottom_tips": null,
"comment_activity": null,
"comment_classify_detail": null,
"comment_share_enabled": false,
"data": [
{
"ad": null,
"cell_type": 1,
"comment": {
"aid": 13,
"auth_verified_info": "",
"author_act_badge": null,
"author_badge": [],
"author_badge_night": [],
"band_name": "",
"band_url": "",
"bury_count": 9,
"comment_badge": null,
"comment_badge_night": null,
"comment_tag_url": "",
"content_rich_span": "{\"links\":[]}",
"couplet_sticker": null,
"create_time": 1735386148,
"digg_bury_style": 2,
"digg_count": 557,
"digg_prompt": {
"enable": true,
"reply_box_placeholder": "发评不易,快回复鼓励下TA吧"
},
"dislike_style": 0,
"extra": null,
"extra_tips": "",
"forward_count": 0,
"has_author_digg": 0,
"has_author_replied": 0,
"has_multi_media": false,
"id": 7453426669643630000,
"id_str": "7453426669643629364",
"interact_style": 0,
"is_blocked": 0,
"is_blocking": 0,
"is_first_comment": 0,
"is_followed": 0,
"is_following": 0,
"is_loyal_fan": 0,
"is_pgc_author": 0,
"is_repost": false,
"large_image_list": [],
"log_pb_string": "{\"has_author_replied\":0,\"with_hot_fans\":0}",
"media_info": {
"avatar_url": "",
"name": ""
},
"membership_status": 0,
"multi_media": null,
"new_reply_list": [],
"pendants": null,
"platform": "feifei",
"publish_loc_info": "安徽",
"reaction_info": null,
"remark_name": "",
"reply_count": 71,
"reply_list": [],
"resource_url": "",
"score": 0,
"show_tags": 0,
"source": null,
"star_comment_info": {
"has_recommend": false,
"is_open": false,
"is_star_comment": false
},
"support_react_list": null,
"tags": null,
"text": "这是全球首发,不会在有喷子了吧",
"thumb_image_list": [],
"user_auth_info": "",
"user_bury": 0,
"user_decoration": "",
"user_digg": 0,
"user_id": 2123875039058317,
"user_name": "行云流水",
"user_profile_image_url": "https://p3-sign.toutiaoimg.com/user-avatar/d5d554f2b46866499828b5ae7c2641f1~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791936000&x-signature=M9Gq5vTOntxfimeWHEbUEkgMqWI%3D",
"user_relation": 0,
"user_super_digg": 0,
"user_verified": false,
"verified_reason": "",
"vote_info": null,
"xg_badge_type": 0
},
"comment_resource_banner": null,
"embedded_data": null,
"forum_card": null,
"id": 7453426669643630000,
"pk_forum": null
},
{
"ad": null,
"cell_type": 1,
"comment": {
"aid": 13,
"auth_verified_info": "",
"author_act_badge": null,
"author_badge": [],
"author_badge_night": [],
"band_name": "",
"band_url": "",
"bury_count": 6,
"comment_badge": null,
"comment_badge_night": null,
"comment_tag_url": "",
"content_rich_span": "{\"links\":[]}",
"couplet_sticker": null,
"create_time": 1735442128,
"digg_bury_style": 2,
"digg_count": 418,
"digg_prompt": {
"enable": true,
"reply_box_placeholder": "有共鸣?一起讨论下吧"
},
"dislike_style": 0,
"extra": null,
"extra_tips": "",
"forward_count": 0,
"has_author_digg": 0,
"has_author_replied": 0,
"has_multi_media": false,
"id": 7453667090147313000,
"id_str": "7453667090147312447",
"interact_style": 0,
"is_blocked": 0,
"is_blocking": 0,
"is_first_comment": 0,
"is_followed": 0,
"is_following": 0,
"is_loyal_fan": 0,
"is_pgc_author": 0,
"is_repost": false,
"large_image_list": [],
"log_pb_string": "{\"has_author_replied\":0,\"with_hot_fans\":0}",
"media_info": {
"avatar_url": "",
"name": ""
},
"membership_status": 0,
"multi_media": null,
"new_reply_list": [],
"pendants": null,
"platform": "feifei",
"publish_loc_info": "山西",
"reaction_info": null,
"remark_name": "",
"reply_count": 22,
"reply_list": [],
"resource_url": "",
"score": 0,
"show_tags": 0,
"source": null,
"star_comment_info": {
"has_recommend": false,
"is_open": false,
"is_star_comment": false
},
"support_react_list": null,
"tags": null,
"text": "我虽然是一位特别普通的打工仔,一个月工资4000。信用卡欠账一堆。父母都是70岁的农民。我也有很多委屈。可,对于国防,我不会有任何一句抱怨。因为没有一个强大的国防,你连这些都可能失去。",
"thumb_image_list": [],
"user_auth_info": "",
"user_bury": 0,
"user_decoration": "",
"user_digg": 0,
"user_id": 6931721159,
"user_name": "糟老头子j",
"user_profile_image_url": "https://p3-sign.toutiaoimg.com/user-avatar/fa45cc75efa17b2622d464050df7d382~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791936000&x-signature=HTuidRquj2NGzZyY8M%2FbPoiCIX8%3D",
"user_relation": 0,
"user_super_digg": 0,
"user_verified": false,
"verified_reason": "",
"vote_info": null,
"xg_badge_type": 0
},
"comment_resource_banner": null,
"embedded_data": null,
"forum_card": null,
"id": 7453667090147313000,
"pk_forum": null
},
{
"ad": null,
"cell_type": 1,
"comment": {
"aid": 13,
"auth_verified_info": "",
"author_act_badge": null,
"author_badge": [],
"author_badge_night": [],
"band_name": "",
"band_url": "",
"bury_count": 0,
"comment_badge": null,
"comment_badge_night": null,
"comment_tag_url": "",
"content_rich_span": "{\"links\":[]}",
"couplet_sticker": null,
"create_time": 1735390776,
"digg_bury_style": 2,
"digg_count": 345,
"digg_prompt": {
"enable": true,
"reply_box_placeholder": "有共鸣?一起讨论下吧"
},
"dislike_style": 0,
"extra": null,
"extra_tips": "",
"forward_count": 0,
"has_author_digg": 0,
"has_author_replied": 0,
"has_multi_media": false,
"id": 7453446542591411000,
"id_str": "7453446542591410980",
"interact_style": 0,
"is_blocked": 0,
"is_blocking": 0,
"is_first_comment": 0,
"is_followed": 0,
"is_following": 0,
"is_loyal_fan": 0,
"is_pgc_author": 0,
"is_repost": false,
"large_image_list": [],
"log_pb_string": "{\"has_author_replied\":0,\"with_hot_fans\":0}",
"media_info": {
"avatar_url": "",
"name": ""
},
"membership_status": 0,
"multi_media": null,
"new_reply_list": [],
"pendants": null,
"platform": "feifei",
"publish_loc_info": "安徽",
"reaction_info": null,
"remark_name": "",
"reply_count": 1,
"reply_list": [],
"resource_url": "",
"score": 0,
"show_tags": 0,
"source": null,
"star_comment_info": {
"has_recommend": false,
"is_open": false,
"is_star_comment": false
},
"support_react_list": null,
"tags": null,
"text": "向最敬爱的中国军事科学家技术专家致以最崇高的敬礼!你们是最可爱的人!!![赞][赞][赞][赞][赞][赞][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰][玫瑰]",
"thumb_image_list": [],
"user_auth_info": "",
"user_bury": 0,
"user_decoration": "",
"user_digg": 0,
"user_id": 14593625568,
"user_name": "冬去兮春来",
"user_profile_image_url": "https://p11-sign.toutiaoimg.com/mosaic-legacy/3e81000d94cec5d46aba~300x300.image?_iz=112761&from=tt_user.tab_comments_comment&lk3s=a67912db&x-expires=1791936000&x-signature=dSuMyE1aLZt27JZbY759Y259BDc%3D",
"user_relation": 0,
"user_super_digg": 0,
"user_verified": false,
"verified_reason": "",
"vote_info": null,
"xg_badge_type": 0
},
"comment_resource_banner": null,
"embedded_data": null,
"forum_card": null,
"id": 7453446542591411000,
"pk_forum": null
},
"… 17 more items in the full response"
],
"detail_no_comment": 0,
"enter_comment_info": {
"err_no": 0,
"toast_text": ""
},
"err_no": 0,
"exempt": false,
"extensions": null,
"fold_comment_count": 0,
"forum_show_result": "other_fail",
"go_topic_detail": 1,
"group": {
"content": "",
"content_rich_span": "",
"description": "",
"group_id": 7453372680222524000,
"is_video": false,
"open_url": "",
"user_id": 0,
"user_name": ""
},
"guide_info": null,
"has_more": true,
"media_comment": null,
"media_comment_enable": false,
"media_comment_has_more": false,
"media_comment_total_num": 0,
"message": "success",
"next_comment_since_ts": 1791290288,
"offset": 20,
"placeholder": "",
"post_count": 0,
"prompt": null,
"recovery": "",
"recovery_reason": "unexpect_empty_false",
"repost_params": {
"cover_url": "",
"fw_id": 0,
"fw_id_type": 0,
"fw_user_id": 0,
"opt_id": 0,
"opt_id_type": 0,
"repost_type": 0,
"schema": "",
"title": ""
},
"show_add_forum": 1,
"stable": true,
"stable_reason": "",
"stick_comments": [],
"stick_has_more": false,
"stick_toast": 1,
"stick_total_number": 0,
"super_digg_control": null,
"tab_info": {
"current_tab_index": 0,
"tabs": [
"热度",
"时间"
]
},
"total_number": 1075
}
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Toutiao Post CommentsAPI นี้ Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.001 ต่อการเรียก | JSON |
Toutiao | $0.071429 ต่อการเรียก | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/toutiao/app/comments โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.001 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ที่ต้องระบุ: group_id (string) และ offset (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Toutiao Post Comments ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Toutiao API แยกต่างหาก