Fansly API LogoFansly API

Get Tracking Link General Stats

Get general stats for a tracking link.

Get general stats for a tracking link, filtered by date. Get the link's id from Get Tracking Links.

https://v1.apifansly.com/api/fansly
GET
/{account_id}/tracking-links/stats

Get Started

All requests to the Fansly API require an API Key. See the Authentication page for details.

curl -X GET "https://v1.apifansly.com/api/fansly/{account_id}/tracking-links/stats?trackingLinkId=id&before=1794355200000&after=1789084800000" \
  -H "x-api-key: YOUR_API_KEY"
fetch("https://v1.apifansly.com/api/fansly/{account_id}/tracking-links/stats?trackingLinkId=id&before=1794355200000&after=1789084800000", {
  method: "GET",
  headers: {
    "x-api-key": "YOUR_API_KEY"
  }
})
.then(response => response.json())
.then(data => console.log(data));
import requests

url = "https://v1.apifansly.com/api/fansly/{account_id}/tracking-links/stats?trackingLinkId=id&before=1794355200000&after=1789084800000"
headers = {
    "x-api-key": "YOUR_API_KEY"
}

response = requests.get(url, headers=headers)
print(response.json())
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;

HttpClient client = HttpClient.newHttpClient();

HttpRequest request = HttpRequest.newBuilder()
        .uri(URI.create("https://v1.apifansly.com/api/fansly/{account_id}/tracking-links/stats?trackingLinkId=id&before=1794355200000&after=1789084800000"))
        .header("x-api-key", "YOUR_API_KEY")
        .GET()
        .build();

client.sendAsync(request, HttpResponse.BodyHandlers.ofString())
        .thenApply(HttpResponse::body)
        .thenAccept(System.out::println)
        .join();
using System.Net.Http;
using System.Threading.Tasks;

var client = new HttpClient();
client.DefaultRequestHeaders.Add("x-api-key", "YOUR_API_KEY");

var response = await client.GetAsync("https://v1.apifansly.com/api/fansly/{account_id}/tracking-links/stats?trackingLinkId=id&before=1794355200000&after=1789084800000");
var responseString = await response.Content.ReadAsStringAsync();

Console.WriteLine(responseString);
package main

import (
    "fmt"
    "io/ioutil"
    "net/http"
)

func main() {
    url := "https://v1.apifansly.com/api/fansly/{account_id}/tracking-links/stats?trackingLinkId=id&before=1794355200000&after=1789084800000"
    req, _ := http.NewRequest("GET", url, nil)
    req.Header.Set("x-api-key", "YOUR_API_KEY")

    client := &http.Client{}
    resp, _ := client.Do(req)
    defer resp.Body.Close()

    body, _ := ioutil.ReadAll(resp.Body)
    fmt.Println(string(body))
}

Path Parameters

account_id*
string
The unique identifier for the connected account, retrieved from your Dashboard.

Query Parameters

trackingLinkId*
string
The tracking link's id from Get Tracking Links.
before*
number
End of the date range, Unix timestamp (ms).
after*
number
Start of the date range, Unix timestamp (ms).

Response

{
    "statusCode": 200,
    "message": "Success",
    "data": {
        "status_code": 200,
        "data": {
            "success": true,
            "response": [
                {
                    "trackingLinkId": "unique_tracking_link_identifier",
                    "timestamp": "1788134400000",
                    "clicks": 0,
                    "claims": 1,
                    "follows": 0,
                    "subscriptions": 0,
                    "year": 2026,
                    "month": 8,
                    "date": 31
                },
                {
                    "trackingLinkId": "unique_tracking_link_identifier",
                    "timestamp": "1787702400000",
                    "clicks": 0,
                    "claims": 1,
                    "follows": 0,
                    "subscriptions": 0,
                    "year": 2026,
                    "month": 8,
                    "date": 26
                }
            ]
        }
    },
    "timestamp": "2026-11-10T18:00:45.637Z"
}

On this page