Schema preview Draft

Comment schema (draft)

A public comment or reply on a post, with its author, thread position and like/reply counts.

Draft: not yet available. No endpoint returns comments yet. This schema may change before the first endpoint ships; don't build against it.

Draft schema

When comment endpoints ship, they will return objects shaped like this as data, next to the standard meta, the same on every platform.

FieldTypeDescription
platformstringPlatform ID (tiktok, youtube, …).
idstringPlatform-native comment ID (string; Reddit without t1_).
post_idstringID of the post commented on (equals post.id).
parent_idstring or nullID of the comment this replies to; null for top-level comments.
urlstring (uri) or nullPermalink, when the platform has one.
textstringComment body as plain text.
authorobjectThe commenting account.
author.idstring or nullPlatform-native account ID; null when only the handle is known.
author.usernamestring or nullHandle without the @; null when the account has none.
author.display_namestring or nullDisplay name shown on the profile.
author.urlstring (uri) or nullCanonical profile URL.
author.avatar_urlstring (uri) or nullProfile picture URL. Platform CDN URLs can expire within hours.
author.is_verifiedboolean or nullPlatform verification badge; null where the platform has no badge.
published_atstring (date-time) or nullWhen the comment was posted, RFC 3339 UTC (relative on some platforms: see approximate_fields).
edited_atstring (date-time) or nullWhen the comment was last edited, RFC 3339 UTC.
is_pinnedboolean or nullPinned by the post's author.
is_liked_by_authorboolean or nullLiked or hearted by the post's author.
metricsobjectCounts at fetch time; null = hidden or not exposed, 0 = zero.
metrics.like_countinteger or nullLikes or upvotes; never negative.
metrics.reply_countinteger or nullDirect replies.
approximate_fieldsstring[]JSON paths of values rounded by the platform or parsed from display text; [] when all exact.

Item errors

Planned item-level errors, besides the request-level errors:

CodeHTTPRetryMeaningWhat to do
not_found404NoThe item does not exist or was deleted.Check the URL or ID; do not retry.
private_or_unavailable403NoThe item exists but is private, age- or region-gated, or requires a login to view.Only public items can be fetched; do not retry.

All schemas · Available APIs