Endpoints by data type
Comment replies API
11 endpoints on 11 platforms return comment replies as the same Comment object. The replies under one top-level comment, a page at a time: each reply’s text, who wrote it, when, and how many likes it got. A call costs from $0.002 to $0.02, each endpoint at its own price; a failed call is free.
Comment replies · on each platform
| Platform | Endpoint | Path | A page | Price |
|---|---|---|---|---|
| Instagram comment replies | GET /v1/instagram/comments/replies/list | 15 | $0.004 per call · about 15 comments per page | |
| Kuaishou | Kuaishou comment replies | GET /v1/kuaishou/comments/replies/list | 20 | $0.002 per call · about 20 comments per page |
| Zhihu | Zhihu comment replies coming soon | GET /v1/zhihu/comments/replies/list | 20 | $0.002 per call · about 20 comments per page |
| WeChat Channels | WeChat Channels comment replies | GET /v1/wechat_channels/comments/replies/list | 20 | $0.015 per call · about 20 comments per page |
| Douyin | Douyin comment replies | GET /v1/douyin/comments/replies/list | 20 | $0.002 per call · about 20 comments per page |
| Xiaohongshu (RedNote) | Xiaohongshu comment replies | GET /v1/xiaohongshu/comments/replies/list | 5 | $0.02 per call · about 5 comments per page |
| Weibo comment replies | GET /v1/weibo/comments/replies/list | 20 | $0.002 per call · about 20 comments per page | |
| Bilibili | Bilibili comment replies | GET /v1/bilibili/comments/replies/list | 20 | $0.002 per call · about 20 comments per page |
| WeChat Official Accounts | Official Account comment replies | GET /v1/wechat_mp/comments/replies/list | 3 | $0.02 per call · about 3 comments per page |
| YouTube | YouTube comment replies | GET /v1/youtube/comments/replies/list | 10 | $0.002 per call · about 10 comments per page |
| TikTok | TikTok comment replies | GET /v1/tiktok/comments/replies/list | 20 | $0.002 per call · about 20 comments per page |
from $0.002 to $0.02 a call, each endpoint at its own price. A call that fails costs nothing.
The object it returns: Comment
Every endpoint above returns these fields with the same names and types. A field a platform does not show comes back null and is named in meta.unavailable.
| Field | Type | Meaning |
|---|---|---|
id | string | Comment ID. |
post_id | string | ID of the post it is under. |
parent_id | string | null | The comment it replies to; null for top-level comments. |
text | string | Comment text. |
published_at | string | When it was posted, ISO 8601 in UTC. |
author | AccountRef | Who wrote it. |
likes | integer | null | Likes on the comment. |
replies | integer | null | Replies under it. |
ip_location | string | null | Region label the platform shows next to the comment, if any. |
ext | object | Platform-specific extras. Only returned with view=full. |
The same call on two platforms
Same parameters, same paging, same response shape. Only the path changes.
# Instagram
curl -G "https://api.okdata.online/v1/instagram/comments/replies/list" \
-H "Authorization: Bearer $OKDATA_API_KEY" \
--data-urlencode 'id=17968670751170878' \
--data-urlencode 'post_id=DeCPVhERA8e'
# Kuaishou
curl -G "https://api.okdata.online/v1/kuaishou/comments/replies/list" \
-H "Authorization: Bearer $OKDATA_API_KEY" \
--data-urlencode 'id=908850553827' \
--data-urlencode 'post_id=3xgarycnydawq3g'What people use it for
- Read the whole argument under a comment that drew dozens of replies, not just the comment itself.
- See whether a brand’s answer to a complaint settled it or set off more complaints.
- Collect the follow-up questions buyers ask under a popular comment.
Questions
- What do I need to call it?
- The comment’s id and the post_id of the post it sits under, both from the comments endpoint of the same platform. On Instagram, post_id is the post’s shortcode; on WeChat, it is the article’s link.
- Which comments are worth opening?
- Every top-level comment comes with a replies count. Sort by it and open only the comments above zero, because each page of replies is one call.
- What about platforms that are not in the table?
- There the comments endpoint still gives each comment’s replies count, but the reply text is not available here until a replies endpoint for that platform is added to the table.