OnlyFans API: how it works and which service to choose

OnlyFans has no official API. This page explains what the third-party APIs are, what agencies build with them, what MCP adds and what each service charges. Prices are read from the vendors' own pages.

0official public APIs from OnlyFans
4API services compared
$0lowest price, with MCP included
Compare OnlyFans CRMs Prices, trials, API access

In short

  • No official API. OnlyFans publishes no API, no developer portal and no keys.
  • Third-party services fill the gap. They send requests to OnlyFans as a creator account you connect to them.
  • Prices run from $0 to $299 a month. AgencyKey is free with MCP included; Fans API, OFAuth and CreatorAPI are subscriptions with a free allowance for testing.

Does OnlyFans have an API?

No. OnlyFans has no public API, no developer portal and no API keys. The website and the apps talk to an internal API that OnlyFans built for itself and does not document for outsiders.

Everything sold as an "OnlyFans API" is a third-party service built on top of that internal API. It is unofficial: it works as long as OnlyFans does not change how its own site works, and the service has to keep up when it does.

How third-party OnlyFans APIs work

  1. Your code or assistant You connect a creator account to the service, get a key and send requests to the service, not to OnlyFans.
  2. The API service It holds a working session of that account and forwards each request to OnlyFans as the account.
  3. OnlyFans It answers as it would to the creator's own browser: chats, fans, earnings, posts, the vault.

Two things follow from this. An API can do only what the account itself can do, so there is no access to other creators' private data. And you trust the service with the account, so it matters who runs it and what a key is allowed to do.

What agencies build with an OnlyFans API

Reports where the team works

Earnings, subscribers and chargebacks of every creator in one Google Sheet or dashboard, updated on a schedule.

Chatter pay

Sales by chatter and by shift, counted from the messages and transactions instead of screenshots.

Alerts

A message to the team chat when a top fan comes online, a creator's income drops or a mass message underperforms.

Marketing numbers

Subscribers and revenue per tracking link, joined with what the promotion cost.

AI assistants

Questions in plain language over live account data through MCP, covered below.

No code at all

Shared inboxes, scripts and reports come with a CRM. Compare OnlyFans CRMs

What MCP adds

MCP (Model Context Protocol) is a standard way to let an AI assistant call an API. You add the server address as a connector in Claude or ChatGPT, sign in, and the assistant can fetch data and run actions for you. Instead of writing a script, you ask: "List the ten fans who spent the most on this creator in the last 30 days."

An assistant that can write can also send or delete. Connect it as a separate user with limited access, and begin with read-only requests.

OnlyFans API services compared

Prices and limits as each vendor publishes them, read on November 30, 2026. Plans change often, so check the source before you pay.

ServicePriceFree allowanceMCPWebhooks
AgencyKey APIOnlyFans $0No plans, no charge per request The whole API, for every creator account connected to AgencyKey Yes, free Not documented
Fans APIOnlyFans From $69 a month$69: 1 account, 20,000 credits$299: 5 accounts, 100,000 credits$29 per extra account 1 account, 100 credits Yes On paid plans
OFAuthOnlyFans From $69 a month$69: 2 accounts, 10,000 requests, then $2 per 1,000$299: 20 accounts, 100,000 requests, then $1 per 1,000 1 account, 1,000 requests, then $4 per 1,000 Not stated Yes, billed per event
CreatorAPIOnlyFans, Fansly, 4based, Fanvue From $55 a month$55: OnlyFans only, 20,000 credits$89: three platforms, 44,000 credits$269: agencies, 100,000 creditsA read costs 1 credit, a write 2 1,000 credits Yes Yes

Sources: agencykey.com/features/api, fansapi.com/pricing, ofauth.com/pricing, creator-api.com/pricing. "Not documented" and "Not stated" mean the vendor's page does not say. The address onlyfansapi.com now leads to Fans API.

APIs inside other CRMs

Some agency CRMs have an API of their own. It comes with the CRM's paid subscription, and in several tools it is a beta or is opened on request, with no public specification. OnlyMonster documents an API with webhooks, Infloww has a beta limited to revenue export, and the other CRMs in our comparison do not document a public API. So if a CRM's API matters to you, ask the vendor for the specification before you subscribe.

AgencyKey API: free, with MCP

We put AgencyKey first for one measurable reason: it is the only service here where the API costs nothing at any volume. The others are subscriptions with credits or a price per request.

What you get

  • Free for every connected creator account, even if you never use the CRM or pay for a plan.
  • No credits and no price per request.
  • More than 860 documented operations: messages, fans, earnings, content, streams, promotions, settings. Paths outside the catalogue are forwarded too.
  • A free MCP server for Claude and ChatGPT that follows the user's permissions.
  • The same backend that runs the CRM. AgencyKey reports 3.1 million requests a day (November 2026) and 99% uptime over the 29 days to October 26, 2026. These are the vendor's own figures.
  • Keys with an expiry date (7, 30 or 90 days, a year or never) that can be revoked, and a separate API of the CRM itself: shifts, tasks, scripts, tracking links, reports.

What to keep in mind

  • You need an AgencyKey account, and the creator has to be connected to AgencyKey. There is no API without that connection.
  • OnlyFans only. For Fansly or Fanvue look at CreatorAPI.
  • Webhooks are not documented. If you need a push on every new message or tip, Fans API, OFAuth and CreatorAPI offer them.
  • The CRM itself is paid after 30 active days per creator. The API stays free.
  • Actions an assistant runs through MCP have no extra confirmation step, so give it a limited user.

A first request, step by step

The steps are the same in every service; the example uses AgencyKey because it costs nothing to try.

  1. Create an account and connect a creator account.
  2. Create a Public API key in the settings. Give it an expiry date. The secret is shown once.
  3. List the creators the key can reach:
curl https://app.agencykey.com/api/v1/onlyfans/creators \ -H "x-public-api-key: YOUR_KEY"

Then put the OnlyFans path after the creator's id. This returns the creator's chats:

curl https://app.agencykey.com/api/v1/onlyfans/CREATOR_ID/api2/v2/chats \ -H "x-public-api-key: YOUR_KEY"

The answer comes back as OnlyFans returns it. One rule for anything that writes: a 4xx answer means the request was rejected and can be repeated after a fix, while a 502 or 504 means the result is unknown, so check before you send a message or a post again. The full list of operations is in the AgencyKey API documentation.

To use MCP instead of code, add https://app.agencykey.com/mcp as a custom connector in Claude or as an app in ChatGPT and sign in. Full write access in ChatGPT needs a Business, Enterprise or Edu plan.

How to choose

You want reports, automation or an AI assistant at no costAgencyKey API
You need webhooks on every eventFans API, OFAuth or CreatorAPI
You are building a product where other people connect their accountsOFAuth, which has a connection flow made for that
You work with Fansly or Fanvue as wellCreatorAPI
You already pay for a CRMAsk its vendor whether an API is included and what it covers before adding a second service

Risks and rules

  • It is unofficial. OnlyFans does not support third-party access, and no vendor can promise that an account will never be restricted. Read the OnlyFans terms and decide for each creator.
  • Get the creator's consent. The account is theirs. Write down what the agency and its tools may do with it.
  • Keep keys narrow. One key per integration, an expiry date, only the creators it needs.
  • Do not retry writes blindly. A repeated request can send the same message twice.
  • Stay within the data you are entitled to. Fan data is personal data. Do not export or share more than the work needs.

Updated November 30, 2026. Prices and features are quoted from the vendors' pages on that date; usage and uptime figures are the vendors' own statements and were not measured by TopAgencies.

Frequently asked questions

Does OnlyFans have an official API?

No. OnlyFans has no public API and no developer programme. Every "OnlyFans API" on the market is a third-party service that sends requests to OnlyFans on behalf of a creator account you connect to it.

Is there a free OnlyFans API?

Yes. AgencyKey gives an OnlyFans API and an MCP server to every creator account connected to it, without a paid plan and with no charge per request. Fans API, OFAuth and CreatorAPI have free allowances for testing: 100 credits, 1,000 requests and 1,000 credits.

How do I get an OnlyFans API key?

OnlyFans does not issue API keys. You sign up with an API service, connect the creator account there and create a key in that service. The key belongs to the service, not to OnlyFans.

Is it safe to use an OnlyFans API?

It is unofficial, so the risk is yours. The service works through the session of the connected account, which means you trust it with that account. Use a service that does not ask you to store the password, give keys only the access they need, set an expiry date and start with read-only calls.

What is an OnlyFans MCP server?

MCP (Model Context Protocol) lets an AI assistant such as Claude or ChatGPT call an API for you. With an OnlyFans MCP server you ask a question in plain language, for example "which fans spent the most this week", and the assistant fetches the data itself.

Can I use the OnlyFans API with Python or n8n?

Yes. These services are plain HTTP APIs with a key in a header, so any language or automation tool that can send a web request works: Python, JavaScript, n8n, Make, Zapier or a Google Sheets script.