Posts

Like Post

Adds the creator's own like to one of their posts — or takes it away. This endpoint is a toggle: OnlyFans has no separate unlike route, so a second call reverses the first. Drive your button state from isFavorite in the response rather than assuming the call added a like. Requires permission api_posts_like.

https://public-api.fansmetric.com
POST/v1/{account_id}/posts/{post_id}/like
Bearer

Authorization

default
AuthorizationBearer <token>

Send your FansMetric API key as a Bearer token in the Authorization header.

In: header

Path Parameters

  • account_id*integer

    OnlyFans numeric account ID.

  • post_id*integer

    The post ID. Numeric.

Response Fields

  • data.idinteger

    The post ID.

  • data.isFavoriteboolean

    Whether the post is liked after this call. Read this to set your button state — do not assume.

  • data.favoritesCountinteger

    Total likes after this call.

  • dataobject | array

    Endpoint-specific payload. See the fields below for this route.

  • _meta._credits.usedinteger

    Credits consumed by this request (currently always 1).

  • _meta._rate_limits.limit_minuteinteger

    Maximum requests per minute for the organization.

  • _meta._rate_limits.remaining_minuteinteger

    Remaining requests in the current minute window.

  • _meta._rate_limits.limit_dayinteger

    Maximum requests per day for the organization.

  • _meta._rate_limits.remaining_dayinteger

    Remaining requests in the current day window.

curl --request POST "https://public-api.fansmetric.com/v1/100000001/posts/sample_post_id/like" \
  --header "Authorization: Bearer YOUR_API_KEY"

Response

200
{
"data":{
"id":2677887003
"isFavorite":true
"favoritesCount":6
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}