OnlyFans API DocumentationOnlyFans API
Analytics

Compare Periods

Compare earnings and activity between two date ranges. current is startDate–endDate; previous is compareStartDate–compareEndDate.

https://v1.onlyfansapi.io
POST
/api/analytics/summary/comparison

Headers

x-api-key*
string
Your API key. See Authentication.

Body Parameters

accountId*
string
The connected account to report on, as returned by Authenticate Account.
startDate ?
string
Start of the range, UTC. YYYY-MM-DD, YYYY-MM-DD HH:MM:SS or ISO 8601. Defaults to 30 days before endDate.
endDate ?
string
End of the range, UTC. A bare date covers the whole day. Defaults to now.
compareStartDate*
string
Start of the period to compare against, UTC.
compareEndDate*
string
End of the period to compare against, UTC.