Reach
Get Profile Visitors Top Countries
Ranked country breakdown of profile-page visits — guests + signed-in users + paying subscribers — with an Others rollup row. Requires permission api_reach_read_profile_visitors_countries.
https://public-api.buffmetrics.comGET/v1/{account_id}/reach/profile-visitors/countries
Bearer
Authorization
defaultAuthorizationBearer <token>Send your FansMetric API key as a Bearer token in the Authorization header.
In: header
Path Parameters
account_id*integerOnlyFans numeric account ID.
Query Parameters
start_datestringWindow start. Default 2 years ago, UTC.
end_datestringWindow end. Default end of today, UTC.
bystringBucket:
total(default),guests,users,subscribers.limitintegerTop-N rows. Default 10. Capped at 100.
curl --request GET "https://public-api.buffmetrics.com/v1/acct_XXXXX/reach/profile-visitors/countries?start_date=sample_start_date&end_date=sample_end_date&by=sample_by" \
--header "Authorization: Bearer YOUR_API_KEY"Response
200{
"data":{
"isAvailable":true
"hasStats":true
"topCountries":{
"hasMore":true
"totals":{
"total":2581195
"guests":"22445"
"users":"2558750"
"subscribers":0
}
"rows":[
0:{
"rank":1
"countryName":"United States"
"countryCode":"US"
"viewsCount":{
"total":1407253
"guests":11635
"users":1395618
"subscribers":0
}
}
1:{
"rank":4
"countryName":"Others"
"countryCode":""
"viewsCount":{
"total":862812
"guests":8972
"users":853840
"subscribers":0
}
}
]
}
}
"_meta":{
"_credits":{
"used":1
}
"_rate_limits":{
"limit_minute":1000
"remaining_minute":999
"limit_day":50000
"remaining_day":49999
}
}
}