---
title: "Top Message"
method: GET
path: "/api/{account}/engagement/messages/top-message"
tags: ["Engagement / Messages"]
---

# Top Message

`GET /api/{account}/engagement/messages/top-message`

Get the top performing message by purchases in the selected timeframe.

## Query parameters

- `startDate` string — The start date for the period. Keep empty to retrieve from the model start date.
- `endDate` string — The end date for the period. Keep empty to retrieve until now. MUST BE DATE AFTER `startDate`.

## Response `200`

- object
  - `data` object
    - `purchases` object
      - `id` integer
      - `date` string
      - `responseType` string
      - `text` string
      - `rawText` string
      - `giphyId` string, nullable
      - `isFree` boolean
      - `isMediaReady` boolean
      - `mediaCount` integer
      - `media` object[]
        - `id` integer
        - `type` string
        - `convertedToVideo` boolean
        - `canView` boolean
        - `hasError` boolean
        - `createdAt` string
        - `isReady` boolean
        - `files` object
          - `full` object
            - `url` string
            - `width` integer
            - `height` integer
            - `size` integer
            - `sources` unknown[]
              - …
          - `thumb` object
            - `url` string
            - `width` integer
            - `height` integer
            - `size` integer
          - `preview` object
            - `url` string
            - `width` integer
            - `height` integer
            - `size` integer
          - `squarePreview` object
            - `url` string
            - `width` integer
            - `height` integer
            - `size` integer
        - `duration` integer
        - `hasCustomPreview` boolean
        - `videoSources` object
          - `240` string
          - `720` string
      - `previews` unknown[]
        - unknown
      - `isTip` boolean
      - `isReportedByMe` boolean
      - `viewedCount` integer
      - `sentCount` integer
      - `isCanceled` boolean
      - `template` string
      - `canUnsend` boolean
      - `unsendSeconds` integer
      - `price` string
      - `purchasedCount` integer
      - `canSendMessageToBuyers` boolean
      - `totalRevenueGenerated` string
      - `relationships` object
        - `buyers` object
          - `href` string
          - `method` string
  - `_meta` object
    - `_credits` object
      - `used` integer
      - `balance` integer
      - `note` string
    - `_cache` object
      - `is_cached` boolean
      - `note` string
    - `_rate_limits` object
      - `limit_minute` integer
      - `limit_day` string, nullable
      - `remaining_minute` integer
      - `remaining_day` string, nullable
      - `notice` string

---

[API](https://skmtc.net/onlyfansapi/apis/onlyfans-api.md) · [All operations](https://skmtc.net/onlyfansapi/apis/onlyfans-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/onlyfansapi/onlyfans-api/versions/4a99d36f28a3/schema)
