Analyse OnlyFans API

VérifiéPrudence

Interroge les données et analyses OnlyFans via la plateforme OnlyFansAPI.com. Récupère les résumés de revenus pour tous les modèles, identifie les meilleurs performeurs et analyse les taux de conversion des liens d'essai gratuit et de suivi. Utile pour les propriétaires d'agence ou les gestionnaires qui doivent surveiller la performance des modèles et l'efficacité des liens.

Spar Skills Guide Bot
Data & IAIntermédiaire
08/03/2026
Claude Code
#onlyfans#analytics#rest-api#revenue-tracking#curl

Recommandé pour

Synthèse automatique

Cette skill interroge la plateforme OnlyFansAPI.com via curl et jq pour produire des analyses de revenus, de performance par modèle et de conversion des liens d'essai gratuit.

Points forts

  • Enchaîne des workflows complets : lister les comptes, récupérer les earnings par compte, puis agréger les résultats dans un tableau récapitulatif.
  • Explique le calcul de conversion (spendersCount / claimCounts) et le classement des liens d'essai gratuit.
  • Documente les champs de réponse clés (data.total, data.gross, data.delta, revenuePerSubscriber) pour interpréter les résultats.
  • Précise les conventions d'API : en-tête Bearer, dates encodées en URL, pagination par limit/offset.

Limites

  • Nécessite une clé API OnlyFansAPI.com et un abonnement au service tiers ; sans la variable ONLYFANSAPI_API_KEY, aucune requête n'aboutit.
  • Les commandes de dates diffèrent entre macOS et Linux et doivent être encodées manuellement, ce qui est source d'erreurs.
  • Peu d'indications sur la gestion des erreurs HTTP, des limites de débit ou de la confidentialité des données de créateurs.
Quand l'utiliser

À utiliser lorsqu'on veut un rapport rapide sur les revenus et la performance des liens d'un ou plusieurs comptes OnlyFans gérés par une agence.

Quand l'éviter

À éviter si l'on ne dispose pas d'une clé API OnlyFansAPI.com ou si l'analyse doit être automatisée en production avec gestion d'erreurs robuste.

Analyse de sécurité

Prudence
Score qualité86/100

The skill is a legitimate third-party API client. It uses curl/jq and network access to query OnlyFansAPI.com with a user-provided API key. The credential is sent only to the declared service, and there are no malicious or destructive instructions, but the Bash/network/secret-handling aspects warrant caution.

Points d'attention
  • •Sends `ONLYFANSAPI_API_KEY` as a Bearer token to `https://app.onlyfansapi.com`; this is intended but exposes a sensitive credential to a third-party service.
  • •Uses Bash with curl/jq and network access; users should trust the API provider and review commands before execution.
  • •No destructive commands, obfuscated payloads, or exfiltration to unrelated endpoints were found.
Comment cette analyse est faite

Exemples

Weekly revenue by model
List all my connected OnlyFans accounts and give me a table of net and gross revenue for each one over the last 7 days, with the total across all models.
Best performing model
Which of my OnlyFans models earned the most in the past 30 days? Rank them by net earnings and include subscriber counts from the overview endpoint.
Free trial conversion ranking
Pull my free trial links for account acct_123 and rank them by conversion rate (spenders divided by claims), showing revenue per subscriber for each.

name: onlyfansapi-skill description: >- 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. compatibility: Requires curl, jq, and network access to app.onlyfansapi.com metadata: author: OnlyFansAPI.com version: "1.0" allowed-tools: Bash(curl:) Bash(jq:) Read

OnlyFans 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 limit and offset query params. Check hasMore or _pagination.next_page in 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:

  1. 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".

  2. 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 earnings
    • data.gross — gross earnings
    • data.chartAmount — daily earnings breakdown array
    • data.delta — percentage change vs. prior period
  3. 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)

  1. 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, url
    • claimCounts — total subscribers who claimed the trial
    • clicksCounts — total clicks
    • revenue.total — total revenue from this link
    • revenue.spendersCount — number of subscribers who spent money
    • revenue.revenuePerSubscriber — average revenue per subscriber
  2. Calculate conversion rate:

    conversion_rate = spendersCount / claimCounts
    

    Rank links by conversion rate descending.

  3. Present results as a table: link name, claims, spenders, conversion rate, total revenue.

4. Which Tracking Link has the highest conversion rate

  1. 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, campaignUrl
    • subscribersCount — total subscribers from this link
    • clicksCount — total clicks
    • revenue.total — total revenue
    • revenue.spendersCount — subscribers who spent
    • revenue.revenuePerSubscriber — avg revenue per subscriber
    • revenue.revenuePerClick — avg revenue per click
  2. Calculate conversion rate:

    conversion_rate = revenue.spendersCount / subscribersCount
    
  3. Present results as a table: campaign name, subscribers, spenders, conversion rate, total revenue, revenue per subscriber.

5. Which Free Trial / Tracking Link made the most money

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.

Multi-Account (Agency) Queries

For agency-level queries that span all models, always:

  1. First fetch all accounts via GET /api/accounts
  2. Loop through each account and gather the relevant data
  3. Aggregate and present combined results with per-model breakdowns

Earnings Type Filters

When querying GET /api/{account}/statistics/statements/earnings, the type parameter filters by category:

  • total — all earnings combined
  • subscribes — subscription revenue
  • tips — tips received
  • post — paid post revenue
  • messages — paid message revenue
  • stream — stream revenue

When In Doubt

If 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.

Error Handling

  • If ONLYFANSAPI_API_KEY is not set, stop and ask the user to configure it.
  • If an API call returns a non-200 status, show the error message and HTTP status code.
  • If _meta._rate_limits.remaining_minute or remaining_day is 0, warn the user about rate limits.
  • If an account has "is_authenticated": false, note that the account needs re-authentication.

Output Formatting

  • Always present data in markdown tables for readability.
  • Include currency values formatted to 2 decimal places.
  • When showing percentages (conversion rates, deltas), format as XX.X%.
  • For multi-model summaries, include a Total row at the bottom.

Du fichier au premier essai

Le téléchargement contient exactement le contenu affiché sur cette fiche. Cette copie peut différer de la dernière version du dépôt source.

Consulter la source et ses fichiers annexes

Ce téléchargement contient uniquement SKILL.md. Les scripts, références, modèles et dépendances éventuels ne sont pas inclus. Récupérez les fichiers nécessaires depuis la source en conservant leur arborescence avant de poursuivre.

1. Télécharger le fichier

Télécharger SKILL.md

Depuis la racine d’un projet de test, enregistrez le fichier sous .skill-downloads/onlyfans-api-analytics-mmh8qqt6/SKILL.md, ou utilisez la commande suivante. Ce dossier sert à examiner la skill avant son installation.

Commande pour macOS/Linux ou WSL : un shell POSIX et curl sont nécessaires. Sous Windows sans WSL, utilisez le bouton de téléchargement et créez le dossier manuellement.

mkdir -p '.skill-downloads/onlyfans-api-analytics-mmh8qqt6' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/onlyfans-api-analytics-mmh8qqt6/download' --output '.skill-downloads/onlyfans-api-analytics-mmh8qqt6/SKILL.md.part' && mv '.skill-downloads/onlyfans-api-analytics-mmh8qqt6/SKILL.md.part' '.skill-downloads/onlyfans-api-analytics-mmh8qqt6/SKILL.md'

2. Vérifier les prérequis

Lisez SKILL.md avant de l’utiliser. Si le fichier cite des scripts ou services externes, examinez-les et préparez les accès nécessaires dans votre environnement de test.

Environnement déclaré par l’auteur : Requires curl, jq, and network access to app.onlyfansapi.com

Outils déclarés par l’auteur (à vérifier dans votre agent) : Bash(curl:*) Bash(jq:*) Read

Extrait original : 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"

Les plateformes de la fiche sont des indications du catalogue. Les chemins ci-dessous suivent la documentation des outils ; ils ne prouvent pas que cette skill y a été exécutée. Aucune version minimale de ces outils n’est attestée pour cette fiche.

3. Charger la skill

Après vérification, copiez le dossier complet dans le projet avec l’une des commandes ci-dessous, puis ouvrez une nouvelle session de l’outil. La commande s’arrête si un dossier du même nom existe déjà : comparez les fichiers avant de le remplacer.

Claude Code
test -f '.skill-downloads/onlyfans-api-analytics-mmh8qqt6/SKILL.md' && test -s '.skill-downloads/onlyfans-api-analytics-mmh8qqt6/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/onlyfansapi-skill' && cp -R '.skill-downloads/onlyfans-api-analytics-mmh8qqt6' '.claude/skills/onlyfansapi-skill'

OpenSkills

OpenSkills doit déjà être installé. La procédure locale install/read est contrôlée avec OpenSkills 1.5.0, qui exige Node.js ≥ 20.6.0. Aucun slug du catalogue n’est résolu automatiquement.

Installation officielle d’OpenSkills
openskills install './.skill-downloads/onlyfans-api-analytics-mmh8qqt6'

openskills read 'onlyfans-api-analytics-mmh8qqt6'

La lecture doit afficher le contenu du fichier installé et son dossier de base. Elle ne lance ni la skill ni ses dépendances.

Pour un agent qui lit AGENTS.md, synchronisez ensuite l’index. Cette commande modifie AGENTS.md : relisez le diff avant de l’utiliser.

openskills sync

Mode manuel ou autre outil : joignez SKILL.md à une conversation, ou ouvrez-le dans un agent capable de lire les fichiers. Ajoutez les ressources annexes nécessaires. Il n’existe pas de dossier universel reconnu par tous les outils.

4. Faire un premier essai

Utilisez une entrée courte et fictive : un endpoint d’API, un petit document ou un brief d’interface. Dans une nouvelle conversation, joignez le fichier ou donnez son chemin à l’agent, puis adaptez cette demande :

Lis .skill-downloads/onlyfans-api-analytics-mmh8qqt6/SKILL.md et applique ses instructions à cet exemple : [décrire une entrée de test]. Indique les fichiers, dépendances ou accès qui manquent. Produis le résultat demandé par la skill sans inventer de données ni exécuter de script non examiné.

Résultat attendu : une sortie correspondant aux instructions de la skill, ou une liste précise des prérequis manquants. Une simple confirmation de lecture ne valide pas le premier usage. Si une ressource externe est indisponible, ce parcours reste à tester.

Skills similaires