onlyfansapi-skill
Query 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.
Install via CLI (Recommended)
clawhub install openclaw/skills/skills/martingalovic/onlyfans-apiOnlyFans API Skill
This skill queries the OnlyFansAPI.com platform to answer questions about OnlyFans agency analytics — revenue, model performance, and link conversion metrics.
Prerequisites
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"
API Basics
- Base URL:
https://app.onlyfansapi.com - Auth header:
Authorization: Bearer $ONLYFANSAPI_API_KEY - All dates use URL-encoded format:
YYYY-MM-DD HH:MM:SS - If not specific time is specified use start of day or end of day (for date range ending date)
- Pagination: use
limitandoffsetquery params. CheckhasMoreor_pagination.next_pagein responses. - Whenever possible use User-Agent with value: OnlyFansAPI-Skill
- Try your best to infer schema from the example response of the endpoint. Eg "data.total.total" for earnings scalar value from endpoint.
Workflows
1. Get revenue of all models for the past N days
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 period
-
Summarize: Present a table of each model's display name, username, net revenue, and gross revenue. Sum the totals.
2. Which model is performing the best
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.
3. Which Free Trial Link has the highest conversion rate (subscribers → spenders)
- List free trial links:
Metadata
Not sure this is the right skill?
Describe what you want to build — we'll match you to the best skill from 16,000+ options.
Find the right skillPaste this into your clawhub.json to enable this plugin.
{
"plugins": {
"official-martingalovic-onlyfans-api": {
"enabled": true,
"auto_update": true
}
}
}