Fansly API LogoFansly API
StatisticsNewBeta

Get Top Fans

Get the fans who spent the most in a date range.

https://v1.apifansly.com/api/fansly
GET
/{account_id}/stats/fans/topfans

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}/stats/fans/topfans?after=1786665600000&before=1794355200000&orderBy=transactions&limit=25" \
  -H "x-api-key: YOUR_API_KEY"
fetch("https://v1.apifansly.com/api/fansly/{account_id}/stats/fans/topfans?after=1786665600000&before=1794355200000&orderBy=transactions&limit=25", {
  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}/stats/fans/topfans?after=1786665600000&before=1794355200000&orderBy=transactions&limit=25"
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}/stats/fans/topfans?after=1786665600000&before=1794355200000&orderBy=transactions&limit=25"))
        .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}/stats/fans/topfans?after=1786665600000&before=1794355200000&orderBy=transactions&limit=25");
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}/stats/fans/topfans?after=1786665600000&before=1794355200000&orderBy=transactions&limit=25"
    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

orderBy*
string
Sort by netMills, grossMills or transactions.
after*
number
Start of the date range, Unix timestamp (ms).
before*
number
End of the date range, Unix timestamp (ms).
limit ?
number
Max fans to return, up to 25.

Response

Shortened: aggregationData.accounts is cut to one entry with fewer fields. It has the profile of each fan in rows, matched by fanId.

{
    "statusCode": 200,
    "message": "Success",
    "data": {
        "status_code": 200,
        "data": {
            "success": true,
            "response": {
                "afterBucket": 1786665600000,
                "beforeBucket": 1794355200000,
                "rows": [
                    {
                        "fanId": "fan_account_identifier",
                        "transactions": 3,
                        "grossMills": 1350,
                        "netMills": 1080,
                        "refunds": 0,
                        "refundedGrossMills": 0,
                        "refundedNetMills": 0,
                        "firstBucket": "1788393600000",
                        "lastBucket": "1788393600000",
                        "netAfterRefundsMills": 1080
                    },
                    {
                        "fanId": "fan_account_identifier",
                        "transactions": 3,
                        "grossMills": 2100,
                        "netMills": 1680,
                        "refunds": 0,
                        "refundedGrossMills": 0,
                        "refundedNetMills": 0,
                        "firstBucket": "1773619200000",
                        "lastBucket": "1790035200000",
                        "netAfterRefundsMills": 1680
                    }
                ],
                "aggregationData": {
                    "accounts": [
                        {
                            "id": "fan_account_identifier",
                            "username": "fan_username",
                            "displayName": null,
                            "flags": 18,
                            "version": 3,
                            "createdAt": 1765217963000,
                            "followCount": 4,
                            "subscriberCount": 0,
                            "timelineStats": {
                                "accountId": "fan_account_identifier",
                                "imageCount": 0,
                                "videoCount": 0,
                                "bundleCount": 0,
                                "bundleImageCount": 0,
                                "bundleVideoCount": 0,
                                "fetchedAt": 1792770352161
                            },
                            "postLikes": 4,
                            "accountMediaLikes": 0,
                            "statusId": 1,
                            "lastSeenAt": 0,
                            "following": true,
                            "followsYou": true,
                            "profileAccess": true
                        }
                    ]
                }
            }
        }
    },
    "timestamp": "2026-11-11T21:32:09.902Z"
}

On this page