NewFans API, previously OnlyFans API · A new name. A broader platform.
Fans API
OnlyFansChats

List Chats

Get the list of chats for an Account. OnlyFans returns at most 10 chats per page, even when limit is higher. To get more chats, follow _pagination.next_page (it already has the next offset) until it is null. Each lastMessage includes isSentByMe and seenByFan. seenByFan is only filled when with_seen_by_fan=true: it is true once the fan has seen the creator's last message, false while it is unseen, and null when the last message is from the fan, when with_seen_by_fan is off, or when OnlyFans did not report its read state (check isSentByMe to tell these apart).

GET
/api/{account}/chats
AuthorizationBearer <token>

Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys

In: header

Path Parameters

account*string

The Account ID

Query Parameters

limit?string

Number of chats to return (1 - 10). OnlyFans returns at most 10 chats per page; a higher value is accepted but still returns at most 10. Default = 10

offset?string

Number of chats to skip for pagination

skip_users?string

Whether to skip user details in the response (all or none). Defaults to all.

Value in"all" | "none"
order?string

Sort order for chats (recent or old). Default = recent

Value in"recent" | "old"
filter?string

Optionally, filter the chats by type.

Value in"pinned" | "priority" | "unread" | "with_tips" | "unread_with_tips"
query?string

Search query to filter chats

with_seen_by_fan?boolean

Fill lastMessage.seenByFan for chats where the creator sent the last message. OnlyFans' chat list does not include whether the fan has seen a message, so this makes one extra OnlyFans request per such chat (up to 10 per page). That adds latency to this call: expect it to take several seconds when many chats on the page have an unseen creator message. These lookups stop after about 30 seconds in total, and chats not checked by then return seenByFan: null. It costs no extra credits. Reading a chat's messages on OnlyFans marks that chat as read on the creator's side. Default = false

Response Body

application/json

curl -X GET "https://app.fansapi.com/api/acct_XXXXXXXXXXXXXXX/chats?limit=10&offset=0&skip_users=all&order=recent&filter=with_tips&query=John&with_seen_by_fan=false"
{
  "data": [
    {
      "canNotSendReason": false,
      "canSendMessage": true,
      "canGoToProfile": true,
      "unreadMessagesCount": 1,
      "hasUnreadTips": false,
      "isMutedNotifications": false,
      "lastMessage": {
        "id": 123,
        "isOpened": false,
        "createdAt": "2025-01-01T01:01:01+00:00",
        "text": "<p>Message text</p>",
        "giphyId": null,
        "lockedText": false,
        "isFree": true,
        "mediaCount": 0,
        "isTip": false,
        "fromUser": {
          "id": 123,
          "_view": "i"
        },
        "isSentByMe": false,
        "seenByFan": null
      },
      "lastReadMessageId": 0,
      "hasPurchasedFeed": false,
      "countPinnedMessages": 0,
      "fan": {
        "id": 123,
        "name": "Name",
        "view": "f",
        "about": "<p>About</p>",
        "avatar": "https://public.onlyfans.com/files/.../avatar.jpg",
        "header": "https://public.onlyfans.com/files/.../header.jpg",
        "notice": "",
        "canChat": true,
        "canEarn": true,
        "tipsMax": 200,
        "tipsMin": 5,
        "website": null,
        "hasLinks": false,
        "isFriend": false,
        "joinDate": "2025-01-01T01:01:01+00:00",
        "lastSeen": "2025-01-01T01:01:01+00:00",
        "location": "Location",
        "username": "username",
        "wishlist": null,
        "canReport": true,
        "hasLabels": true,
        "hasStream": false,
        "isBlocked": false,
        "hasFriends": false,
        "hasStories": false,
        "headerSize": {
          "width": 767,
          "height": 1152
        },
        "isVerified": true,
        "postsCount": 123,
        "audiosCount": 0,
        "canRestrict": true,
        "displayName": "",
        "isPerformer": true,
        "listsStates": [
          {
            "id": "following",
            "name": "Following",
            "type": "following",
            "hasUser": true,
            "canAddUser": false,
            "cannotAddUserReason": "ALREADY_EXISTS"
          },
          {
            "id": "fans",
            "name": "Fans",
            "type": "fans",
            "hasUser": true,
            "canAddUser": false,
            "cannotAddUserReason": "ALREADY_EXISTS"
          },
          {
            "id": "rebill_off",
            "name": "Renew Off",
            "type": "rebill_off",
            "hasUser": false,
            "canAddUser": false,
            "cannotAddUserReason": null
          },
          {
            "id": "rebill_on",
            "name": "Renew On",
            "type": "rebill_on",
            "hasUser": true,
            "canAddUser": false,
            "cannotAddUserReason": "ALREADY_EXISTS"
          },
          {
            "id": "recent",
            "name": "Recent (last 24 hours)",
            "type": "recent",
            "hasUser": false,
            "canAddUser": false,
            "cannotAddUserReason": "SYSTEM_LIST"
          },
          {
            "id": "friends",
            "name": "Friends",
            "type": "friends",
            "hasUser": false,
            "canAddUser": true,
            "cannotAddUserReason": null
          },
          {
            "id": "muted",
            "name": "Muted",
            "type": "muted",
            "hasUser": false,
            "canAddUser": true,
            "cannotAddUserReason": null
          },
          {
            "id": "tagged",
            "name": "Tagged",
            "type": "tagged",
            "hasUser": false,
            "canAddUser": false,
            "cannotAddUserReason": "SYSTEM_LIST"
          }
        ],
        "mediasCount": 123,
        "photosCount": 123,
        "tipsEnabled": true,
        "videosCount": 123,
        "avatarThumbs": {
          "c50": "https://thumbs.onlyfans.com/.../avatar.jpg",
          "c144": "https://thumbs.onlyfans.com/.../avatar.jpg"
        },
        "canLookStory": true,
        "canTrialSend": false,
        "headerThumbs": {
          "w480": "https://thumbs.onlyfans.com/.../header.jpg",
          "w760": "https://thumbs.onlyfans.com/.../header.jpg"
        },
        "isRestricted": false,
        "subscribedBy": true,
        "subscribedOn": true,
        "canCreateTrial": false,
        "canPayInternal": true,
        "canUnsubscribe": true,
        "favoritedCount": 123,
        "favoritesCount": 123,
        "hasPinnedPosts": false,
        "isAdultContent": false,
        "showMediaCount": true,
        "subscribePrice": 0,
        "canCommentStory": true,
        "hasSavedStreams": false,
        "isRealPerformer": true,
        "showPostsInFeed": true,
        "tipsMinInternal": 1,
        "tipsTextEnabled": true,
        "canAddSubscriber": false,
        "subscribedByData": {
          "price": 0,
          "status": null,
          "isMuted": false,
          "duration": "22 days",
          "newPrice": 0,
          "expiredAt": "2025-01-01T01:01:01+00:00",
          "renewedAt": "2025-01-01T01:01:01+00:00",
          "subscribes": [
            {
              "id": 123,
              "date": "2025-01-01T01:01:01+00:00",
              "type": "regular",
              "price": 0,
              "action": "subscribe",
              "userId": 123,
              "discount": 0,
              "duration": 123,
              "offerEnd": null,
              "earningId": 0,
              "isCurrent": true,
              "startDate": "2025-01-01T01:01:01+00:00",
              "cancelDate": null,
              "expireDate": "2025-01-01T01:01:01+00:00",
              "offerStart": null,
              "regularPrice": 0,
              "subscriberId": 123
            }
          ],
          "subscribeAt": "2025-01-01T01:01:01+00:00",
          "regularPrice": 0,
          "discountPeriod": 1,
          "subscribePrice": 0,
          "discountPercent": 0,
          "showPostsInFeed": true,
          "discountStartedAt": null,
          "unsubscribeReason": "No reason given",
          "discountFinishedAt": null,
          "hasActivePaidSubscriptions": false
        },
        "subscribedOnData": {
          "price": 0,
          "status": null,
          "isMuted": false,
          "duration": "22 days",
          "newPrice": 0,
          "tipsSumm": 0,
          "expiredAt": "2025-01-01T01:01:01+00:00",
          "postsSumm": 0,
          "renewedAt": "2025-01-01T01:01:01+00:00",
          "totalSumm": 0,
          "subscribes": [
            {
              "id": 123,
              "date": "2025-01-01T01:01:01+00:00",
              "type": "auto",
              "price": 0,
              "action": "subscribe",
              "userId": 123,
              "discount": 0,
              "duration": 123,
              "offerEnd": null,
              "earningId": 0,
              "isCurrent": true,
              "startDate": "2025-01-01T01:01:01+00:00",
              "cancelDate": null,
              "expireDate": "2025-01-01T01:01:01+00:00",
              "offerStart": null,
              "regularPrice": 0,
              "subscriberId": 123
            }
          ],
          "streamsSumm": 0,
          "subscribeAt": "2025-01-01T01:01:01+00:00",
          "messagesSumm": 0,
          "regularPrice": 4.99,
          "discountPeriod": 1,
          "subscribePrice": 4.99,
          "subscribesSumm": 0,
          "discountPercent": 0,
          "discountStartedAt": null,
          "unsubscribeReason": "No reason given",
          "discountFinishedAt": null,
          "hasActivePaidSubscriptions": false
        },
        "subscribersCount": null,
        "hasNotViewedStory": false,
        "isPaywallRequired": true,
        "isReferrerAllowed": true,
        "isSpringConnected": false,
        "archivedPostsCount": 0,
        "canCreatePromotion": false,
        "hasScheduledStream": false,
        "isSpotifyConnected": false,
        "subscribedByExpire": false,
        "finishedStreamsCount": 0,
        "isPendingAutoprolong": false,
        "isPrivateRestriction": false,
        "showSubscribersCount": false,
        "subscribedOnDuration": "22 days",
        "canReceiveChatMessage": true,
        "currentSubscribePrice": 0,
        "firstPublishedPostDate": "2025-01-01T01:01:01+00:00",
        "subscribedByExpireDate": "2025-01-01T01:01:01+00:00",
        "subscribedIsExpiredNow": false,
        "subscribedOnExpiredNow": false,
        "subscribedByAutoprolong": true,
        "privateArchivedPostsCount": 0,
        "shouldShowFinishedStreams": false,
        "isMarkdownDisabledForAbout": true,
        "avatarHeaderConverterUpload": true
      }
    }
  ],
  "_pagination": {
    "next_page": "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXX/chats?offset=10&limit=10"
  },
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 1,
      "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": 49999
    }
  }
}