Weibo

List Weibo post comments

List the top comments on a Weibo post, about 20, with likes, region and reply counts.

GET/v1/weibo/posts/{postId}/comments
x-api-keystringheader

API key (`sfk_...`)

Parameters
1
postIdstringrequiredpath

The post's id: its 16 digits (as in m.weibo.cn/detail/5365286204084354), its short code (the last part of weibo.com/1195230310/Rrookh8wG) or a whole post link.

min 1 chars · max 512 chars

Response fields
43

Endpoint-specific response payload.

datalookupStatus
string

`empty` when Weibo shows no comments: the post has none, has them turned off, or no post has this id. The post endpoint tells them apart.

one of: found, empty

The post's top comments, as Weibo ranks them logged out: up to 20. `page.truncated` says whether there are more.

datacomments[]id
string

Comment id.

datacomments[]text
stringnullable

The comment as plain text, with emoji as `[name]`.

datacomments[]createdAt
stringnullable

When it was posted, ISO 8601 UTC.

datacomments[]region
stringnullable

The region Weibo shows it was posted from, when shown.

datacomments[]likes
integernullable

Likes. Null on the first replies shown under a comment, which Weibo sends without a like count.

Pictures posted with the comment.

datacomments[]imageUrls[]
stringoptional

Who wrote it; null when Weibo hides the account.

datacomments[]authorid
string

Weibo account id, the same on every endpoint: pass it as `profileId` to the profile endpoints.

datacomments[]authordisplayName
stringnullable

Screen name.

datacomments[]authoravatarUrl
stringnullable

Profile picture.

datacomments[]authorurl
string

Profile page.

datacomments[]authorisVerified
booleannullable

True when Weibo verified the account.

datacomments[]replyCount
integernullable

How many replies the comment has. Pass its `id` as `commentId` to the replies endpoint.

datacomments[]isLikedByAuthor
booleannullable

True when the post's author liked this comment.

The first replies, as Weibo shows them under the comment logged out (up to 2). `replyCount` says how many there are; the replies endpoint returns more.

datacomments[]replies[]id
string

Comment id.

datacomments[]replies[]text
stringnullable

The comment as plain text, with emoji as `[name]`.

datacomments[]replies[]createdAt
stringnullable

When it was posted, ISO 8601 UTC.

datacomments[]replies[]region
stringnullable

The region Weibo shows it was posted from, when shown.

datacomments[]replies[]likes
integernullable

Likes. Null on the first replies shown under a comment, which Weibo sends without a like count.

Pictures posted with the comment.

datacomments[]replies[]imageUrls[]
stringoptional

Who wrote it; null when Weibo hides the account.

datacomments[]replies[]authorid
string

Weibo account id, the same on every endpoint: pass it as `profileId` to the profile endpoints.

datacomments[]replies[]authordisplayName
stringnullable

Screen name.

datacomments[]replies[]authoravatarUrl
stringnullable

Profile picture.

datacomments[]replies[]authorurl
string

Profile page.

datacomments[]replies[]authorisVerified
booleannullable

True when Weibo verified the account.

Pagination state. Weibo shows logged-out visitors the first page of a list, so there is never a next page.

datapagehasMore
boolean

Whether another page is available.

datapagenextCursor
stringnullable

Cursor to pass in the next request when more pages exist; null on the last page.

datapagetruncated
boolean

True when the list has more rows than Weibo shows logged out: it stops here before its end.

datapagetotal
integernullable

How many rows the list has in all, as Weibo counts them.

Metadata describing the request and billing outcome.

metarequestId
string

Unique request identifier for tracing this API call.

min 1 chars

metacreditsCharged
integer

Credits charged for this request.

≥ 0

metaversion
string

Public API version that served the response.

one of: v1

metastale
booleanoptional

Present, and `true`, only when the source couldn't be reached and this is the last good answer for the same request instead, up to 24 hours old. Absent on every live answer.

one of: true

metafetchedAt
stringoptional

When a stale answer (`stale: true`) was originally fetched (ISO 8601, UTC). Absent on every live answer.

Code example

curl "https://api.socialfetch.dev/v1/weibo/posts/5365286204084354/comments" \
  -H "x-api-key: YOUR_API_KEY"

Responses

The top comments on a Weibo post.