OnlyFans API
Posts

Show Post Statistics

Show the statistics of a post like purchases, views, likes, tips and more.

GET
/api/{account}/posts/{post_id}/stats
AuthorizationBearer <token>

You can retrieve your token by visiting the OnlyFansAPI Console and clicking API Keys -> Create API Key.

In: header

Path Parameters

accountstring

The Account ID

post_idinteger

The ID of the post

Query Parameters

with_historical_data?boolean

Set to true to include historical data for a post.

Response Body

curl -X GET "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/posts/1234567890/stats?with_historical_data=true"
fetch("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/posts/1234567890/stats?with_historical_data=true")
package main

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

func main() {
  url := "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/posts/1234567890/stats?with_historical_data=true"

  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/posts/1234567890/stats?with_historical_data=true"

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/posts/1234567890/stats?with_historical_data=true"))
  .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/posts/1234567890/stats?with_historical_data=true");
var responseBody = await response.Content.ReadAsStringAsync();
{
  "data": {
    "isAvailable": true,
    "hasStats": false,
    "hasVideo": false,
    "lookCount": 0,
    "uniqueLookCount": 0,
    "uniqueLookChart": [
      {
        "date": "2025-06-20T19:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T20:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T21:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T22:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T23:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-21T00:00:00+00:00",
        "count": 0
      }
    ],
    "lookChart": [
      {
        "date": "2025-06-20T19:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T20:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T21:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T22:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T23:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-21T00:00:00+00:00",
        "count": 0
      }
    ],
    "lookDuration": 0,
    "lookDurationAverage": 0,
    "likeCount": 0,
    "likeChart": [
      {
        "date": "2025-06-20T19:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T20:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T21:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T22:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T23:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-21T00:00:00+00:00",
        "count": 0
      }
    ],
    "commentCount": 0,
    "commentChart": [
      {
        "date": "2025-06-20T19:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T20:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T21:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T22:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T23:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-21T00:00:00+00:00",
        "count": 0
      }
    ],
    "tipCount": 0,
    "tipChart": [
      {
        "date": "2025-06-20T19:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T20:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T21:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T22:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T23:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-21T00:00:00+00:00",
        "count": 0
      }
    ],
    "tipSum": 0,
    "purchasedCount": 0,
    "purchasedSumm": 0,
    "tipSumChart": [
      {
        "date": "2025-06-20T19:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T20:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T21:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T22:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T23:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-21T00:00:00+00:00",
        "count": 0
      }
    ],
    "purchasesChart": [
      {
        "date": "2025-06-20T19:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T20:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T21:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T22:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-20T23:00:00+00:00",
        "count": 0
      },
      {
        "date": "2025-06-21T00:00:00+00:00",
        "count": 0
      }
    ]
  },
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 999999878,
      "note": "Always"
    },
    "_cache": {
      "is_cached": false,
      "note": "Cache disabled for this endpoint"
    },
    "_rate_limits": {
      "limit_minute": 1000,
      "limit_day": 50000,
      "remaining_minute": 996,
      "remaining_day": 49885
    }
  }
}