Thanks to visit codestin.com
Credit goes to github.com

Skip to content

ofmapi/examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

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.

About

End-to-end code examples for the OFMAPI OnlyFans API in Python, Node, Go, cURL, and more

Topics

Resources

License

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

No releases published

Packages

 
 
 

Contributors