Statistics
Statistics Overview
Get an overview of statistics for fans, visitors, posts, or general.
AuthorizationBearer <token>
Get your API Key from OnlyFansAPI Console - https://app.onlyfansapi.com/api-keys
In: header
Path Parameters
accountstring
The Account ID
Query Parameters
start_datestring
The start date for the statistics.
end_datestring
The end date for the statistics.
type?string
The type of statistics to retrieve (default = empty)
Value in
"fans" | "visitors" | "posts"
Response Body
curl -X GET "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/overview?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=fans"
fetch("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/overview?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=fans")
package main
import (
"fmt"
"net/http"
"io/ioutil"
)
func main() {
url := "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/overview?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=fans"
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := ioutil.ReadAll(res.Body)
fmt.Println(res)
fmt.Println(string(body))
}
import requests
url = "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/overview?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=fans"
response = requests.request("GET", url)
print(response.text)
import java.net.URI;
import java.net.http.HttpClient;
import java.net.http.HttpRequest;
import java.net.http.HttpResponse;
import java.net.http.HttpResponse.BodyHandlers;
import java.time.Duration;
HttpClient client = HttpClient.newBuilder()
.connectTimeout(Duration.ofSeconds(10))
.build();
HttpRequest.Builder requestBuilder = HttpRequest.newBuilder()
.uri(URI.create("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/overview?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=fans"))
.GET()
.build();
try {
HttpResponse<String> response = client.send(requestBuilder.build(), BodyHandlers.ofString());
System.out.println("Status code: " + response.statusCode());
System.out.println("Response body: " + response.body());
} catch (Exception e) {
e.printStackTrace();
}
using System;
using System.Net.Http;
using System.Text;
var client = new HttpClient();
var response = await client.GetAsync("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/overview?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=fans");
var responseBody = await response.Content.ReadAsStringAsync();
{
"data": {
"earning": {
"total": 123.45,
"gross": 123.45,
"delta": 1.6
},
"posts": {
"hasStatistic": true,
"count": {
"total": 123,
"delta": 0
},
"views": {
"total": 123,
"delta": -7.6
},
"chartData": [
{
"date": "2025-01-01T00:00:00+00:00",
"count": 123
}
],
"earnings": {
"total": 123,
"gross": 123,
"delta": 123
}
},
"streams": {
"hasStatistic": false,
"count": {
"total": "0m",
"delta": 0
},
"views": {
"total": 0,
"delta": 0
},
"chartData": [
{
"date": "2025-01-01T00:00:00+00:00",
"count": 123
}
],
"earnings": {
"total": 123,
"gross": 123,
"delta": 123
}
},
"visitors": {
"hasStatistic": true,
"visitors": {
"total": 0,
"delta": -100
},
"chartData": [
{
"date": "2025-01-01T00:00:00+00:00",
"count": 123
}
],
"earnings": {
"total": 123.45,
"gross": 123.45,
"delta": -10.9
},
"subscriptions": {
"new": {
"total": 123,
"delta": -5.7
},
"renew": {
"total": 123,
"delta": -17
}
}
},
"massMessages": {
"hasStatistic": true,
"count": {
"total": 123,
"delta": 14.5
},
"views": {
"total": 0,
"delta": 0
},
"chartData": [
{
"date": "2025-01-01T00:00:00+00:00",
"count": 123
}
],
"earnings": {
"total": 123.45,
"delta": -0.1,
"gross": 123.45
}
}
},
"_meta": {
"_credits": {
"used": 1,
"balance": 999999254,
"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": 49979
}
}
}