🚧 Preview release. General availability launching shortly. Sign up at ofmapi.com to be notified.
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.
chatbot-ai-autoreply-python— FastAPI server with Claude / OpenAI personachatbot-ai-autoreply-node— Next.js Route Handler with Vercel AI SDKmass-messaging-scheduler-python— APScheduler + progress webhooksmass-messaging-from-csv-node— bulk DM from CSV uploadgif-reply-bot-go— Giphy-powered fun replies
webhook-server-fastapi— minimal verified webhook receiverwebhook-server-hono— Cloudflare Workers / Bun-compatiblewebhook-server-net-http-go— stdlib net/httpwebhook-replay-tool— replay missed deliveries from the dashboardrealtime-websocket-tail-python— live event firehose to terminal
crm-supabase-next— Next.js + Supabase fan management dashboardearnings-dashboard-tremor— Next.js + Tremor chartsagency-multi-account-django— manage hundreds of creators
earnings-to-bigquery— daily sync of transactionsearnings-to-postgres— daily sync via SQLAlchemychargeback-anomaly-detector— flag spikes via PagerDuty
mcp-claude-desktop-config— Claude Desktop integrationmcp-cursor-config— Cursor integrationlanggraph-agent-python— multi-step agent over the OnlyFans APIvercel-ai-sdk-tools-node— function-calling with the Vercel AI SDK
meta-ads-conversion-tracking— server-side feed to Meta CAPIsmart-links-server— generate + track Smart Linksmulti-platform-attribution— TikTok / Reddit / X attribution
n8n-workflows/— importable n8n workflow JSONmake-blueprints/— Make.com blueprint JSONzapier-templates/— Zapier shared template links
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.
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.pyVisit ofmapi.com — free tier, no credit card required.
- 📚 OnlyFans API reference: docs.ofmapi.com/api
- 🚀 Quickstart: docs.ofmapi.com/quickstart
- 🔔 Webhook event catalog: docs.ofmapi.com/webhooks
We love new examples. See CONTRIBUTING.md — open a PR with your project under a relevant category.
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.