curl --request GET \
--url https://app.onlyfansapi.com/api/{account}/posts/{post_id}/comments \
--header 'Authorization: Bearer <token>'
{
"data": {
"list": [
{
"id": 123,
"text": "Text",
"giphyId": null,
"author": {
"id": 123,
"_view": "s"
},
"canLike": true,
"likesCount": 0,
"isLiked": false,
"isLikedByAuthor": false,
"postedAt": "2025-01-01T00:00:00+00:00",
"changedAt": "2025-01-01T00:00:00+00:00",
"isPinned": false
}
],
"hasMore": false,
"nextOffset": 1
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999876,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 999,
"remaining_day": 49883
}
}
}
Get comments from one of your posts.
curl --request GET \
--url https://app.onlyfansapi.com/api/{account}/posts/{post_id}/comments \
--header 'Authorization: Bearer <token>'
{
"data": {
"list": [
{
"id": 123,
"text": "Text",
"giphyId": null,
"author": {
"id": 123,
"_view": "s"
},
"canLike": true,
"likesCount": 0,
"isLiked": false,
"isLikedByAuthor": false,
"postedAt": "2025-01-01T00:00:00+00:00",
"changedAt": "2025-01-01T00:00:00+00:00",
"isPinned": false
}
],
"hasMore": false,
"nextOffset": 1
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999876,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": 50000,
"remaining_minute": 999,
"remaining_day": 49883
}
}
}
You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.
Number of comments to return (default = 10)
10
Number of comments to skip for pagination
0
Sort the returned comments (default = desc)
desc
, asc
"desc"
The response is of type object
.