Ko-fi

List Ko-fi post comments

List a Ko-fi post's comments and one level of replies, 25 a page.

GET/v1/ko-fi/posts/{slug}/comments
1credit
x-api-keystringheader

API key (`sfk_...`)

Parameters
2
slugstringrequiredpath

Post slug from the post URL, e.g. `Shipping-profiles-digital-variants-and-more-D0K429XOFY`.

min 1 chars · max 200 chars · pattern: ^[A-Za-z0-9_-]+$

cursorstringoptionalquery

Cursor from `page.nextCursor` of the previous response. It only works with the same filters.

min 1 chars · max 2048 chars

Response fields
45

Endpoint-specific response payload.

datalookupStatus
string

Whether the requested entity exists.

one of: found, not_found

dataslug
string

The post slug asked for.

Top-level comments in page order; empty when the post has none.

datacomments[]id
string

Comment id.

datacomments[]text
string

Comment text.

Who wrote the comment.

datacomments[]authorid
stringnullable

Commenter page id.

datacomments[]authorname
stringnullable

Commenter display name.

datacomments[]authorhandle
stringnullable

Commenter handle.

datacomments[]authoravatarUrl
stringnullable

Commenter avatar URL.

datacomments[]postedAt
stringnullable

When it was written, ISO 8601 UTC.

datacomments[]likes
integernullable

Likes.

≥ 0

datacomments[]parentId
stringnullable

Parent comment id; null for a top-level comment.

The comment this one answers; null when it is not a reply.

datacomments[]replyToname
stringnullable

Display name replied to.

datacomments[]replyToid
stringnullable

Page id replied to.

One level of replies.

datacomments[]replies[]id
string

Comment id.

datacomments[]replies[]text
string

Comment text.

Who wrote the comment.

datacomments[]replies[]authorid
stringnullable

Commenter page id.

datacomments[]replies[]authorname
stringnullable

Commenter display name.

datacomments[]replies[]authorhandle
stringnullable

Commenter handle.

datacomments[]replies[]authoravatarUrl
stringnullable

Commenter avatar URL.

datacomments[]replies[]postedAt
stringnullable

When it was written, ISO 8601 UTC.

datacomments[]replies[]likes
integernullable

Likes.

≥ 0

datacomments[]replies[]parentId
stringnullable

Parent comment id.

The comment this one answers; null when it is not a reply.

datacomments[]replies[]replyToname
stringnullable

Display name replied to.

datacomments[]replies[]replyToid
stringnullable

Page id replied to.

Always empty: replies nest one level only.

datacomments[]replies[]replies[]
nullableoptional

Pagination state for the current page.

datapagepage
integernullable

Zero-based page index for a numbered list; null for offset lists.

≥ 0

datapagestart
integernullable

Offset of this page for an offset list; null for numbered lists.

≥ 0

datapagereturned
integer

Number of rows in this response.

≥ 0

datapagehasMore
boolean

Whether another page is available.

datapagenextPage
integernullable

Next page index for a numbered list; null when there is none.

≥ 0

datapagenextCursor
stringnullable

Cursor for the next page; null on the last page.

datapagetotal
integernullable

Total rows when Ko-fi publishes one (comments: all comments including replies); otherwise null.

≥ 0

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

Code example

curl "https://api.socialfetch.dev/v1/ko-fi/posts/Shipping-profiles-digital-variants-and-more-D0K429XOFY/comments" \
  -H "x-api-key: YOUR_API_KEY"

Responses

List a Ko-fi post's comments.