curl --request GET \
--url https://api.onlyx.ai/v1/stats/revenue \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onlyx.ai/v1/stats/revenue"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onlyx.ai/v1/stats/revenue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Get revenue
Returns earnings for a window: totals (net after OnlyFans’ fee, gross, fee, settled versus still clearing, refunds), a split by what was paid for, one entry per day, per creator, and paid-message sales by who sent them — the AI (ai) or your team (team). Choose the window with days, or with start and end (both included, workspace time zone). Figures come from each creator’s OnlyFans earnings ledger as Onlyx has read it; complete: false means some ledger could not be read in full and the totals are a lower bound. Cached for a few minutes. Limited to 20 requests per minute per credential across all /stats endpoints.
Scope: requires stats:read.
Rate limits: 20 requests to /stats endpoints per 60 seconds per credential — on top of the general limit of 120 requests per 60 seconds per credential.
curl --request GET \
--url https://api.onlyx.ai/v1/stats/revenue \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.onlyx.ai/v1/stats/revenue"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.onlyx.ai/v1/stats/revenue', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));Authorizations
Query Parameters
Response
Earnings for the window: totals, by type, by day, by seller and by creator.
Revenue for a window. New fields may be added; ignore fields you do not know.