> ## Documentation Index
> Fetch the complete documentation index at: https://docs.ofauth.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Is There an Official OnlyFans API?

> No. OnlyFans has no public API for outside developers. Here are the real options: an API platform like OFAuth, other providers, public-data APIs, or building it yourself.

No. OnlyFans does not offer a public API, developer keys, OAuth, or webhooks to outside developers. Its API is built for its own website and apps, so every way to work with OnlyFans accounts programmatically is unofficial: an independent API platform, a public-data service, or an integration you build and maintain yourself.

OFAuth is one of those independent platforms. It is not affiliated with OnlyFans.

## Frequently Asked Questions

**Does OnlyFans have a developer program?** No. There is no public developer portal, API key, or documented API for third parties.

**How do third-party OnlyFans tools work, then?** They call the same private endpoints the OnlyFans website uses, signed the way OnlyFans expects, from a session the account owner started. Platforms like OFAuth run that layer for you.

**Why is building directly against OnlyFans hard?** The API was built for OnlyFans' own web app, not for outside developers. Requests must be signed with rules that change often, logins need 2FA and device checks, sessions expire, accounts need proxies, and media links expire. Any change can break an integration without notice.

**What can a public-data API do?** Only what anyone can see without signing in, such as public profile details. Messages, earnings, subscribers, and posting all need a connected account.

**Is it safe to ask creators for their password instead?** No. Your app would hold the keys to the whole account and its income. Use an OAuth flow, such as OFAuth Link, so creators approve specific scopes and your app never sees a password. See [Link vs collecting creator passwords](https://ofauth.com/compare/link-vs-creator-passwords).

## What Are My Options?

| Option | Connected-account data | Who maintains it | Fits when |
| - | - | - | - |
| OFAuth | Yes, limited to owner-approved scopes | OFAuth | Creators or agencies connect to your product, or you run accounts with an AI agent |
| Other API providers | Yes | The provider | Compare on permissions, data storage, and testing. See [OnlyFans API providers compared](https://ofauth.com/compare/onlyfans-api-alternatives) |
| Public-data APIs | No, public pages only | The provider | You only need public profile lookups |
| Build it yourself | Yes | Your team | You can staff ongoing maintenance. See [OFAuth vs building it yourself](https://ofauth.com/compare/ofauth-vs-building-in-house) |

## How Does OFAuth Work?

1. Your backend sends the account owner to `https://link.ofauth.com/v3/authorize`, a standard OAuth 2.0 authorization request with PKCE.
2. The owner signs in on OFAuth, handles 2FA there, and approves the scopes you asked for.
3. Your backend exchanges the returned code for tokens at `https://api.ofauth.com/v3/link/token`.
4. Your app calls typed operations, for example:

```bash theme={null}
curl https://api.ofauth.com/v3/access/profile \
  -H "Authorization: Bearer $ACCESS_TOKEN" \
  -H "x-linked-account-id: conn_example123"
```

Start in Sandbox, which returns mock data and never contacts OnlyFans. See [How do I test an OnlyFans integration without a real account?](https://docs.ofauth.com/v3/agents/playbooks/test-onlyfans-integration.md)

## Learn More

* [What is OFAuth?](https://docs.ofauth.com/v3/agents/playbooks/what-is-ofauth.md)
* [Which OFAuth setup do I need?](https://docs.ofauth.com/v3/agents/playbooks/choosing-an-ofauth-setup.md)
* [V3 overview](https://docs.ofauth.com/v3.md)
* [Authorize](https://docs.ofauth.com/v3/api-reference/link/authorize.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.