π§ 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.