OnlyFans API
Tracking links

List Tracking Links

List all tracking links for the account and revenue data

GET
/api/{account}/tracking-links
AuthorizationBearer <token>

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

In: header

Path Parameters

accountstring

The Account ID

Query Parameters

startDate?string | null

The start date for Tracking Links. Keep empty to get all.

endDate?string | null

The end date for Tracking Links. Keep empty to get all.

with_deleted?boolean | null

Whether or not to include deleted tracking links in the response. Default false

sortby?string | null

Sort by subscriber count (claims), or creation date

Value in"claims" | "created_date"
sort?string | null

Sort the results. Default desc

Value in"desc" | "asc"
limit?integer | null

The number of tracking links to return. Default 3

offset?integer | null

The offset used for pagination. Default 0

synchronous?boolean | null

Wait for the revenue data to finish processing, instead of processing in the background. Will result in longer response times, use with caution. Default false

Response Body

curl -X GET "https://app.onlyfansapi.com/api/string/tracking-links?startDate=2025-01-01+00%3A00%3A00%2C+-30days&endDate=2025-01-01+00%3A00%3A00%2C+now&with_deleted=false&sortby=claims&sort=desc&limit=3&offset=0&synchronous=false"
{
  "data": {
    "list": [
      {
        "id": 123456,
        "campaignCode": 123,
        "campaignName": "Example Campaign - IG Bio SFS",
        "campaignUrl": "https://onlyfans.com/USERNAME/c123",
        "subscribersCount": 0,
        "clicksCount": 0,
        "createdAt": "2025-01-01T00:00:00+00:00",
        "endDate": null,
        "revenue": {
          "total": 0,
          "revenuePerSubscriber": 0,
          "revenuePerClick": 0,
          "spendersCount": 1,
          "calculatedAt": "2025-01-01T00:00:00+00:00",
          "isLoading": false
        },
        "links": {
          "related": {
            "subscribers": "https://app.onlyfansapi.com/api/acct_XXXXXXX/tracking-links/123456/subscribers"
          }
        }
      }
    ],
    "hasMore": true
  },
  "_pagination": {
    "next_page": "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXX/tracking-links?offset=3&limit=3"
  },
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 9529,
      "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
    }
  }
}