Install
openclaw skills install onlyfans-apiQuery OnlyFans data and analytics via the OnlyFansAPI.com platform. Get revenue summaries across all models, identify top-performing models, analyze Free Trial and Tracking Link conversion rates, compare link earnings, and much more! Use when users ask about anything related to OnlyFans.
openclaw skills install onlyfans-apiThis skill queries the OnlyFansAPI.com platform to answer questions about OnlyFans agency analytics — revenue, model performance, and link conversion metrics.
The user must set the environment variable ONLYFANSAPI_API_KEY with their API key from https://app.onlyfansapi.com/api-keys.
If the key is not set, remind the user:
Export your OnlyFansAPI key:
export ONLYFANSAPI_API_KEY="your_api_key_here"
https://app.onlyfansapi.comAuthorization: Bearer $ONLYFANSAPI_API_KEYYYYY-MM-DD HH:MM:SSlimit and offset query params. Check hasMore or _pagination.next_page in responses.Steps:
List all connected accounts:
curl -s -H "Authorization: Bearer $ONLYFANSAPI_API_KEY" \
"https://app.onlyfansapi.com/api/accounts" | jq .
Each account object has "id" (e.g. "acct_xxx"), "onlyfans_username", and "display_name".
For each account, get earnings:
START=$(date -u -v-7d '+%Y-%m-%d+00%%3A00%%3A00') # macOS
# Linux: START=$(date -u -d '7 days ago' '+%Y-%m-%d+00%%3A00%%3A00')
END=$(date -u '+%Y-%m-%d+23%%3A59%%3A59')
curl -s -H "Authorization: Bearer $ONLYFANSAPI_API_KEY" \
"https://app.onlyfansapi.com/api/{account_id}/statistics/statements/earnings?start_date=$START&end_date=$END&type=total" | jq .
Response fields:
data.total — net earningsdata.gross — gross earningsdata.chartAmount — daily earnings breakdown arraydata.delta — percentage change vs. prior periodSummarize: Present a table of each model's display name, username, net revenue, and gross revenue. Sum the totals.
Use the same workflow as above. Rank models by data.total (net earnings) descending. The model with the highest value is the best performer.
Optionally also pull the statistics overview for richer context:
curl -s -H "Authorization: Bearer $ONLYFANSAPI_API_KEY" \
"https://app.onlyfansapi.com/api/{account_id}/statistics/overview?start_date=$START&end_date=$END" | jq .
This adds subscriber counts, visitor stats, post/message earnings breakdown.
List free trial links:
curl -s -H "Authorization: Bearer $ONLYFANSAPI_API_KEY" \
"https://app.onlyfansapi.com/api/{account_id}/trial-links?limit=100&offset=0&sort=desc&field=subscribe_counts&synchronous=true" | jq .
Key response fields per link:
id, trialLinkName, urlclaimCounts — total subscribers who claimed the trialclicksCounts — total clicksrevenue.total — total revenue from this linkrevenue.spendersCount — number of subscribers who spent moneyrevenue.revenuePerSubscriber — average revenue per subscriberCalculate conversion rate:
conversion_rate = spendersCount / claimCounts
Rank links by conversion rate descending.
Present results as a table: link name, claims, spenders, conversion rate, total revenue.
List tracking links:
curl -s -H "Authorization: Bearer $ONLYFANSAPI_API_KEY" \
"https://app.onlyfansapi.com/api/{account_id}/tracking-links?limit=100&offset=0&sort=desc&sortby=claims&synchronous=true" | jq .
Key response fields per link:
id, campaignName, campaignUrlsubscribersCount — total subscribers from this linkclicksCount — total clicksrevenue.total — total revenuerevenue.spendersCount — subscribers who spentrevenue.revenuePerSubscriber — avg revenue per subscriberrevenue.revenuePerClick — avg revenue per clickCalculate conversion rate:
conversion_rate = revenue.spendersCount / subscribersCount
Present results as a table: campaign name, subscribers, spenders, conversion rate, total revenue, revenue per subscriber.
Use the same listing endpoints above. Sort by revenue.total descending. Present the top links with their name, type (trial vs. tracking), total revenue, and subscriber/spender counts.
For agency-level queries that span all models, always:
GET /api/accountsWhen querying GET /api/{account}/statistics/statements/earnings, the type parameter filters by category:
total — all earnings combinedsubscribes — subscription revenuetips — tips receivedpost — paid post revenuemessages — paid message revenuestream — stream revenueIf you are unsure about an endpoint, parameter, response format, or how to accomplish a specific task with the OnlyFans API, consult the official documentation at https://docs.onlyfansapi.com. The site contains full API reference details, guides, and examples for all available endpoints. Always check the docs before guessing.
ONLYFANSAPI_API_KEY is not set, stop and ask the user to configure it._meta._rate_limits.remaining_minute or remaining_day is 0, warn the user about rate limits."is_authenticated": false, note that the account needs re-authentication.XX.X%.