OnlyFans API DocumentationOnlyFans API
Guides

Connect OnlyFans Account

Learn how to securely connect your OnlyFans account so you can use it with OnlyFans API

Why connect your OnlyFans account?

Connecting an OnlyFans account is required to access API features that need authenticated OnlyFans access.

This includes, but is not limited to:

  • Reading chats and conversations
  • Sending messages to fans
  • Accessing account and engagement statistics
  • Getting fans and subscription data
  • Following or unfollowing users
  • Receiving webhook events
  • Using any other endpoint that requires authenticated OnlyFans access

Without a connected account, API usage is limited to endpoints that don't require authentication.

OnlyFans API supports two secure methods to connect your account:

  1. cURL Import MethodFastest method via browser request inspection
  2. Automated Login Flow (Email & Password)Recommended for full automated login handling

Method 1: cURL Import Method (Fastest)

This is the fastest way to connect your account. By importing session headers directly from a cURL request copied from your browser, you can connect your account instantly without going through email/password authentication or captcha flows.

Important Session Rule

Use an Incognito window and close it when done. Do not click Log Out, as it invalidates your session.

How to Obtain Your cURL Code

Watch the video tutorial below to see how to inspect network requests in DevTools and copy your OnlyFans cURL request.

[ VIDEO PLACEHOLDER: How to Obtain cURL Code ]

Steps to connect using cURL

  1. Open a new Incognito / Private browser window, go to OnlyFans, and log into your creator account.
  2. Open Developer Tools (F12 or right-click → Inspect) and switch to the Network tab.
  3. Refresh the page or perform an action on OnlyFans to generate API network traffic.
  4. Right-click the me request, select CopyCopy as cURL (bash).
  5. Open the OnlyFans API Console → Accounts and click + Connect Account.
  6. Switch to the cURL Import tab, paste your copied cURL command, and click Connect Account.
  7. Close the Incognito window when finished — do NOT click "Log Out" on OnlyFans.

Method 2: Automated Login Flow (Email & Password)

Our system handles captcha challenges automatically and supports two-factor authentication. If 2FA is enabled on your OnlyFans account, you'll be prompted to enter the verification code directly within the OnlyFans API interface.

Your credentials are encrypted and stored securely. They are never shared and cannot be accessed by engineers, support staff, or third parties.

Steps to connect your account

  1. Open the OnlyFans API Console → Accounts
  2. Click + Connect Account
  3. Enter a name for the account. This is used only for your internal reference.
  4. Provide your OnlyFans email and password.
  5. Select a proxy country. A dedicated mobile IP is automatically assigned based on your selection.
  6. Click Connect to begin the connection process.
  7. Follow the login progress in real time.
  8. If two-factor authentication is enabled, enter the verification code sent to your email/phone or perform Face ID verification if configured on your account.
  9. Once the process is complete, your account will appear as connected and ready for API usage.

On this page