Fansly API LogoFansly API
StatisticsNewBeta

Get Media Benchmarks

Get media performance benchmarks for a date range.

https://v1.apifansly.com/api/fansly
GET
/{account_id}/stats/media/benchmarks

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/media/benchmarks?source=others&after=1791936000000&before=1794441600000" \
  -H "x-api-key: YOUR_API_KEY"
fetch("https://v1.apifansly.com/api/fansly/{account_id}/stats/media/benchmarks?source=others&after=1791936000000&before=1794441600000", {
  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/media/benchmarks?source=others&after=1791936000000&before=1794441600000"
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/media/benchmarks?source=others&after=1791936000000&before=1794441600000"))
        .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/media/benchmarks?source=others&after=1791936000000&before=1794441600000");
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/media/benchmarks?source=others&after=1791936000000&before=1794441600000"
    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

source*
string
Where the views came from: forYou, timeline or others.
after*
number
Start of the date range, Unix timestamp (ms).
before*
number
End of the date range, Unix timestamp (ms).

Response

Video stats grouped by video length. Each bucket covers videos from minMs to maxMs; maxMs: 0 on the last bucket means no upper limit. source is Fansly's code: 0 For You, 1 Timeline, 4 Others.

{
    "statusCode": 200,
    "message": "Success",
    "data": {
        "status_code": 200,
        "data": {
            "success": true,
            "response": {
                "afterBucket": 1791936000000,
                "beforeBucket": 1794441600000,
                "source": 4,
                "buckets": [
                    {
                        "lengthBucket": 0,
                        "minMs": 0,
                        "maxMs": 6000,
                        "mediaCount": 0,
                        "views": 0,
                        "watchMs": 0,
                        "videoViews": 0,
                        "completedViews": 0,
                        "watchPctSum": 0,
                        "avgWatchMs": 0,
                        "avgWatchPercent": 0,
                        "completionRate": 0
                    },
                    {
                        "lengthBucket": 1,
                        "minMs": 6000,
                        "maxMs": 10000,
                        "mediaCount": 0,
                        "views": 0,
                        "watchMs": 0,
                        "videoViews": 0,
                        "completedViews": 0,
                        "watchPctSum": 0,
                        "avgWatchMs": 0,
                        "avgWatchPercent": 0,
                        "completionRate": 0
                    },
                    {
                        "lengthBucket": 2,
                        "minMs": 10000,
                        "maxMs": 20000,
                        "mediaCount": 0,
                        "views": 0,
                        "watchMs": 0,
                        "videoViews": 0,
                        "completedViews": 0,
                        "watchPctSum": 0,
                        "avgWatchMs": 0,
                        "avgWatchPercent": 0,
                        "completionRate": 0
                    },
                    {
                        "lengthBucket": 3,
                        "minMs": 20000,
                        "maxMs": 40000,
                        "mediaCount": 0,
                        "views": 0,
                        "watchMs": 0,
                        "videoViews": 0,
                        "completedViews": 0,
                        "watchPctSum": 0,
                        "avgWatchMs": 0,
                        "avgWatchPercent": 0,
                        "completionRate": 0
                    },
                    {
                        "lengthBucket": 4,
                        "minMs": 40000,
                        "maxMs": 90000,
                        "mediaCount": 0,
                        "views": 0,
                        "watchMs": 0,
                        "videoViews": 0,
                        "completedViews": 0,
                        "watchPctSum": 0,
                        "avgWatchMs": 0,
                        "avgWatchPercent": 0,
                        "completionRate": 0
                    },
                    {
                        "lengthBucket": 5,
                        "minMs": 90000,
                        "maxMs": 0,
                        "mediaCount": 0,
                        "views": 0,
                        "watchMs": 0,
                        "videoViews": 0,
                        "completedViews": 0,
                        "watchPctSum": 0,
                        "avgWatchMs": 0,
                        "avgWatchPercent": 0,
                        "completionRate": 0
                    }
                ]
            }
        }
    },
    "timestamp": "2026-11-12T14:00:00.000Z"
}

On this page