v8

latestOpenAPI 3.0.3raw.githubusercontent.com2026-05-2526602.8 MB
Chats

List Chat Media (Gallery)

List media files shared in a specific chat.

get/api/{account}/chats/{chat_id}/media

Query parameters

type'photos' | 'videos' | 'audios' nullable

Filter by specific media types. Keep empty to return all.

Example:claims

Filter by specific media types. Keep empty to return all.

limitstring

Number of medias to return. Default = 20

Number of medias to return. Default = 20

offsetstring

Number of medias to skip for pagination

Number of medias to skip for pagination

skip_usersstring

Whether to skip user details in response (all or none). Default = all

Example:all

Whether to skip user details in response (all or none). Default = all

Response

Success

Example response

{
  "data": {
    "list": [
      {
        "responseType": "message",
        "text": "Text message!",
        "giphyId": null,
        "lockedText": true,
        "isFree": true,
        "price": 0,
        "isMediaReady": true,
        "mediaCount": 1,
        "media": [
          {
            "id": 123,
            "type": "photo",
            "convertedToVideo": false,
            "canView": true,
            "hasError": false,
            "createdAt": "2025-01-01T00:00:00+00:00",
            "isReady": true,
            "files": {
              "full": {
                "url": "https://cdn2.onlyfans.com/files/...",
                "width": 2048,
                "height": 1360,
                "size": 0,
                "sources": []
              },
              "thumb": {
                "url": "https://cdn2.onlyfans.com/files/...",
                "width": 300,
                "height": 300,
                "size": 0
              },
              "preview": {
                "url": "https://cdn2.onlyfans.com/files/...",
                "width": 960,
                "height": 638,
                "size": 0
              },
              "squarePreview": {
                "url": "https://cdn2.onlyfans.com/files/...",
                "width": 960,
                "height": 960,
                "size": 0
              }
            },
            "duration": 0,
            "hasCustomPreview": false,
            "videoSources": {
              "240": null,
              "720": null
            }
          }
        ],
        "previews": [],
        "isTip": false,
        "isReportedByMe": false,
        "isCouplePeopleMedia": false,
        "queueId": 123,
        "isMarkdownDisabled": true,
        "releaseForms": [],
        "fromUser": {
          "id": 123,
          "_view": "t"
        },
        "isFromQueue": false,
        "id": 123,
        "isOpened": false,
        "isNew": false,
        "createdAt": "2025-01-01T00:00:00+00:00",
        "changedAt": "2025-01-01T00:00:00+00:00",
        "cancelSeconds": 0,
        "isLiked": false,
        "canPurchase": false,
        "canPurchaseReason": "free",
        "canReport": false,
        "canBePinned": true,
        "isPinned": false
      }
    ],
    "hasMore": false,
    "nextLastId": "123"
  },
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 999964345,
      "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": 49985
    }
  }
}