List Tracking Links
Changed onList all tracking links for the account and revenue data
Request
- Base URLhttps://app.onlyfansapi.com
- URLhttps://app.onlyfansapi.com/api/{account}/tracking-links
- AuthHTTP bearer
Query parameters
The start date for tracking links. Keep empty to get all. Must not be greater than 255 characters.
The end date for tracking links. Keep empty to get all. Must not be greater than 255 characters.
Whether to include deleted tracking links. Default true.
Sort by subscriber count (claims) or creation date (created_date).
Sort direction. Default desc.
The number of tracking links to return. Default 10. Must be at least 1. Must not be greater than 100.
The offset used for pagination. Default 0. Must be at least 0.
Wait for revenue calculation instead of processing it in the background.
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,
"chargebacks": 4,
"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=10&limit=10"
},
"_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
}
}
}Changes
- breaking
the
queryrequest parameterwith_deletedwas restricted to a list of enum values - breaking
for the
queryrequest parameterwith_deleted, the type changed frombooleantointeger - info
added the new optional
queryrequest parameterpagination - info
added the new enum value
0.00to thequeryrequest parameterwith_deleted - info
added the new enum value
1.00to thequeryrequest parameterwith_deleted - info
added the optional property
////to the response with the status
- breaking
- breaking
the response property
///became nullable for the status - breaking
the
////response's property type changed fromintegertonumberfor status - info
added the optional property
///to the response with the status
- breaking