# How to Connect n8n to OnlyFans: Step-by-Step Setup

> Learn how to connect n8n to OnlyFans using the verified OnlyFansAPI community node. Automate your workflows with 320+ endpoints.

**TL;DR**

- The official OnlyFansAPI node is available in the n8n community library as `@onlyfansapi/n8n-nodes-onlyfansapi`.
- Only n8n instance owners can install community nodes, but all workspace members can use them once installed.
- Stored credentials are encrypted with AES-256, and Basic and higher plans add a dedicated mobile proxy per connected account.
- The node supports 320+ API endpoints, and webhook events like `messages.received` and `subscriptions.new` (Basic and up) can start workflows through a webhook listener in n8n.

To connect n8n to OnlyFans, you install the verified `@onlyfansapi/n8n-nodes-onlyfansapi` community node and authenticate it using an API key from the OnlyFansAPI console. This setup allows you to build multi-step workflows that interact with 320+ endpoints across your connected creator accounts.

**Key Takeaways**

- The official OnlyFansAPI node is available in the n8n community library as `@onlyfansapi/n8n-nodes-onlyfansapi`.
- Only n8n instance owners can install community nodes, but all workspace members can use them once installed.
- Stored credentials are encrypted with AES-256, and Basic and higher plans add a [dedicated mobile proxy](https://onlyfansapi.com/onlyfans-proxy) per connected account.
- The node supports 320+ API endpoints, and webhook events like `messages.received` and `subscriptions.new` (Basic and up) can start workflows through a webhook listener in n8n.

## How do I connect n8n to OnlyFans?

To connect n8n to OnlyFans, you must install the official `@onlyfansapi/n8n-nodes-onlyfansapi` community node from the n8n nodes panel and authenticate it with a key from the [OnlyFansAPI](https://onlyfansapi.com/) dashboard. This [verified integration](https://onlyfansapi.com/no-code) supports every endpoint in the OnlyFans API and handles all underlying proxy routing and session management.

## Prerequisites for the OnlyFans n8n Integration

You need two active components before beginning the installation.

1. An n8n instance (n8n Cloud, self-hosted Docker, or VPS providers like Hostinger or DigitalOcean)
2. An [OnlyFansAPI](https://app.onlyfansapi.com) account with at least one connected creator profile

Only the n8n instance owner can install and manage verified community nodes. The instance owner is the person who sets up and manages user access. Once installed, all members of an n8n instance can use the node in their workflows.

## Step 1: Install the OnlyFans API Node

You install the package directly through the n8n graphical interface, following our [n8n quickstart](https://docs.onlyfansapi.com/integrations/n8n).

1. Log in to your n8n instance.
2. Click "Create workflow" in the top right corner to open the canvas.
3. Open the nodes panel by pressing the `Tab` key on your canvas or clicking the `+` icon.
4. Search for "OnlyFans API" in the nodes panel and select it. This takes you to a detailed view of the node showing all supported actions.
5. Next to the OnlyFans API logo, click the "Install node" button.

This registers the `@onlyfansapi/n8n-nodes-onlyfansapi` package to your workspace and makes the actions available to your team.

## Step 2: Configure the API Credential

You authenticate the node by passing an API key from your platform console into n8n. OnlyFansAPI has zero bans in 5+ years and has handled 300M+ API requests and webhooks.

1. Head to your n8n instance's homepage and click on "Create Credential" in the "Create Workflow" dropdown.
2. Select "OnlyFans API" from the list of available credential types and click "Continue".
3. Log in to the [OnlyFans API Console](https://app.onlyfansapi.com) in a new tab.
4. Go to API Keys, create a new API key, give it a name, and press "Add".
5. Copy the generated API key to your clipboard.
6. Return to n8n, paste the key into the "API Key" field, and click "Save".

## Step 3: Build Your First Workflow

The OnlyFans API node exposes actions for every endpoint in the API. You can initiate workflows based on incoming data or schedule mass actions.

For near real-time event ingestion, you can trigger workflows by sending our webhooks (Basic plan and up) to a webhook listener in n8n. Available webhook events include `messages.received`, `messages.ppv.unlocked`, `subscriptions.new`, `subscriptions.renewed`, `subscriptions.expired`, `tips.received`, `transactions.new`, and `media_uploads.completed`. Payloads include fan profile data, transaction amounts, and media counts.

One useful first workflow is syncing account revenue, fan counts and tracking-link data into a database. For a complete implementation guide, see our tutorial on [Automating OnlyFans with n8n and Baserow](/blog/onlyfans-api-automate-with-n8n-baserow).

## How to Update the OnlyFans API Node

You should update the node frequently to get new features and bug fixes. You can handle this via the n8n interface or manually from your command line.

### Using the n8n Interface

1. Access the "Community nodes" page through the n8n settings.
2. Find the OnlyFans API node in the list of installed nodes and click the "Update" button next to it.
3. Follow the prompts to complete the update process.

### Manually from the Command Line

If you self-host n8n using Docker, you can update the package directly through your package manager.

Access your Docker shell:

```bash
docker exec -it n8n sh
```

Update the node:

```bash
npm update @onlyfansapi/n8n-nodes-onlyfansapi
```