OnlyFansPosts
Like or Unlike Post
Toggle a post’s like status using your connected OnlyFans account. Only the post ID is required; no request body is needed. The response field data.isFavorite reports the current status after the toggle: true means the post is liked, false means it is not liked. Each successful call reverses the current status. If a request times out, check the post’s status before trying again to avoid undoing a completed toggle.
Authorization
default AuthorizationBearer <token>
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
account*string
The Account ID
post_id*integer
The ID of the post to like or unlike.
Response Body
application/json
curl -X POST "https://app.fansapi.com/api/acct_XXXXXXXXXXXXXXX/posts/1234567890/like"{
"data": {
"id": 1234567890,
"isFavorite": true,
"favoritesCount": 2
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999863,
"note": "Always"
},
"_cache": {
"is_cached": false,
"note": "Cache disabled for this endpoint"
},
"_rate_limits": {
"limit_minute": 1000,
"limit_day": null,
"remaining_minute": 995,
"remaining_day": null,
"notice": "We have decided to remove our daily rate limits. Please remove any references to these in your integrations."
}
}
}