Skip to content

Latest commit

 

History

History
121 lines (82 loc) · 4.53 KB

File metadata and controls

121 lines (82 loc) · 4.53 KB

OnlyFans API examples

End-to-end OnlyFans API code samples — chatbots, CRMs, mass messaging, AI agents, webhook servers — in Python, TypeScript, Go, and more.

License: MIT Docs Status


🚧 Preview release. General availability launching shortly. Sign up at ofmapi.com to be notified.

What's here

Production-quality, self-contained code samples for everything you can build on the OFMAPI OnlyFans API. Each example is a complete project — clone, set your API key, run.

Browse by use case

💬 Chatbots & messaging

  • chatbot-ai-autoreply-python — FastAPI server with Claude / OpenAI persona
  • chatbot-ai-autoreply-node — Next.js Route Handler with Vercel AI SDK
  • mass-messaging-scheduler-python — APScheduler + progress webhooks
  • mass-messaging-from-csv-node — bulk DM from CSV upload
  • gif-reply-bot-go — Giphy-powered fun replies

🔔 Webhooks & realtime

  • webhook-server-fastapi — minimal verified webhook receiver
  • webhook-server-hono — Cloudflare Workers / Bun-compatible
  • webhook-server-net-http-go — stdlib net/http
  • webhook-replay-tool — replay missed deliveries from the dashboard
  • realtime-websocket-tail-python — live event firehose to terminal

📊 CRMs & dashboards

  • crm-supabase-next — Next.js + Supabase fan management dashboard
  • earnings-dashboard-tremor — Next.js + Tremor charts
  • agency-multi-account-django — manage hundreds of creators

💰 Earnings & analytics

  • earnings-to-bigquery — daily sync of transactions
  • earnings-to-postgres — daily sync via SQLAlchemy
  • chargeback-anomaly-detector — flag spikes via PagerDuty

🤖 AI agents

  • mcp-claude-desktop-config — Claude Desktop integration
  • mcp-cursor-config — Cursor integration
  • langgraph-agent-python — multi-step agent over the OnlyFans API
  • vercel-ai-sdk-tools-node — function-calling with the Vercel AI SDK

🎯 Traffic & attribution

  • meta-ads-conversion-tracking — server-side feed to Meta CAPI
  • smart-links-server — generate + track Smart Links
  • multi-platform-attribution — TikTok / Reddit / X attribution

🔌 No-code

  • n8n-workflows/ — importable n8n workflow JSON
  • make-blueprints/ — Make.com blueprint JSON
  • zapier-templates/ — Zapier shared template links

Build the next generation of OnlyFans software

Use these examples as the starting point for products in the spirit of:

  • 🤖 AI chat platforms like Botly, Supercreator, Substy, ChatPersona
  • 📊 Creator CRMs like Infloww, OnlyMonster, CreatorHero
  • 📈 Analytics & metrics tools like FansMetric, FansIQ
  • 🎯 Traffic & attribution platforms like CreatorTraffic
  • 🔗 Link-in-bio + deeplink products like Juicy Bio, Hello Butter
  • 🧠 AI agents that operate connected creator accounts via Claude, ChatGPT, Cursor, or Manus
  • 🛠️ Agency back-offices managing hundreds of accounts from a single dashboard

Whatever you're building, OFMAPI handles the OnlyFans plumbing — kept current with every platform change — so you can focus on what makes your product different.

Run any example in 60 seconds

git clone https://github.com/ofmapi/examples
cd examples/chatbot-ai-autoreply-python
cp .env.example .env       # add your OFMAPI_API_KEY
pip install -r requirements.txt
python main.py

Get an OnlyFans API key

Visit ofmapi.com — free tier, no credit card required.

Documentation

Contributing

We love new examples. See CONTRIBUTING.md — open a PR with your project under a relevant category.

License

MIT — see LICENSE. All examples are MIT-licensed; you can copy them into your own projects without restriction.


OFMAPI is an independent organisation, not affiliated with OnlyFans.com or Fenix International Limited. "OnlyFans" is a registered trademark of Fenix International Limited.