v8

latestOpenAPI 3.0.3raw.githubusercontent.com2026-05-2526602.8 MB
Tracking Links

List Tracking Links

List all tracking links for the account and revenue data

get/api/{account}/tracking-links

Query parameters

startDatestring nullable

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

Example:2025-01-01 00:00:00, -30days

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

endDatestring nullable

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

Example:2025-01-01 00:00:00, now

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

with_deletedboolean nullable

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

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

sortby'claims' | 'created_date' nullable

Sort by subscriber count (claims), or creation date

Example:claims

Sort by subscriber count (claims), or creation date

sort'desc' | 'asc' nullable

Sort the results. Default desc

Example:desc

Sort the results. Default desc

limitinteger nullable

The number of tracking links to return. Default 3

Example:3

The number of tracking links to return. Default 3

offsetinteger nullable

The offset used for pagination. Default 0

The offset used for pagination. Default 0

synchronousboolean nullable

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

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

Success

Example response

{
  "data": {
    "list": [
      {
        "id": 123456,
        "campaignCode": 123,
        "campaignName": "Example Campaign - IG Bio SFS",
        "campaignUrl": "https://onlyfans.com/USERNAME/c123",
        "subscribersCount": 10,
        "clicksCount": 100,
        "createdAt": "2025-01-01T00:00:00+00:00",
        "endDate": null,
        "tags": [
          "Instagram",
          "Twitter"
        ],
        "revenue": {
          "total": 20,
          "revenuePerSubscriber": 2,
          "revenuePerClick": 0.2,
          "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
    }
  }
}