Skip to content
@ofmapi

OnlyFans API by OFMAPI

OnlyFans API for developers and agencies: typed REST, signed webhooks, hosted MCP server for Claude, ChatGPT, Cursor, VS Code. Unofficial. Free Beta.
OnlyFans API by OFMAPI

OnlyFans API for developers and agencies

Typed REST endpoints, signed webhooks, and a hosted MCP server that lets Claude, ChatGPT, Cursor, and VS Code work with OnlyFans fans, messages, and earnings. Built by OFMAPI. Free during the public Beta.

Website Docs API reference Status


What the OnlyFans API does

OnlyFans has no public developer API. OFMAPI is an independent, unofficial OnlyFans API: a creator (or the agency managing them) connects their own OnlyFans account once, and from then on every part of that account is available as a typed HTTPS API, as webhook events, and as tools inside AI assistants.

  • Fans and subscribers: list fans, subscription state, spend history, lists, notes, and tags.
  • Messages and chats: read conversations, send direct messages and paid PPV messages, mass messaging through OnlyFans' own scheduler, saved messages, message queues.
  • Posts, vault, and stories: publish and schedule posts, upload media, manage the vault, post stories.
  • Earnings and statistics: transactions, balances, earnings charts, monthly statements, reach and engagement.
  • Live events: signed webhooks and a customer WebSocket for new messages, tips, subscriptions, likes, and more.
  • AI assistants: a hosted MCP server with 174 tools, so an assistant can answer "who are my top spenders this week" or draft a re-engagement DM without any code.

Everything returns a stable, typed schema that OFMAPI maintains as the customer contract; the raw upstream payload is available on request for debugging.

Start in five minutes

# 1. Create a free account and an API key
#    https://app.ofmapi.com/api-keys

# 2. Connect an OnlyFans account in the dashboard, then list it
curl https://api.ofmapi.com/v1/accounts \
  -H "Authorization: Bearer $OFMAPI_KEY"

Use the OnlyFans API from AI assistants (MCP)

The MCP server is hosted; there is nothing to install.

https://api.ofmapi.com/mcp/v1/

Claude and ChatGPT connect with OAuth; Cursor, VS Code, and other config-based hosts use a scope-limited API key. Creators can be referenced by name or @handle. Setup for every host: https://ofmapi.com/docs/integrations/mcp

Repositories

Repository What it is
ofmapi-mcp OnlyFans API MCP server: config files and issues for the hosted server
examples OnlyFans API code examples: webhook receivers, send a message, export earnings
postman-collection OnlyFans API Postman collection generated from the OpenAPI spec
onlyfans-py OnlyFans API for Python: typed client generation recipe
onlyfans-node OnlyFans API for TypeScript and Node.js: typed client generation recipe
onlyfans-go OnlyFans API for Go: typed client generation recipe
n8n-nodes-ofmapi OnlyFans API in n8n: HTTP Request and Webhook node guide
ofmapi-docs Documentation issues and requests

Frequently asked

Is there an official OnlyFans API? No. OnlyFans does not publish a developer API. OFMAPI is an independent service that works with the creator's own login and is not affiliated with OnlyFans.com or Fenix International Limited.

What can I build with the OnlyFans API? Chatbots and AI assistants for fan messaging, agency CRMs and dashboards, mass-messaging and PPV tooling, earnings analytics, content scheduling, and automations in n8n or Zapier. The examples repository has working webhook receivers and scripts.

How do I get an OnlyFans API key? Sign up at https://app.ofmapi.com, connect an OnlyFans account, and create a key under API keys. Keys are scoped and stored as Argon2 hashes; the plaintext is shown once.

Does the OnlyFans API work with ChatGPT and Claude? Yes, through the hosted MCP server. Add https://api.ofmapi.com/mcp/v1/ as a connector or app, authorize with OAuth, and ask questions in plain English.

Is there a Python, Node, or Go SDK? Not published yet. Generate a typed client from the OpenAPI 3.1 spec in about a minute; each SDK repository has the exact commands. Do not install the unrelated onlyfans packages on PyPI or npm expecting an OFMAPI client.

What does the OnlyFans API cost? Nothing during the public Beta. No card is required; documented usage limits apply, including 100 MCP tool calls per calendar month.

Can a connected account get restricted? OnlyFans can still challenge or reject automation. OFMAPI does not guarantee that a connected account will avoid restrictions. The current security posture, including how session material is stored, is documented at https://ofmapi.com/security.

Contact

Questions, bugs, integration requests, and security reports go through https://ofmapi.com/contact (customers can open tickets from the dashboard). Replies arrive by email.


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

Pinned Loading

  1. postman-collection postman-collection Public

    OnlyFans API Postman collection, generated from the public OpenAPI 3.1 spec: every endpoint, Bearer auth, environment file. By OFMAPI.

  2. ofmapi-mcp ofmapi-mcp Public

    OnlyFans API MCP server: 174 hosted tools for Claude, ChatGPT, Cursor, and VS Code. Ask about fans, messages, and earnings in plain English. By OFMAPI; free public Beta.

  3. onlyfans-py onlyfans-py Public

    OnlyFans API for Python: generate a typed client from the OpenAPI 3.1 spec; official SDK planned (not yet on PyPI). By OFMAPI.

    Shell

  4. onlyfans-node onlyfans-node Public

    OnlyFans API for TypeScript and Node.js: generate a typed client from the OpenAPI 3.1 spec; official SDK planned (not yet on npm). By OFMAPI.

    Shell

  5. onlyfans-go onlyfans-go Public

    OnlyFans API for Go: generate a typed client from the OpenAPI 3.1 spec with oapi-codegen; official SDK planned. By OFMAPI.

    Shell

  6. examples examples Public

    OnlyFans API code examples: signed webhook receivers in Python, TypeScript, and Go; send a message or PPV; export earnings to CSV. By OFMAPI.

    Python

Repositories

Showing 9 of 9 repositories

Top languages

Loading…

Most used topics

Loading…