OnlyFans API
Statistics | reach

Get Profile Visitors

Get the number of profile visitors for a given period.

GET
/api/{account}/statistics/reach/profile-visitors
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

Query Parameters

start_datestring

The start date for the period

end_datestring

The end date for the period.

type?string

Filter all / users / guests

Value in"total" | "users" | "guests"
filter?string

Optionally, filter the results by chart or topCountries. See example responses.

Value in"chart" | "topCountries"
limit?integer

Number of results to return

Response Body

curl -X GET "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/reach/profile-visitors?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=total&filter=chart&limit=10"
fetch("https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/reach/profile-visitors?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=total&filter=chart&limit=10")
package main

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

func main() {
  url := "https://app.onlyfansapi.com/api/acct_XXXXXXXXXXXXXXX/statistics/reach/profile-visitors?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=total&filter=chart&limit=10"

  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/reach/profile-visitors?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=total&filter=chart&limit=10"

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/reach/profile-visitors?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=total&filter=chart&limit=10"))
  .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/reach/profile-visitors?start_date=2025-01-01+00%3A00%3A00&end_date=2025-03-31+23%3A59%3A59&type=total&filter=chart&limit=10");
var responseBody = await response.Content.ReadAsStringAsync();
{
  "data": {
    "isAvailable": true,
    "topCountries": {
      "hasMore": true,
      "totals": {
        "total": 123,
        "guests": "123",
        "users": "123",
        "subscribers": 123
      },
      "rows": [
        {
          "rank": 1,
          "countryName": "Australia",
          "countryCode": "AU",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 2,
          "countryName": "United States",
          "countryCode": "US",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 3,
          "countryName": "Spain",
          "countryCode": "ES",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 4,
          "countryName": "United Kingdom",
          "countryCode": "GB",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 5,
          "countryName": "Austria",
          "countryCode": "AT",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 6,
          "countryName": "Norway",
          "countryCode": "NO",
          "viewsCount": {
            "total": 21,
            "guests": 21,
            "users": 0,
            "subscribers": 0
          }
        },
        {
          "rank": 7,
          "countryName": "Singapore",
          "countryCode": "SG",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 8,
          "countryName": "Germany",
          "countryCode": "DE",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 9,
          "countryName": "Mexico",
          "countryCode": "MX",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 10,
          "countryName": "Israel",
          "countryCode": "IL",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        },
        {
          "rank": 11,
          "countryName": "Others",
          "countryCode": "",
          "viewsCount": {
            "total": 123,
            "guests": 123,
            "users": 123,
            "subscribers": 123
          }
        }
      ]
    },
    "topDurationUsers": {
      "totals": {
        "total": 123,
        "guests": "123",
        "users": "123",
        "subscribers": 123
      }
    },
    "chart": {
      "visitors": [
        {
          "date": "2025-01-01T00:00:00+00:00",
          "count": 123
        }
      ],
      "duration": [
        {
          "date": "2025-01-01T00:00:00+00:00",
          "count": 123
        }
      ]
    },
    "total": {
      "current": "123",
      "delta": 12.3
    },
    "hasStats": true
  },
  "_meta": {
    "_credits": {
      "used": 1,
      "balance": 999999818,
      "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": 49963
    }
  }
}