StatisticsNewBeta
Get Geo Stats
Get media views and profile visits by country in a date range.
https://v1.apifansly.com/api/fansly
GET
/{account_id}/stats/geo
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/geo?source=forYou&limit=10&after=1786752000000&before=1794441600000" \
-H "x-api-key: YOUR_API_KEY"fetch("https://v1.apifansly.com/api/fansly/{account_id}/stats/geo?source=forYou&limit=10&after=1786752000000&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/geo?source=forYou&limit=10&after=1786752000000&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/geo?source=forYou&limit=10&after=1786752000000&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/geo?source=forYou&limit=10&after=1786752000000&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/geo?source=forYou&limit=10&after=1786752000000&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*
stringThe unique identifier for the connected account, retrieved from your Dashboard.
Query Parameters
source*
stringWhere the views came from:
forYou, timeline or others.after*
numberStart of the date range, Unix timestamp (ms).
before*
numberEnd of the date range, Unix timestamp (ms).
limit ?
numberMax countries to return.
Response
rows has media views per country and profileRows has profile visits per country, both by two-letter country code. 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": 1786752000000,
"beforeBucket": 1794441600000,
"source": 0,
"rows": [
{
"country": "SE",
"views": 2,
"imageViews": 0,
"watchMs": 1091,
"videoViews": 2,
"watchPctSum": 2020,
"avgWatchMs": 545.5,
"avgWatchPercent": 10.1
},
{
"country": "GB",
"views": 1,
"imageViews": 0,
"watchMs": 2585,
"videoViews": 1,
"watchPctSum": 4787,
"avgWatchMs": 2585,
"avgWatchPercent": 47.87
},
{
"country": "FR",
"views": 1,
"imageViews": 0,
"watchMs": 1688,
"videoViews": 1,
"watchPctSum": 3126,
"avgWatchMs": 1688,
"avgWatchPercent": 31.26
},
{
"country": "SV",
"views": 1,
"imageViews": 0,
"watchMs": 256,
"videoViews": 1,
"watchPctSum": 474,
"avgWatchMs": 256,
"avgWatchPercent": 4.74
}
],
"profileRows": [
{
"country": "ES",
"profileVisits": 12
},
{
"country": "US",
"profileVisits": 6
},
{
"country": "GB",
"profileVisits": 2
},
{
"country": "LV",
"profileVisits": 1
},
{
"country": "EC",
"profileVisits": 1
}
]
}
}
},
"timestamp": "2026-11-12T14:56:51.195Z"
}